Hi Peter,

On 21/09/10 21:52 , Peter Wraae Marino wrote:
> I've been trying to read some values from the DepthBuffer and I don't seem to 
> get what I
> would expect. Here is a cut down version of my code (should be able to run):
>... 
> I get a value of 0.0642448 and this is not what I expect.
> I would expect that the near and far plane are automatically computed to fit 
> the box,
> which should mean the near plane is collinear with front of the box.. which 
> should result
> with a value of 0
> 
> can someone explain to me what I'm doing wrong?

The auto-computed near/far planes would fit the bounding sphere around the box, 
which is
larger than the box itself.  Would that fit?  Maybe you're assumptions are off?

Cheers,
/ulrich

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to