[osg-users] Optimizer FLATTEN_STATIC_TRANSFORMS not all transforms are flattened

Voerman, L. l.voerman at rug.nl
Thu Apr 25 00:33:27 PDT 2019


Hi Sergey,
without example I can only guess what might go wrong,
maybe you need
FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS
or some of the nodes have a name, nodemask or userdata or stateset.
all of those could prevent the optimizer from removing the transform.
I also had some trouble getting the optimizer to remove the top node of a
graph, so adding a simple Group on top might also help.
Regards, Laurens.

On Wed, Apr 24, 2019 at 10:16 PM Sergey Lukashev <lukashev.s at ya.ru> wrote:

> Hello, osg folks!
>
> I've used FLATTEN_STATIC_TRANSFORMS and it works quite good. However, now
> I need to rotate the scene, so I added a MatrixTransform on top of the root
> node. But it does not get flattened for SOME models. I properly set
> DataVariance of every Transform to STATIC before running the Optimizer. Can
> somebody point out where issue could come from and how to debug or solve it?
>
>
>
>
>
> --------------------------------------
> Regards, Sergey.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190425/d2fd0c11/attachment.html>


More information about the osg-users mailing list