Re: Using Performer or GL for smoke like fx?

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++bvr.co.il)
Mon, 5 Feb 1996 18:23:47 +0000


On Feb 5, 10:47am, Nicolas Gauvin wrote:
> Subject: Using Performer or GL for smoke like fx?
>
> What is the recommed way to do special effects such as smoke in Performer?
>
> I have code that uses straight GL to calls to rotate and draw the various
> smoke puffs. pfuSmoke also uses straight GL. How about using Performer
> primitives instead (pfGeoSet and pfGeoState) combined with the appropriate
> pfDCS, pfSequence and pfBillboard? Would this be too much overhead compared
> to using straight GL calls. Since the smoke puffs requires to be dynamically
> sized and positionned maybe the fixed nature of pfGeoSet make them less
> usable in such a context. I would like to know the opinions of people
> who have tried both approaches.

You can have the best of two worlds : Have a DCS and a Billboard for the smoke,
which will contain empty geometry (just update the DCS's bounding sphere). This
way - Performer culls your effect and rotates it to meet the eye.
In a draw callback of that node you can draw the puffs or whatever using
straight GL. You can skip the billboard and use pfSprite instead, inside the
draw callback.

Ran

-- 
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | Graphics App. Chief Engineer
/ )_ (_(_) )   \/ (_(_/<_(_)(        | BVR Technologies Ltd.
              _/                     |   
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++bvr.co.il
  Work : 972-3-5715671               |
  Res. : 972-9-989974                |
Fax    : 972-3-5715668               |

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:21 PDT

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