I've added a HUD (code based on the OSG tutorial) but it has problems.

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 ?

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 ?

Thanks,
Steven

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to