On Wed, Jul 7, 2010 at 5:39 AM, Roman Grigoriev <[email protected]>wrote:

> Hi guys!
> I have one set of models that positioned along x axis and another set of
> models positioned along y axis.
> So I apply matrixtransform to second set of models to aling them along X
> axis.
> So in my app I translate and rotate them also so on first set of models I
> have one matrixtransform and on second I have two matrixtransform.
> So here I got additional perfomance penalties.
> I want to remove my additional matrixtransform. As far as I understand I
> have to write  custom node visitor that apply my transformation to vertices
> and write back transormed models to model files. Maybe it's already done?
>
> It's probably best to set up the transformations so you only have one
MatrixTransform per model to begin with. Just compose the transformations in
one matrix i.e.: mat.setRotate(...); mat.setTrans(...). Or do the matrix
math if you need to compose more complex transformations.

Tim

> Thank you!
>
> Cheers,
> Roman
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=29763#29763
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to