Hi,
Try writing to an IVE file, the OSG file only stores the path of the
texture. Also use
texture->setUnRefImageDataAfterApply(false);
for any texture you are using. The OSG optimizer sets this flag as true,
so the image us unreferenced after it is loaded.
Pawan Harish
On Mon, 11 Jun 2007, litingbaotou wrote:
I use OSG V1.0. I want to write a node as an osg file, I tried
osgDB::Registry::instance()->writeNodeImplementation(),
osgDB::Registry::instance()->writeNode() and osgDB::writeNodeFile(), and it can
not wirte the textures. So when I read the exported osg file, it has no textures.
I want to write a node with textures, how can I do?
litingbaotou
2007-06-11
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/