Re: Particle System

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Fri, 26 Nov 1999 04:27:28 -0800


Angus Dorbie wrote:
>
> Geoff Levner wrote:
> >
>
> > ...... But if you are just drawing points, I don't imagine there is
> > much to optimize.
>
> :-)
>
> Famous last words.
>
> I could say the same for triangles. You'd be surprised how many people
> when drawing points do something slow like:
>
> glBegin(GL_POINTS);
> for(i = 0; i<numpoints; i++) glVertex3fv(particle_array[i*3]);

oops:

glVertex3fv(&(particle_array[i*3]));

or:

glVertex3fv(particle_array+(i*3));

> glEnd();

Cheers,Angus.

-- 
"Success is the ability to go from one failure to another with
 no loss of enthusiasm."    -    Winston Churchill.

Performer + OpenGL examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Nov 26 1999 - 04:27:48 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.