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
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
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
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
4 matches
Mail list logo