Hi,

try osgUtil::TransformAttributeFunctor

It's drawable attribute functor. It apply a matrix on the vertices and normals contained in the
drawable.

Use home made node visitor that apply the TransformAttributeFunctor on the
drawables contained in the geodes of the graph.



sherman wilcox wrote:
I have Geode object that is loaded via a plugin. This geode has
thousands of drawables with each drawable containing a collection of
vertexes. The issue is that these vertexes are in the wrong coordinate
system. I need to convert these vertexes from coordinate system A to
coordinate system B. I know how to perform this conversion on paper.
As to performing this coordinate system conversion on the vertexes in
the drawables, the way that jumps out at me is to iterate through all
the drawables/vertexes and convert them one by one.

My questions is this: is there a "proper" method for converting these
vertexes from one coordinate system to another or is what I'm
proposing the way to do it? I'm wondering if I should be using some
sort of node visitor or some other way. I'd rather use the facilities
provided by the framework when possible.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to