Zitat von Jason Daly <[email protected]>: Hello! The only way I know of to influence the position of geometries in --> world coordinates <-- is via attaching <translate> and <rotate> tags to a node declaration in the COLLADA document; together with the <up_axis>, this specifies the initial scene layout in world coordinates, agreed. But: I didn't find an explicit possibility to influence the position of a body-specific coordinate system in the COLLADA standard specification, and the only component that remains to choose a reference point in a body frame is OpenSceneGraph. As long as I don't know or find out how this choice is made, I don't know how to do a "correction" transform to get the coordinate frames of the Bullet Engine and OSG in sync.
I will try to use the "center-of-mass" coordinates that can be given for a COLLADA node to correct the offset between the two reference frames above. Thank you! Fabian Aichele > > I don't believe the importer decides anything. All of this information > is in the file itself. The root of the document's visual scene is > placed at 0, 0, 0, and everything else is relative from there, according > to whatever transforms are attached to the visual scene's nodes. If > you're seeing an arbitrary origin, it's probably because it was modeled > that way (some of the COLLADA test models do have strange origins). > > The only other influence on the coordinate system comes from the > document's <up_axis> setting in the global <asset> tag. This describes > whether the document's contents are X_UP, Y_UP, or Z_UP. This is used > to adjust to the OSG coordinate system (which is Z_UP). > > Hope this helps... > > --"J" > > -- ---------------------------------------------------------------- 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

