On 30/11/08 9:17 AM, Steven Saunderson wrote:
If I setComputeNearFarMode to DO_NOT_COMPUTE_NEAR_FAR the HD background
(white in my case) appears but not the black text. Reversing the colours
doesn't help so it looks like the background is appearing on top of the
text. Is there any way (perhaps StateSet entry) to correct this ?

Have you set correct near/far values?  Maybe your text is clipped by the near 
plane?

Also, the HUD relies on the scene lighting. This means that when I
reduce/disable the scene lights the HUD also fades to black. I'd like
the HUD contrast to be constant. Is there any way I can specify that the
HUD background is a constant white rather than being affected by the
ambient light level ?

Disable lighting for the HUD subgraph:
stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF);

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to