Can the RTTPicker pick the terrain?

classic Classic list List threaded Threaded
2 messages Options
Andreas Roth Andreas Roth
Reply | Threaded
Open this post in threaded view
|

Can the RTTPicker pick the terrain?

I've seen that the REX and MP engine use a "reserved" object ID 1 and put it into the surface stateSet. But when running the RTTPicker (with osgearth_pick example) i never get a hit with the object ID 1. Is there something i need to enable for the RTTPicker to return the terrain as hit?

Thanks in advance,
Andreas
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Can the RTTPicker pick the terrain?

The purpose of that is to support the picking of draped geometry (i.e. geometry draped on the terrain with projected texturing).

No - you cannot pick the terrain.
Glenn Waldron / Pelican Mapping