Re: Nodes for one particular channel

New Message Reply Date view Thread view Subject view Author view

Russell Suter (russell++at++ctasim.com)
Mon, 21 Apr 1997 10:11:07 -0700


On Apr 21, 8:22am, Jean BENOIT wrote:
> Subject: Nodes for one particular channel
> I use a multiChannel app. with the same BDD. so I share the scene between
> all my channels. but I need to insert a flt models, in only one of these
> channels, not in the others. how can i do ???
> I think about one no optimize solution : don' t share the scene, and
> duplicate it for all the channels,. but I'm sure that it's not the best
> solution.
>

Look at pfNodeTravMask and pfChanTravMask. From the man page of
pfChanTravMask:

     pfChanTravMask sets chan's drawing mask and is used in conjunction with
     pfNodeTravMask for selective culling and drawing of scene graphs on a
     per-pfChannel basis. During the traversal, the bitwise AND of the
     traversal mask and the node mask is computed. If the result is non-zero,
     the node is culled or drawn as usual. If off (zero), the behavior is as
     follows depending on trav:

          PFTRAV_CULL
               Node is not culled and is considered to be entirely within the
               viewing frustum. The cull traversal traverses the node and its
               children without any view culling.

          PFTRAV_DRAW
               Node is completely ignored. Both cull and draw traversals skip
               the node and its children.

     Node traversal masks are set by pfNodeTravMask. The default pfNode and
     pfChannel masks are 0xffffffff so that a pfChannel culls and draws all
     pfNodes.

> Yo
> =======================================================================
> 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 Jean BENOIT

-- 
Russ
_______________________________________________ ______________________________
Though my eyes could see                       | Russell Suter
        I still was a blind man.               |    Voice : (303) 889-1262
               Though my mind could think      |      Fax : (303) 889-1210
                       I still was a mad man.  | Internet : russell++at++ctasim.com
_______________________________________________|______________________________
=======================================================================
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:55:06 PDT

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