HI Jim,

Are loading the scene, rendering and then writing out the scene graph?
 If so then it's likely that your scene graph as the Texture
UnrefImageAfterApply enabled on them so that once the image data is
downloaded to OpenGL the images get discarded so there's no handle to
write them out to disk any more.

By default this feature is off, but the osgUtil::Optimizer in it's
default settings will enable it, so if you run the Optimzer this is
probably the culprit.   The DatabasePager also set up to enable this
feature to help keep memory usage down.

Robert.

On Thu, Jan 14, 2010 at 3:46 PM, Jim Brooks <[email protected]> wrote:
> I'm trying to "dump" the scene-graph.
>
> osgDB::writeNodeFile() writes geometry/colors ok,
> but (OSG 2.9.6) omits texture objects.
>
> Eg, when running osgviewer on the dumped .osg file,
> textures don't appear.
>
> Is this behavior of writeNodeFile() intentional?
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to