Yes, this is the only osgconv change, and the one I was referring to earlier. We developed it here so that our plugin for SketchUp to export to OSG ( [1] which exports to collada then converts with osgconv) would produce the expected results, keeping the world axes where they are shown. We had earlier seen unexpected behavior when scaling and rotating using osgconv, so I had anticipated that I would have a bug fix to submit. However, inspection of the code revealed that the behavior was just different (differently-useful) and not immediately obvious, rather than necessarily wrong. Thus, the "fix" comes in the form of a small new feature to enable the behavior we expected on request. With this change included, 2.8.5 will be fully functional with the SketchUp export plugin for use in VR environments using either the binary or text formats.
If it's easier to visualize, the diff can be seen here: https://github.com/rpavlik/osg/compare/OpenSceneGraph-2.8...osgconv-worldframe It's pretty straightforward, limited to only the osgconv binary, and doesn't result in changing existing behavior, which is why I was hoping it would be suitable for the 2.8.5 release. Thanks! Ryan [1] https://github.com/rpavlik/sketchupToOSG On Wed, May 25, 2011 at 4:58 PM, Paul Martz <[email protected]> wrote: > Ryan, is this the only change to osgconv you have? Are there any more > changes coming for the 2.8.5 release? > > I know you had previously mentioned a change to osgconv, but I did not > realize you were talking about an entirely new untested feature, as opposed > to a backport of something already on trunk. > -Paul > > > > On 5/25/2011 3:38 PM, Ryan Pavlik wrote: > >> All, >> >> I've attached zipped modified full files for trunk and the 2.8 branch of >> the >> promised improvement to the osgconv tool. >> >> Existing osgconv behavior is to transform the model bounding sphere center >> to >> the world origin before performing transformations specified on the >> command >> line, and translating back after rotation and scaling unless an alternate >> translation is specified. This patch adds a setting to the >> OrientationConverter >> class in osgconv to disable this extra transformation, which has the >> effect of >> applying specified transforms with respect to the input world coordinate >> system, >> rather than to the center of the bounding sphere. It also adds a command >> line >> argument "--use-world-frame" to enable this behavior. When this command >> line >> argument is not passed, behavior is unchanged from before the patch. The >> usage >> text has been updated to reflect this additional option, and the comments >> in >> OrientationConverter are also updated. >> >> Thanks! >> >> Ryan >> >> -- >> Ryan Pavlik >> HCI Graduate Student >> Virtual Reality Applications Center >> Iowa State University >> >> [email protected] <mailto:[email protected]> >> http://academic.cleardefinition.com >> >> >> >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >> > > > -- > -Paul Martz Skew Matrix Software > http://www.skew-matrix.com/ > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University [email protected] http://academic.cleardefinition.com
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
