Hi John, > De: "John Doves" <[email protected]> > > 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?
Maybe because mixing bounding boxes and bounding spheres inflate the result. I did this diagram several month ago : http://frbouvi.free.fr/flightsim/bounding_sphere.jpg Regards, -Fred _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

