> Date: Mon, 29 Jul 2002 04:49:42 +0200 > From: Georg Rehfeld <[EMAIL PROTECTED]> > > > Date: Sun, 28 Jul 2002 13:57:37 +0100 > > From: Jeremy Booth <[EMAIL PROTECTED]> > > > > according to my debug info the front clip distance is set to 0.1, and the > > policy is View.PHYSICAL_EYE, I assumed from this that setting the z value > > to -0.2 would ... , I have some simple collision avoidance code to stop the > > objects in the scene coming to far forwards, and in windowed mode this all > > works fine, but in fullscreen mode they get clipped first. > > If you would set the policy to View.VIRTUAL_EYE the clip distance > is exactly what you would expect, independent of window size:
This is what we recommend as well. The PHYSICAL_EYE policy is a very poor default due to the complexity of the physical to virtual world mapping, especially with regards to the clipping planes. There are some quirks in positioning the clipping planes when the window is resized, and you are probably running into those. Jeremy, if you do need to use the PHYSICAL_EYE clip plane policy, contact me directly and we can go over the details. There is also some discussion of these issues in the javadoc for the configuration file used by ConfiguredUniverse. If you download the doc package you can find a discussion of ScreenScalePolicy and FrontClipDistance in the file html/com/sun/j3d/utils/universe/doc-files/config-syntax.html. -- Mark Hood =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
