Title: RE: [JAVA3D] WHAT OpenGL RENDERER IS JAVA3D USING?

Raul,

Like most OpenGL apps, Java 3D looks for a suitable "pixel format" for initializing the window containing the 3D canvas.  Some pixel formats support hardware-accelerated 3D (provided by the graphics card vendor) and others can only use the OpenGL software renderer (provided by Microsoft).  When a software-only pixel format is selected, performance will be very poor, particularly for large windows.

You can try changing display settings on your machine to maximize the number of pixel formats which support hardware acceleration, which will give Java 3D a better chance of finding one.  Try setting your display resolution to 800x600 at 16-bit color, and see if that helps.  There may be other settings that help as well.  If that works, try gradually increasing resolution / color depth from there.

Here's why that might help: Lowering the display resolution may allow the graphics card to have enough memory to support a z-buffer.  Using a high-resolution display limits memory available for a z-buffer, and may prevent hardware-acceleration. (Note that cards with more memory can drive the display at a higher resolution, and still support hardware acceleration.)

Of course, it also helps to have the latest driver for your graphics card, which in your case is the Detonator 28.32 driver from NVIDIA.

I hope that info helps.

- Mauricio

-----Original Message-----
From: Raul Rios [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 5:22 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] WHAT OpenGL RENDERER IS JAVA3D USING?


I would like to know how Java3D links to OpenGL.

I know I have at least 2 Open GL renderers installed in my system:

-Microsoft Generic OpenGL 1.1 (default with Windows 2000)
-NVIDIA Renderer OpenGL 1.3.1 (NVidia Detonator XP drivers)

When I run a game or a 3D benchmark (like 3DVillageMark)
the second renderer is used, but when I run my Java3D
applications, I'm sure the first renderer is being used
because the performance is much more poor.

How can I know which OpenGL renderer my Java3D program is using?
I've tried it with:

  myCanvas3D.queryProperties().get("native.version");

but this returns null.

Is there any way to select the OpenGL renderer from my program?


My system enviroment is:

J2SDK 1.3.1
Java3D 1.2.1_03
Windows 2000 Professional
Intel Pentium 4 1.6 Ghz
nVidia VANTA 16 Mb


Thanks in advance.

===========================================================================
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