Hi Priyank, see the answers below:
"Priyank Jain" writes: > Hi, > > I just started using openScenegraph and it has been pretty smooth for me till > now. I am making a simple racquet-ball game for my VR class (using a CAVE > system). I have some basic questions to ask.. > > 1. What coordinate system does OSG follow ? > Right handed, I presume ? Also, x points to East ? Y up or into the screen ? > I couldn't find the thumb diagram on the website. Can you guys please refer > me to the right convention or link ? Right handed with Z axis for the "up" axis. Of course you can change this at will by changing your camera orientation. > 2. How do I generate Bounding box/ bounding sphere for a given box/ sphere > geometry? Can this information be embedded in the model and extracted using > any of the plugins ? Those entities are already computed since OSG needs them for culling purposes. You can get the bounding sphere of any node with osg::Node::getBound() http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00431.html#1467f2ad703474ad37a236f87dee1f3a and the bounding box of any geode with osg::Geode::getBoundingBox(): http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00265.html#2fd21a35d6160f8210ea825105670037 > 3. Is there something pre-defined for collision detection-resolution wrt > Bounding box and bounding sphere in osg ? Check the methods for osg::BoundingBox and osg::BoundingSphere: you can test them for intersections or even convert a osg::BoundingBox to an osg::BoundingSphere and then make your intersection test. Regards, -- Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

