pfuSmoke problems

New Message Reply Date view Thread view Subject view Author view

Robert Reif (reif++at++rdvax.ntsc.navy.mil)
19 Aug 96 13:04:00 EST


I am having two problems with the pfuSmoke routines. There appears to be
a bug when a smoke is stopped and restarted. I was getting a floating
puff above the restarted smoke. This is easily fixed by adding the
following two lines to pfuSmokeMode():

        smoke->startPuff = smoke->numPuffs = 0;
        smoke->prevTime = -1.0f;

The second problem is much more serious and not as easily solved. There is
no way proper way to delete a pfuSmoke once it is created. The pfuSmoke
routines keep an array of pointers to all pfuSmoke structures created by
pfuNewSmoke(). If you delete the value returned by pfuNewSmoke,
pfuDrawSmokes will continue to use the deleted memory which is not a good
thing.

Are there any plans to fix this problem in a future release or has someone
else already addressed this problem?

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:53:23 PDT

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