rama++at++graphics.cis.upenn.edu
Sat, 24 Jun 1995 18:38:27 -0400
I am trying to use pfNodeTravMask to turn on or off one of the
objects in a scene.
The object is a transparent box.
There is no problem in drawing the transparent object.
Now, with a boolean flag, I want to control
whether the object can be seen or not.
For this I am using the pfNodeTravMask in the following way :
To turn it on,
pfNodeTravMask(node,PFTRAV_DRAW,0xffffffff,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);
To turn it off,
pfNodeTravMask(node,PFTRAV_DRAW,0x0,PFTRAV_SELF|PFTRAV_DESCEND,PF_SET);
I am using the perfly application as my base.
The problem I am facing is that the object is always visible,
whatever be the mask. I am printing out the scene and the mask
values are correctly set for that node.
So even if the mask is set to 0, it is still visible.
So, can somebody please explain as to what I might be missing?
The number of channels is also 1.
Thanks
Rama
---------------------------------------------------------------------
Rama Bindiganavale
rama++at++graphics.cis.upenn.edu
http://www.cis.upenn.edu/~rama/home.html
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:36 PDT