[osg-users] Pick color from scene

Brede Johansen bredej at gmail.com
Tue Jul 29 03:14:18 PDT 2008

Hi Viggo,

Some time ago there was a thread called "How to retrieve a U, V
texture coordinate from a picking action ?".



On Tue, Jul 29, 2008 at 9:23 AM, Viggo Løvli <vigigio at hotmail.com> wrote:
> Hi,
> I want to do a ray-intersection toward a tree model (as an example) and
> ignore the hit-location if it contain zero alpha value. Basically this is a
> line-of-sight-check that take textures into consideration.
> I think a good way is to use the existing intersection system and thus
> produce a list of hit-locations. I will then for each hit location need to
> figure out what alpha-value it holds. I can then ignore those hit-locations
> that we can see through.
> So, I am looking for a scene-graph color-picker.
> Does anybody have something like this that they want to share?
> Note: I am not looking for something that use hardware to render part of the
> scene and then a read-back from hardware. This should be CPU only :-)
> Regards,
> Viggo
> ________________________________
> Få Hotmail du også. Windows Live Hotmail nå med 5000 MB gratis
> lagringsplass.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list