Skip to content

scharissis/cudaFlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA & OpenGL Flocking Simulator

Authors:

flock

Screenshots:

http://scharissis.github.io/cudaFlock/

Requirements:

  • OpenGL, GLUT, GLEW
  • CMake
  • CUDA 2.2 minimum (>=4.0 for Multi-GPU) with SDK

Compilation:

  • Modify SDK path in (src/CMakeLists.txt) to point to yours
  • Then run:
     mkdir build; cd build;
     cmake ..;	
     make;
    

Running:

./cudagl [-n=<numParticles>] [-devices=<numDevices>]

  • eg. ./cudagl -n=1024 -devices=1 (To simulate 1024 particles across 1 device)

Controls:

  • 'spacebar' plays/pauses the simulation

  • 'ctrl+mouse_scroll' zooms in/out

  • 'mouse_left+mouse_move' moves camera around

  • 'd' loops through the particle display modes

  • 's' toggles between a skybox and a ground surface

  • 'b' displays the bounding box

  • '`' hides/shows the parameter UI

  • 'p' toggles picture mode

  • 'm' toggles model mode

  • 'u' toggles uber mode

  • '1' resets particles to a random position

  • '2' resets particles to the center of the grid

  • 'Esc' exits the program

Data:

  • New pictures (.ppm) can be placed in 'src/data'
  • New 3DS models can be placed in 'src/load3ds/models/'

About

A CUDA/OpenGL Flocking Simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published