[osg-users] Pick color from scene

Viggo Løvli vigigio at hotmail.com
Tue Jul 29 03:33:36 PDT 2008

Hi Brede,
Thanx for the info, it looks like it will give me the texture coordinates of the polygon that is hit, and that is a very good start :-)
> Date: Tue, 29 Jul 2008 12:14:18 +0200> From: bredej at gmail.com> To: osg-users at lists.openscenegraph.org> Subject: Re: [osg-users] Pick color from scene> > Hi Viggo,> > Some time ago there was a thread called "How to retrieve a U, V> texture coordinate from a picking action ?".> > http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/26306/focus=26352> > > Regrads,> Brede> > 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> >> >> _______________________________________________> osg-users mailing list> osg-users at lists.openscenegraph.org> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Windows Live Messenger - også på mobilen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080729/aabf5ad2/attachment-0003.htm>

More information about the osg-users mailing list