Hi Robert,
I just found that serializers/osgTerrain/Terrain.cpp was:
REGISTER_OBJECT_WRAPPER( osgTerrain_Terrain,
new osgTerrain::Terrain,
osgTerrain::Terrain,
"osg::Object osg::Node
osg::CoordinateSystemNode osgTerrain::Terrain" )
{
...
}
This would cause unexpected behavious because of osgTerrain::Terrain
not derived from osg::CoordinateSystemNode. A static_cast<> will lead
to wrong conversation in that case. If someone would like to record
coordinate system information here, a ADD_USER_SERIALIZER should be
used.
FYI, the last line here could be modified to:
"osg::Object osg::Node osg::Group osgTerrain::Terrain"
BTW, as there were no replies to my last thread of the osgb
compatibility, I have to fight a lone battle at this stage. :) I'll
try to submit the multi-version controlling functionalities first at
this weekend.
Cheers,
Wang Rui
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org