RE: Draw an object in only one channel

New Message Reply Date view Thread view Subject view Author view

From: Dorosky, Christopher G (christopher.g.dorosky++at++lmco.com)
Date: 03/29/2002 05:03:22


Attach a pre-cull callback to the node.
THe callback will give you traverser data, plus any user data you sent.
The traverser has a function trav->getChan();
You can then test which channel it is, then do

pfCullResult(PFIS_FALSE);
return PFTRAV_PRUNE;

to cut it out of the channel,
and
return PFTRAV_CONT;
to leave it in the channel.

Chris

-----Original Message-----
From: kcc++at++DynRes.com [mailto:kcc++at++DynRes.com]
Sent: Thursday, March 28, 2002 5:37 PM
To: info-performer++at++sgi.com
Subject: Draw an object in only one channel

Hello,

My Performer application has 2 channels drawing the same pfScene. There is
one special object (pfDCS) I like to draw on the first channel but not on
the second one. What is the easiest way to implement
this?

Thank you for your help.

Kevin

-----------------------------------------------------------------------
   List Archives, Info, FAQ: http://www.sgi.com/software/performer/
   Open Development Project: http://oss.sgi.com/projects/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 2b29 : Fri Mar 29 2002 - 05:03:35 PST

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