Bonjour Frédéric,

I’m having trouble with textures on slave cameras added to an osgViewer. Textures won’t appear if I add the slaves after a first call to osgViewer::frame().

This is an FAQ.

By default, osg::Texture* will unref the image data after it has been applied, i.e. once it's been uploaded to the graphics hardware and is not generally needed in main memory anymore. You can change this by calling setUnRefImageDataAfterApply(false) on your textures, or by running the osgUtil::Optimizer::TextureVisitor with changeAutoUnref=true and valueAutoUnref=false on your models.

Hope this helps.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to