Re: pfApplyHlight problem.

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Tue, 1 Oct 1996 09:59:29 -0400


On Oct 1, 10:16am, David Chan wrote:

> doorh = (pfHighlight *) door
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Since door is a pfGroup, it should not be cast to a pfHighlight.
A pfHighlight is associated to a pfGeoSet with pfGeoSet::setHlight.
The function pfuTravNodeHlight will traverse a node an set the highlight
to all its geosets. Try something like this instead:

pfGroup *door;
pfHighlight *doorh;
door = (pfGroup*) pfFindNode(ViewState->scene,"door",pfGetGroupClassType());
doorh = pfNewHlight(pfGetSharedArena());
pfuTravNodeHligh(door,doorh);

And that's it. No need to call pfApplyHlight. pfApplyHlight and pfDisable
are immediate mode calls that should only be done in the draw process
when mp.

-- 
Nicolas Gauvin			CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer 		Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications	tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca			fax: +1 514 340 5496
=======================================================================
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:42 PDT

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