[osg-users] HUD in multiple display

Vican, Justin E. jvican at draper.com
Thu Nov 1 05:55:54 PDT 2007


Hi Santosh,
You can do this with node masks.  Set the node mask for the HUD camera
to 0x000000001:
  hudCamera->setNodeMask(0x00000001);

Then set the cull mask for all cameras in viewer.  For the camera in
which you want the HUD to display:
  masterCamera->setCullMask(0xfffffffF);

For all other cameras:
  slaveCamera[N]->setCullMask(0xfffffffE);

The masks will be and-ed, and the HUD will be culled out of all slave
cameras.  This has worked for me with the composite viewer.  I haven't
done any slave cameras, but I imagine something similar will work.

Hope this helps,
Justin



-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of santosh
Sent: Thursday, November 01, 2007 8:37 AM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] HUD in multiple display

Hi Guys

I had created a HUD for text display and added in the root node. For 
multiple screen display I added the slaves in viewer.
Now I am getting the text on every slave camera which I don't want. I 
want it to be in  only one display.
What sould I do for this ?

Thanks
    - Santosh
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g


More information about the osg-users mailing list