Hi Alex,

  You can try to force Java3D using 32 bit Z buffer instead
of the default 16 bit.


GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
template.setDepthSize(32);
GraphicsConfiguration config =
                GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().getBestConfiguration(template);

if (config == null) {   // fail back to default 16 bit Z buffer
   template.setDepthSize(16);
   config = GraphicsEnvironment.getLocalGraphicsEnvironment().
             getDefaultScreenDevice().getBestConfiguration(template);

   if (config == null) {
       System.out.println("Fail to find a compatible GraphicsConfiguration");
       return;
   }
}

Canvas3D canvas = new Canvas3D(config);


- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.

>Date: Tue, 11 Jun 2002 14:46:17 +0100
>From: Alex Bowden <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Z buffer depth problems with NVidia GForce Go
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Content-transfer-encoding: 7bit
>Importance: Normal
>X-Priority: 3 (Normal)
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>
>I have used Java3D on various NVidia cards (TNT, GForce, Quadro) with no
>problems.
>
>I have recently been using it on a Dell 4100 with a 32 MByte GForce 2 Go.
>
>It works fast enough but I get graphical artifacts that clearly indicate
>that it is operating with a restricted depth Z buffer despite the fact that
>the NVidia literature claims that the chip has a 32 bit Z buffer same as the
>other chips.
>
>the problem occurs at all resolutions, colour depths etc and there are no
>options ticked in the driver that would apparently force a shallow Z buffer.
>
>Has anyone else had this problem and resolved it - or not had the problem?
>
>Also any thoughts on drivers (for GForce GO, NVidia web site directs you to
>their standard drivers but in the small print on the FAQ page it says to get
>drivers from the computer supplier for GO chips.  I am using the latest
>drivers from Dell but the earlier ones were no better!).
>
>I am using the OpenGL version of Java 3D.
>
>        Thanks in anticipation
>
>                Alex Bowden
>
>===========================================================================
>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".

Reply via email to