Particle Systems

Wednesday | Friday
Fountains, Fire, Flocks

Videos

Starlings in flight

Boids

Examples updates

Let's fetch this week's upstream changes.

$ cd ~/cs40/examples
$ git fetch upstream
$ git merge -X ours upstream/master

After this step, you will need to manually edit the top level CMakeLists.txt to add the new subdirectories.

$ tail ~/cs40/examples/CMakeLists.txt
add_subdirectory(w06-nmap)

if(CMAKE_CUDA_COMPILER)
  add_subdirectory(w07-cuda-pt1)
  add_subdirectory(w07-cuda-pt2)
  add_subdirectory(w08-cuda-patterns)
endif()

#add the line below
add_subdirectory(w09-particles)

Before compiling, you will need to add a symlink in your w09-particles source folder.

cd ~/cs40/examples/w09-particles
ln -s /usr/local/doc/textures data
cd ..

If everything went well, you should be able to go into your build directory and run make -j8 to compile the week 09 examples.

cd build
make -j8
cd w09-particles
./particles