Florin is right.
But I still confuse :
* What is the real meaning of that
info given by pixfmt ? Seens the asked depth buffer in DirectX, but
strange values in OpenGL...
* Does Java3D DirectX always uses as "default"
depthbuffer D3DFMT_D24S8,
i.e, 24 bits of depthBuffer plus 8 as stencil ?
*
Does Java3D OpenGL uses 16bit depthbuffer as
default ?
All
this is to create a method to workaround those video cards which fails with
"default" GraphicsConfiguration values, and check what kind of values of
depthbuffer is possible to set from a
Java3D application.
Thanks
Alessandro.
----- Original Message -----
From: "Florin Herinean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 12:47 PM
Subject: [JAVA3D] AW: [JAVA3D] Testing Canvas3D
with differents depthBuffers
I get. The graphic configuration for 32 bit z-buffer was null, so the first
cube was created with the null gc -> "default" best configuration, which in
my case, and probably your too, is 24 bit z-buffer.
The error panel is created in the catch clause of the init method, because a
NullPointerException is thrown when Alessandro wants to get the display
device from the (null) graphic configuration.
Cheers,
Florin
-----Urspr�ngliche Nachricht-----
Von: John Wright [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Juni 2003 17:17
An: [EMAIL PROTECTED]
Betreff: Re: [JAVA3D] Testing Canvas3D with differents depthBuffers
Alessandro,
Your new code looks the same on the graphics display - the top row is a
spinning cube labeled "Buffer:32" then no cube and "depthBuffer 32
Failed!" then another spinning cube labeled "Buffer:24".
The console dump (sorry not testing on same machine as e-mail so tough
to cut and paste) has:
Failed at 32
followed by a null pointer exception then:
Depth Buffer size 24
the rest looks "normal"
- John Wright
Starfire Research
