Hi Skylark,

I have the 3d model of the object I want to place on the terrain and yes I'm 
also using VPB for creating 3D terrain. So my problem was mainly about placing 
the model on the tarrain so that it sits on the surface and not half over and 
half under.

So I looked at the osgIntersection in the examples that come with the source. 
But I found it awfully confusing and had a lot of code that I couldn't connect 
with the intersection part of the problem dealing with here.

In terms of steps to follow for placing a model on a 3d terrain, I thought it 
would be something like: 

1) Get intersector for the 3d model (model->getIntersector)
2) Use this intersector to check with the 3d surface (not sure which function 
here)
3) Get the osg::Vec3d of the intersection point. Use that vec3d in the PAT for 
the 3d model.

Is this a logical track?

Thanks

Sanat

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28245#28245





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to