[osg-users] Using InfinitePlane

Valerian Merkling niarkoleptik at gmail.com
Fri Jun 24 01:01:25 PDT 2016


Hi,

InfinitePlane is an osg class, defined in osg/Shape.

According to osg documentation, InfinitePlane cannot be rendered but is used to support collision detection, so I guess I can use it to compute intersection between mouse clic and an imaginary ground.

I'm working on a GIS app, rendering large raster image with elevation, and I need to :
- get the x,y,z coordinate of the point under the mouse when I clic on a 3D rendered tile (and it already work)
- get the x,y,z=0 coordinate of the point under the mouse when I clic everywhere else, like far away from the rendered scene. And that's where I'm stuck.

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








More information about the osg-users mailing list