pfApplyHlight problem.

New Message Reply Date view Thread view Subject view Author view

David Chan (tfchan++at++cs.cuhk.hk)
Tue, 1 Oct 1996 10:16:18 +0800 (HKT)


Hi,
        I need to high light some object in performer 2.0, but there are no
effect. I do it in this way:
        (1) in perfly.c, I put this code in function updateView();
                pfGroup *door;
                pfHighlight *doorh;
                door = (pfGroup*) pfFindNode(ViewState->scene,"door",pfGetGroupClassType());
                doorh = pfNewHlight(pfGetSharedArena());
                doorh = (pfHighlight *) door;
                pfEnable(PFEN_HIGHLIGHTING);
                pfHlightColor(doorh,PFHL_FGCOLOR,1.0f,0.0f,0.0f);
                pfApplyHlight(doorh);

                for (i=0;i<5000;i++);
                pfDisable(PFEN_HIGHLIGHTING);
                 
        (2) but there is no highlight for object "door", and if I remove
the last line, bus error occured, I am sure the object door can be
got.

        Any suggestion are welcome, Thanks very much.

        David
         
=======================================================================
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:41 PDT

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