I noticed in my Java3D application that the clipping planes didn't seem
to be set where I though I was setting them.  So I did some more testing
and found that both the near and far clipping planes were set to roughly
6 times as far as I was setting them to be.
I made a very short example program that illustrates this behavior.  It
draws 3 cubes, one at Z = -15, one at Z = -25, and one at Z = -35.  I
set the back clipping plane to 5.0, and I leave the eyepoint at 0,0,0.
One would expect to see nothing because all three cubes should be beyond
the far clipping plane, but in fact only the third cube is clipped and
the first two are visible.  I have tested this with JDK1.3.1 with OpenGL
Java3D1.2.1 and JDK1.4.0 with OpenGL Java3D1.3 beta 1 on Windows NT and
Solaris 8.

I attached the test program to this email with the hope the someone will
tell me what I'm doing wrong.
I keep thinking that I am missing something really stupid because I
can't believe a problem like this would go unnoticed for so long, so if
that's the case, please tell me.

Thank you,
 -Roy Duffy
[EMAIL PROTECTED]

Attachment: Example.java
Description: application/unknown-content-type-java_auto_file

Reply via email to