Hi Sukender, On Tue, Nov 24, 2009 at 9:53 AM, Sukender <[email protected]> wrote: > I confirm that "old" 3DS reader merges transforms into vertices (= vertices > are transformed and MatrixTransforms become Groups). I'll create an option > for the new reader to have both behaviours (keep transforms or merge them). > According to you, what should be the default behaviour? > I suggest it should be the "old" one, knowing the fact lib3DS merges > transforms (= I have to undo what is done in lib3DS to keep transforms, > leading to possible rounding errors); but this is subject to discussion, I > think.
Thanks for the investigation/explanation. Having an option for both would be appropriate, what you may be able to do is move the transformation of vertices onto the the osgUtil::Optimizer::FlatterStaticTransforms. As for the default, if he model appears on screen the same then it's likely that keeping the transforms would be fine, especially as osgUtil::Optimizer can get rid of them anyway. As for precision - leaving the transforms in the scene graph will likely lead to better precision if the subgraphs have local coordinate - which is the typical setup of models. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
