Hi, it's clear a problem with the front clip distance. Not sure if it's related to Z Buffering. I tryied with both 16 and 32 bit buffers and it behaves exactly the same, no difference.
However, the ball displays correctly if the front clip dist. is 1e-3 but it is drawn after the cylinder if the FCD is 1e-4! I'm not sure if it is a bug in Java3D or a limitation of opengl. Cheers, Florin -----Urspr�ngliche Nachricht----- Von: Jason Taylor [mailto:Jason.Taylor@;WARWICK.AC.UK] Gesendet: Dienstag, 29. Oktober 2002 13:37 An: [EMAIL PROTECTED] Betreff: Re: [JAVA3D] Again on "Geometry looks transparent" Hmmm... looks like a Z-Buffering problem, if I zoom out a lot and then rotate I can see odd effects but at the default zoom it looks fine. From what Alessandro says about the commenting the clip set out it appears you are setting the front/back clip ranges too far away for your cards Z-Buffer. su.getViewer().getView().setFrontClipPolicy(View.VIRTUAL_EYE); su.getViewer().getView().setBackClipPolicy(View.VIRTUAL_EYE); su.getViewer().getView().setBackClipDistance(400); su.getViewer().getView().setFrontClipDistance(400.0/600.0); This is what I do in my little project, the front clip should always be within a certain ratio to the back clip, ie backclip = x frontclip = x/600.0 I'm not sure where the 600 comes from but I remember it being used as a good example (I think it's in relation to using the default 16bit Z Buffer). Alternatively you should be able to get better range if your card supports a 24/32bit Z Buffer, check the driver settings. Have fun, Jason. =========================================================================== 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".
