Jeremy, Unfortunately Sun's implementation of Clipping distances is extremely confusing! See our documentation of this issue at:
http://www.starfireresearch.com/services/java3d/supplementalDocumentation.html#ClippingValues - John Wright Starfire Research Jeremy Booth wrote: > > Hi > I'm working on an app that has to have the ability to run either in fullscreen > mode or windowed, I can change between the two easily enough based on a > properties file, but i've just recently started to add the code for an overlay > (will look at the j3d stuff when it returns), i'm not using the graphics 2D from > the canvas, I am adding single textured quads to the view platform geometry, in > setting the -z element for these quads I have to make sure they are not so far > forwards that they get clipped out by the front clipping distance, however, > 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 > give me something that looked right to start from, how wrong I was, in windowed > mode I have to set it to -0.5 to see it at all, and in fullscreen I have to set > it to 0.8 to even see it, 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. > This leads me to *guess* that the clipping distance is somehow different, but > the debug seems to suggest it's still 0.1, so my question is, what changes > between fullscreen and windowed mode, when I manually change non of the settings? > > attached is some of the debug info in case someone can spot anything in it > > Thanks > > Jeremy > > Fullscreen mode > Canvas res 800.0x600.0 clipping at 0.1 > View.VIRTUAL_SCREEN: 0 > View.PHYSICAL_SCREEN: 1 > View.VIRTUAL_EYE: 2 > View.PHYSICAL_EYE: 3 > front clip policy: 3 > centreEyeInImagePlate: (0.11288888888888889, 0.08466666666666667, > 0.27253788659678496) > FOV: 0.7853981633974483 > View.RELATIVE_TO_SCREEN: 0 > View.RELATIVE_TO_WINDOW: 1 > View.RELATIVE_TO_FIELD_OF_VIEW: 2 > View.RELATIVE_TO_COEXISTENCE: 3 > Window eye policy: 2 > imagePlateToVWorld: > 8.858267716535433, 0.0, 0.0, -1.0 > 0.0, 8.858267716535433, 0.0, -0.75 > 0.0, 0.0, 8.858267716535433, -2.4142135623730954 > 0.0, 0.0, 0.0, 1.0 > > --------------------------------------------------- > Windowed mode > Canvas res 792.0x566.0 clipping at 0.1 > View.VIRTUAL_SCREEN: 0 > View.PHYSICAL_SCREEN: 1 > View.VIRTUAL_EYE: 2 > View.PHYSICAL_EYE: 3 > front clip policy: 3 > centreEyeInImagePlate: (0.11288888888888889, 0.2503311111111111, 0.2698125077308171) > FOV: 0.7853981633974483 > View.RELATIVE_TO_SCREEN: 0 > View.RELATIVE_TO_WINDOW: 1 > View.RELATIVE_TO_FIELD_OF_VIEW: 2 > View.RELATIVE_TO_COEXISTENCE: 3 > Window eye policy: 2 > imagePlateToVWorld: 8.94774516821761, 0.0, 0.0, -1.0101010101010102 > 0.0, 8.94774516821761, 0.0, -2.23989898989899 > 0.0, 0.0, 8.94774516821761, -2.4142135623730954 > 0.0, 0.0, 0.0, 1.0 > > -- > ________________________________________________________ > > PGP key is here -> http://www.computerbooth.com/pgp.html > > * If debugging is the process of removing bugs, then programming must be > the process of putting them in. > > =========================================================================== > 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". =========================================================================== 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".
