~130 000 particles gas explosion simulation. Coloring based on velocity.
GPU used: GF 8400M GS, 16 cores @ 400 mhz with 128 MB dedicated memory @ 400 mhz.
This is slightly modified sample from CUDA SDK. I have changed all algorithms from 3d to 2d, thanks to that, now program use 50% less memory and is 30% faster (maximum ~800 000 - 900 000 particles with 0.5 - 1 fps, and 32768 particles @ 35-40 fps). Why 2D? Because 3D with 350 000 partciles were giving too low resolution and accuracy. Even 130 000 particles in 2D gives much more realistic effects.
Second change was dynamic coloring based on particle's velocity (blue high speed, white low speed). For now its linear scale, based on average velocity at specified frame. In future I plan to change it to constant logarithmic scale. Unfortunatelly at the moment coloring slows down rendering by about 10-20%
Last change was adding diffusion effect (before calculating every frame adding smal random velocity vector).
I think effect is prety good :) More changes are on the way :)
NVIDIA CUDA site
http://www.nvidia.com/object/cuda_home.html
In documentation says that CUDA programs require at least 256 MB of memory. You use only 128 MB correct?
You had any problem due the low memory? Any problem in implementation or instalation of driver?
dalcimar 2 years ago
yes, i have only 128mb. Generally speaking, there were no major problems.
B4ndItOo 2 years ago
Hmm... out of curiousity what program did you use to utilise Cuda, I know matlab is one..
I guess the question is how were you able to set up the simulation (I have a 9600m gt so I am interested in conducting these and similar simulations)
seleneium 2 years ago
i was using visual studio 2005 c/c++. Generally i was playing with sample projects that come with cuda sdk
B4ndItOo 2 years ago
interesting I did not know that the 8400m gs had Cuda
seleneium 2 years ago
every gf8xxx and newer support both Cuda and physx. Some time ago there was problem with drivers for mobile gpu's, but recently nvidia released official drivers that cuda.
B4ndItOo 2 years ago