Hello! Thank you very much for this clarification! This confirms more or less what I suspected to be the case. Then again, this leads me to another question: How exactly does OpenSceneGraph decide to place the origin of a geometry-specific (i.e. local) coordinate system? From what I have seen in the test geometries I imported using the COLLADA importer, that choice seems to be largely dependent on the structure of the "subtree" of nodes that the OSG COLLADA importer produces.
Thank you! Fabian Aichele Zitat von Paul Martz <[email protected]>: > Bullet requires collision shapes to be centered on the origin. OSG models do > not necessarily have to be centered on the origin and often are not. You > might need to account for this difference using a translation in your own > code, so that the collision shapes coincide with the OSG visual > representation of the collision shapes. > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com <http://www.skew-matrix.com/> > +1 303 859 9466 > > > _____ > > From: [email protected] > [mailto:[email protected]] On Behalf Of Fabian > Aichele > Sent: Thursday, January 15, 2009 1:10 AM > To: OpenSceneGraph Users > Subject: [osg-users] Choice of body-specific coordinate system origin by > dae(COLLADA) reader > > > Hello, osg-users! > > I have a question regarding the choice of the body-specific coordinate > system made by the COLLADA reader (daeReader/Writer in osgDB). > When I import a geometry from a COLLADA document, the osgDB plugin returns a > osg::Group that contains the "nodes" declared in the COLLADA document > together with all the "geometries" used by the node declaration, plus > material properties etc. > > That works fine, but there is one thing I haven't figured out yet: How does > the COLLADA importer decide where to put the "local" origin for a node > hierarchy imported from COLLADA? I have tested different geometries > consisting of 20 to about 50 triangle strips/fans/arrays, but the > body-specific coordinate system was chosen quite arbitrarily (at least I > couldn't figure out any pattern). > > This is important for me to know since I use OpenSceneGraph to visualize a > rigid body simulation with the Bullet Physics engine, and I haven't managed > to get the OSG and Bullet coordinate systems "in sync". > > Any hints or pointers to documentation/examples/earlier questions regarding > this are gladly accepted. > > Thank you! > > Fabian Aichele > -- ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

