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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of santosh
Sent: Thursday, November 01, 2007 8:37 AM
To: [email protected]
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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to