Hi Sebastian,

Simply do use a MatrixTransform (or other Transform node) above the
subgraph you want to place in the scene, keep the subgraph with a local
origin use the transform to place the subgraph in it's final ECEF
coordinates.  This is basically the same approached used by osgTerrain/VPB
to avoid precision issues.

Robert.


On 11 December 2013 10:41, Sebastian Messerschmidt <
[email protected]> wrote:

> Hi folks,
>
> I was thinking if I could improve precision and z-fighting issues for my
> geocentric database (built with VPB) by placing models differently.
> Right now I'm using a pickvisitor to get the geocentric position on the
> terrain and place the model directly by putting it in the root of the scene
> with absolute coordinates.
> Is there some clever way to put it relative to the terrain-tile, so the
> precision is better than using absolute placing?
> Bonus would be If the models could stay at their separate group somehow.
>
> I'm having this idea, since the osg::Terrain is doing the high-precision
> matrix calculation inside the graph, presenting a ModelViewMatrix with
> relatively low values.
>
> P.S. I cannot use osgEarth here really, as the database is built with VPB,
> and I need superfast loading times.
>
>
> 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

Reply via email to