[osg-users] Clamping models to an osgTerrain

SHAYNE TUELLER shayne.tueller at comcast.net
Sat Dec 21 10:21:56 PST 2019


Hi Brad,

I'm assuming you've looked at the osgSim class? It has the ability to query where the ground is at the highest LOD of the terrain. It has other methods you can use to interact with osgTerrain that may be able to help you.

Shayne

> On December 20, 2019 at 4:53 PM Brad Colbert <bcolbert at rscusa.com> wrote:
> 
>     Hi folks,
> 
>     I googled but not found an answer that goes into this.  
> 
>     I have what can be considered a town and want to clamp the buildings to the terrain (obviously).
> 
>     What I would prefer is to have some pre-process that runs intersectors on the terrain, pushing up (or down) through the PagedLODs, placing the model at the appropriate height, and then saving that tile back out.  This way the models just get loaded in with the PagedLOD and are already at the right height as the terrain height pops up and down based on the LOD.
> 
>     Is this even possible with 3.6?  If so, any ideas, thoughts, pointers?
> 
>     Best,
>     Brad
> 
>      
> 
>     --
>     You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
>     To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com mailto:osg-users+unsubscribe at googlegroups.com .
>     To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/dd3b24e4-a1da-46de-9957-c98bf330d2c1%40googlegroups.com https://groups.google.com/d/msgid/osg-users/dd3b24e4-a1da-46de-9957-c98bf330d2c1%40googlegroups.com?utm_medium=email&utm_source=footer .
>     _______________________________________________
>     osg-users mailing list
>     osg-users at lists.openscenegraph.org
>     http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191221/ea620b19/attachment.html>


More information about the osg-users mailing list