Re: [osg-users] how to keep the camera from being below the terrain?

2013-01-14 Thread Sergey Polischuk
Hi there is no collision detection in osg. You can use intersectors in osgUtil and trace rays from camera downwards to check distance from ground, or use some physics engine to get proper collision detection. Cheers. 13.01.2013, 20:51, "Yansi Yao" yaoyans...@yahoo.com.cn:Hi all,I'm going to attach a bounding box or bounding sphere to the camera, and detect the collision between the terrain and the bounding object. But I don't know how to detect this collision in osg. Could you tell me how to do this? or is there any demo for this problem?Cheersyaoyansi,___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] how to keep the camera from being below the terrain?

2013-01-13 Thread Yansi Yao

Hi all,
I'm going to attach a bounding box or bounding sphere to the camera, and detect 
the collision between the terrain and the bounding object. But I don't know how 
to detect this collision in osg. Could you tell me how to do this?  or is there 
any demo for this problem?

Cheers
yaoyansi
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org