Re: [osg-users] Promoting Drawable from being subclassed from osg::Object to osg::Node

1 view
Skip to first unread message

Pjotr Svetachov

unread,
Jun 27, 2014, 5:14:23 AM6/27/14
to osg-...@lists.openscenegraph.org
I was trying to save a file to .ive format today but that failed with the message: "Unknown node in Group::write(), className()=Geometry"
So right now it looks like it's impossible to write to .ive files.
While osgt/osgb files work I looked at the code and noticed that the osg::Drawable does not have an osg::Node associate which means that node specific fields like _cullingActive and _nodeMask are not saved.

Cheers,
Pjotr

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





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Pjotr Svetachov

unread,
Jun 27, 2014, 6:15:24 AM6/27/14
to osg-...@lists.openscenegraph.org
Hi Robert,

I made a small change to DataOutputStream.cpp which makes saving Geodes possible again. This is only half a fix as it only will save a Drawable that is part of a Geode. But this change does not require a version bump of the .ive format. I tried it with a few datasets we have here with the 3.2 stable branch and the trunk with this patch and there was no difference in the .ive files that were produced.

Cheers,
Pjotr

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



DataOutputStream.cpp

Robert Osfield

unread,
Jun 27, 2014, 11:57:51 AM6/27/14
to OpenSceneGraph Users
Thanks Pjotr, fix merged and submitted to svn/trunk.
Reply all
Reply to author
Forward
0 new messages