HI Magnus,

If you make a Transform node as STATIC then you've told the scene
graph that it will never change so will be fair game for the
Optimizer.  You have two choices if you don't want to have the
Optimizer optimize it away:

 1) Don't call the Optimizer with the FLATTEN_STATIC_TRANSFORM enabled.
 2) Make your Transforms which will be changing as DYNAMIC.

Robert.

On 27 February 2012 15:10, Magnus Kessler <magnus.kess...@gmx.net> wrote:
> We recently discovered that osgSim::DOFTransform nodes were unexpectedly
> removed from the scene graph by the unconditional use of the
> osgUtil::Optimizer in osgconv. The DOFTransform nodes were marked by our
> modelling tool (Max with the osgmaxeporter plugin) as STATIC.
>
>
>
> Should the optimizer flatten DOFTransform nodes at all, under any
> circumstances? They carry much more information than a simple transformation
> matrix, such as the ranges for the DOFs. In our case it was this information
> that needed to be preserved.
>
>
>
> Can anyone think of a good use case where one would want to flatten
> DOFTransform nodes with osgconv? After all, if I weren't interested in the
> additional information, I could just use a MatrixTransform...
>
>
>
> Regards,
>
>
>
> Magnus
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to