On 10/17/2011 7:37 AM, Atilla Selem wrote:
> i have an Osg application to construct my scene i'm using CompositeViewer. i 
> have a main view and whenever user wishes there are some small views 
> (viewports) on top right side of my main window. There is no multiple 
> windows, just main scene view and other small views rendered on main view.
> i also have same HUD ovelays giving information whenever user picks an object 
> on main view. My problem is to hide those overlays from small views when user 
> opens those views for viewing an object in detail. But overlays displayed in 
> main view also appears on small views.
> How can i hide those HUD overlays in those small views?
> Should i register to camera post draw callback when i create small views and 
> node mask HUD overlay? İf so, which callback should i use?
> Or is there another way to make those overlays visible in main view but 
> invisible on other views?
> i could not find any other post regarding solution? Do u know related posts?

  Maybe I'm missing something, but wouldn't you dedicate a nodemask bit to 
flagging your
HUD elements, and then use a cull mask on the main View's camera that selects 
the HUD, and
leave that bit off the other View's cameras?

-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to