Trav Masks

New Message Reply Date view Thread view Subject view Author view

From: Stephane Jaeger (stephane.jaeger++at++imag.fr)
Date: 05/07/2001 05:45:38


Hi,
I am currently having problems with trav masks. I share the same scene
with 2 different channels. But I want some nodes of the scene to be
taken into account only by one of the channel or by both of them. So I
set my first channel with mask 0x01 and the second one with mask 0x02.
When I want some node to be displayed by both channels I set it to 0x03,
if I want it to be rendered only by the second channel and not the first
one I set it to 0x02. These two former case work fine. However I now
have a node I d like to be drawn only by the first channel and not by
the second one. I set it to 0x01 and it doesn't work: it ' s drawn by
both channels, I really don t understand. Does anybody know how to fix
this ?
Thanks ,
Stephane

//two channels
firstpass->setTravMask(PFTRAV_DRAW,0x01);
 chan->setTravMask(PFTRAV_CULL,0x02);

  //Set trav Masks for the different passes

group->setTravMask(PFTRAV_DRAW,0x03,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);

studioDCS->setTravMask(PFTRAV_DRAW,0x02,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);

projDCS2->setTravMask(PFTRAV_DRAW,0x02,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);

projDCS->setTravMask(PFTRAV_DRAW,0x02,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);

projDCS3->setTravMask(PFTRAV_DRAW,0x02,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);

billDCS->setTravMask(PFTRAV_DRAW,0x01,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon May 07 2001 - 05:45:51 PDT

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