Hi,

  I have an osg::ProxyNode that is a child of an osg::Group. The ProxyNode's 
filepath is relative (i.e. ./external/filename.ive) and I set it as such with 
the following line of code:

proxyNode->setFileName(0, "./external/filename.ive");

  Once the filename has been set on the ProxyNode, i write the group out to a 
file using the following line of code:

osgDB::writeNodeFile(*node, "/dir/output.ive");

  However, I did not see the ProxyNode loading the correct file. I then 
performed an osgconv to convert the file from .ive to .osg format. There, I 
noticed that the filename of the proxy node is incorrect. It was pointing to 
/dir/filename.ive rather than ./external/filename.ive.

  How to I write the ProxyNode to a file so that its path is relative. I 
basically want the ProxyNode's filepath to be ./external/filename.ive rather 
than an absolute path. Is that even possible?

Thank you!

Cheers,
Nick

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=53067#53067





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to