Okay, I've found the solution myself.
I simply use the transforms from getWorldMatrices on the group
containing the geometry.
cheers
Sebastian
Attached you'll find the obj produced by the nodevisitor and a
screenshot.
Thanks.
Hi,
I have a geocentric terrain database built by osgDEM of which I need
the highest LOD as geometry in order to post process it in another
toolchain.
What I tried is to get the highest LOD subtiles and visit them with a
NodeVisitor which will then convert the "geodes".
In order to do so I use a TriangleFunctor.
Unfortunately this doesn't give me the expected results as the
coordinates are wrong.
So for instance for the first LOD (which should be complete globe) I
get two half-spheres pointing into the wrong directions (I will
attach a screenshot tomorrow).
I've already tried to post-transform the vertices from the
TriangleFunctor via the Locator->getTransform() and via the locators
transform functions, but this didn't solve the problem.
Can someone explain to me, how to get the geometry of an individual
tile in world space coordinates?
Might there be a problem not using the toplevel nodes (I somehow
suspect that the "local" locators are not sufficient to get the world
space positions of the vertices)?
cheers
Sebastian
_______________________________________________
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org