Clipping range and glDepthRange
John Biddiscombe
j.biddiscombe at rl.ac.uk
Tue Mar 14 08:56:41 EST 2000
I'm still having trouble with Clipping and decided to attempt to fix it,
but I can't find any reference to
glDepthRange
in the vtk source anywhere.
This seems odd. In Renderer.cxx the clipping ranges are clamped and set up,
and in Camera the transformation matrix is created, but nowhere are the
clipping planes set in opengl. Are they assumed to be 0,1 and the
perspective transformation matrix worked in such a way that near->0 and
far->1. this seems odd.
Changing the ranges in vtkRenderer seems to be much more sensitive than I'd
expect.
For 24bit buffer (wot I'm using) setting
range[0] = 0.01*range[1] is fine but too coarse
range[0] = 0.001*range[1] is fine
range[0] = 0.0001*range[1] is bloody awful.
but 24 bits is way way more than 0.0001, so I'm confused.
For now I'm doing
16 bits range[0] = 0.01*range[1]
24 bits range[0] = 0.001*range[1]
32 bits range[0] = 0.0001*range[1]
but I don't like it.
Lisa? can you explain?
John B
(I must admit the perspective transformation looks odd to me).
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list