PDA

View Full Version : Using VBO's



DanielB
10-20-2008, 04:35 AM
I'm trying to use CUDA with OpenGL to calculate and render some particles. CUDA has a particles example, but it's not exactly what I had in mind.

Since CUDA can write directly to OpenGL buffer objects, I thought I would use this to my advantage, and write the positional data of every particle in a big vertex array.

What I wanna know is if it's possible to use this data to render a bunch of glutSolidSphere's, using the data in the array as a translation to the position for each sphere seperatly. And most importantly: How?

Would this method use the CPU in any way?

thx in advance