PDA

View Full Version : Particle System speed



McZ
03-24-2003, 12:34 AM
I'm trying to create a particle system... and I have a question about speed.

is there any difference in speed if I do any of this examples:

1) use one triangle with texture and then use glTranslatef() to move and render that single triangle to every Particle place

2) create a bunch of triangles at the place that they will be render.

is there any difference? will glTranslatef() be to slow or something?

harsman
03-24-2003, 05:45 AM
Alternative number 2 will be much faster. You can't make a glTranslate call inside a begin/end so if you do it that way you'll have to hand feed each particle to OpenGL with the CPU. You might want to read this (http://nate.scuzzy.net/docs/billboard/) .

McZ
03-24-2003, 06:07 AM
ok thanks http://www.opengl.org/discussion_boards/ubb/smile.gif