Wrong calculation a bounding box of model which contains biped or bones. I'm
used this code to calculate bounding box:
Code:
model = (osg::Geode*) osgDB::readNodeFile("testmodel.fbx");
//calculating bounding box of model
osg::ComputeBoundsVisitor cbbv;
model->accept(cbbv);
osg::BoundingBox bb = cbbv.getBoundingBox();
osg::Vec3f sz = bb._max - bb._min;
It returns double size of model which contains biped or bones. If model without
biped or bones the size as expected. Does anyone have idea why so?
Thanks
Cheers,
John
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43825#43825
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org