Brett,
Installing a ReadCallback on your IntersectionVisitor will allow it to
traverse PagedLODs so you can intersect with the highest LOD. Look at
osgSim::HeightAboveTerrain for a demonstration of the technique.
If you don't like that approach, you could install an
osgDB::Registry::ReadCallback,
28, 2009 2:03 PM
To: OpenSceneGraph Users
Subject: [osg-users] Ground clamping to paging terrain
Hi,
I want to position something (let's say a building) to a terrain.
Currently I'm getting the Z value for the building doing this with an
osgUtil::IntersectVisitor and that works fine for s
There is an osgSim::ElevationSlice that might be useful here, because it is
smart about paged databases and will go to the highest LOD to get the
elevation values.
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466
___
osg-us
brettwiesner wrote:
> I want to position something (let's say a building) to a terrain.
> Currently I'm getting the Z value for the building doing this with an
> osgUtil::IntersectVisitor and that works fine for static terrains. When
> I run on a paging terrain (like one from osgEarth) and I positi
Hi,
I want to position something (let's say a building) to a terrain.
Currently I'm getting the Z value for the building doing this with an
osgUtil::IntersectVisitor and that works fine for static terrains. When
I run on a paging terrain (like one from osgEarth) and I position the
building, I
5 matches
Mail list logo