[osg-users] [3rdparty] Camera collision with terrain

Anton Kalugin ht11 at ya.ru
Fri Oct 13 00:34:41 PDT 2017


Hi,

I've create terrain with VirtualPlanetBuilder, what I need to do to prevent the camera sinking under the loaded surface. In TerrainManipulator class, exist method which as I understand will helps me to do this, like setNode, this method is called from View class by setCameraManipulator where scene will be attached  to camera manipulator, but methods of TerrainManipulator performMovementMiddleMouseButton and performMovementRightMouseButton never called any where, so camera intersection with scene can't be handled. Is this mean that i need to create my own manipulator which should be inherited from TerrainManipulator and where I have to handle camera collision or is there any other way to resolve my problem.

Thank you!

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







More information about the osg-users mailing list