Re: pfApplyHlight problem.

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.asd.sgi.com)
Mon, 30 Sep 1996 22:22:03 -0700


+>---- On Oct 1, 10:16am, David Chan wrote:
> Subject: pfApplyHlight problem.
->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);

Are you running multiprocessed? In which case this pfEnable will
be done for the application process and it is needed in the draw process.
We have a libpfutil traversal to run over a subtree of a scene graph enabling
highlighting:
        extern void pfuTravNodeHlight(pfNode *_node, pfHighlight *_hl)

-> 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
+>---- End of excerpt from David Chan

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
http://www.sgi.com/Technology/Performer/
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
=======================================================================
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.