Re: Particle System

New Message Reply Date view Thread view Subject view Author view

Geoff Levner (g.levner++at++acsys.it)
Fri, 26 Nov 1999 11:32:34 +0100


Devrim Erdem wrote:

>> It sounds like what you probably want to do is to use a callback in
>> the
>> DRAW process to draw your particles (using your old OpenGL code)
>> rather
>> than creating a geoset. Try something like this:
>
> What is the advantage of the OpenGL method to the geoset approach ? It
> is possible to
> recompute the vertices of the geoset each frame. Is it that gl calls
> will skip the culling phase ?

The big advantage of doing this in a draw callback is that it is easier
to program, especially if you already have working OpenGL code. You
don't need to bother building a pf data structure. Also, you may be
able to add some intelligence specific to your application that
Performer does not have.

On the other hand, as Angus said, if you do build a geoset then you get
culling for free, and you can be confident that the drawing code is
optimized. But if you are just drawing points, I don't imagine there is
much to optimize.

--
Geoff Levner -- g.levner++at++acsys.it
ACS Studio, via Aurelia 58, 00165 Roma, Italy
tel. +39-063936331, fax +39-0639363317

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Nov 26 1999 - 02:23:57 PST

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