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 :-)
Regards,
Viggo
> Date: Tue, 29 Jul 2008 12:14:18 +0200> From: [EMAIL PROTECTED]> To:
> [email protected]> 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 <[EMAIL
> PROTECTED]> 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> >
> [email protected]> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org> >>
> >> _______________________________________________> osg-users mailing list>
> [email protected]>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_________________________________________________________________
Windows Live Messenger - også på mobilen.
http://windowslivemobile.msn.com/Homepage.aspx?lang=nb-no&ocid=30032
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org