PDA

View Full Version : Particles in c++ using opengl



kalyanreddy
05-27-2012, 10:32 PM
Hi guys,

I want to start a basic particle system in c++ using openGL. I wrote an algorithm for that but I don't understand how to start it.

The problem I am facing is I can print the positions and velocity updates but I don't know how to show it visually using openGL.

Is there any examples that I can start with...

I hope you understand...

Thanks in advance..
Kalyan

BionicBytes
05-28-2012, 01:36 AM
Start with something simple to fully test your particle code/engine without being bogged down by OpenGL drawing.
Perhaps something like GL_POINTS and use glDrawArrays is enough just to plot each vertex point as a pixel.