Re: [osg-users] Finding Normals at all pixel positions

2008-02-27 Thread Harash Sharma
inding Normals at all pixel positions Hi Harash, Render you scene to a depth texture and then compute the normals from this in a second pass in the shader. Robert. On Mon, Feb 25, 2008 at 3:20 PM, Harash Sharma <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > >In my

Re: [osg-users] Finding Normals at all pixel positions

2008-02-25 Thread Guy
PM To: OpenSceneGraph Users Subject: [osg-users] Finding Normals at all pixel positions Hi All, In my OSG application, I want to find the normal vector corresponding to each pixel position. It means that after rendering if an image pixel (i,j) comes from an object plane P, I need to find the N

Re: [osg-users] Finding Normals at all pixel positions

2008-02-25 Thread Robert Osfield
Hi Harash, Render you scene to a depth texture and then compute the normals from this in a second pass in the shader. Robert. On Mon, Feb 25, 2008 at 3:20 PM, Harash Sharma <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > >In my OSG application, I want to find the normal vector corresponding

[osg-users] Finding Normals at all pixel positions

2008-02-25 Thread Harash Sharma
Hi All, In my OSG application, I want to find the normal vector corresponding to each pixel position. It means that after rendering if an image pixel (i,j) comes from an object plane P, I need to find the Normal vector to P. One of the ways would be to use LineSegmentIntersector to find the