I am loading a texture from disk, and I map it to a quad shaped osg::Geometry. This is used as an HUD texture.

The osg::Geometry is then placed under a switch node, which initial state hides all children.

I run my process for a couple of minutes. After that I turn on all chilren of my switch node. (the hud texture is displayed for the first time). What happens here is that the process "stops" for a short time, before it displays the image.

When this procedure is repeated, i.e. all children off then on again, the "stop" is not present.

Could it be that the display lists are compiled for the first time when I show the hud-texture for the first time?

If yes, is there a good way to precompile the display lists of the osg::Geometry node?



--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to