Problems with Xith3D

Hello

When I close the test apps of Xith3D (like CubeTest), even if the app runs smoothly, sometimes the output is:

Available 12: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccel
erated: true, DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 8
, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ] MS: false 2
Score: 400
Available 13: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccel
erated: true, DepthBits: 0, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0,
Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ] MS: false 2 S
core: 636
Available 14: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccel
erated: true, DepthBits: 0, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 8,
Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ] MS: false 2 S
core: 924
Available 15: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAcce
lerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha:
0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2
Score: 1144
Available 16: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAcce
lerated: false, DepthBits: 16, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha:
0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2
Score: 1048
Available 17: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccel
erated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha:
0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2
Score: 144
Available 18: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccel
erated: false, DepthBits: 16, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha:
0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2
Score: 48
Chosen index: 5
Chosen capabilities:
GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true,
DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 1
6, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ] MS: false 2
No Vertex Program support, skipping
No Fragment Program support, skipping
Exception in thread “main” net.java.games.jogl.GLException: Error swapping buffe
rs
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers
(WindowsOnscreenGLContext.java:140)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:292)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1159
)
at com.xith3d.scenegraph.View.renderOnce(View.java:803)
at com.xith3d.scenegraph.View.renderOnce(View.java:736)
at com.xith3d.test.CubeTest.(CubeTest.java:181)
at com.xith3d.test.CubeTest.main(CubeTest.java:201)

C:\xith3d\xith3d\demo>

Some other times Windows gives an error like:

(i’ve tried to translate from allert window of Win98SE Italian)

JAVA caused a not valid page error in
NVOPENGL.DLL module in 0167:6960aa17.
Registry:
EAX=00000000 CS=0167 EIP=6960aa17 EFLGS=00010282
EBX=00000000 SS=016f ESP=00d1fae4 EBP=ffffffff
ECX=d211d010 DS=016f ESI=004785ac FS=47af
EDX=00000008 ES=016f EDI=004785ac GS=0000
Byte at address CS:EIP:
8b 03 85 c0 74 1c 8d 49 00 8b 08 39 b9 a0 42 00
Stack image:
025d995c 004785ac 000006db 695fe76b 004785ac 004d8718 6964f928 004785ac 004d8718 6964fa59 0280fa70 004d8718 0000000d 69664b35 004d8718 000006da

while the prompt window output reamin the same of the previous example but without the last part: “Exception in thread “main” […]”.

I use, and I need to use, a Pentium III 600, with 192 MB RAM, NVIDIA RIVA TNT2 M64 with 16 MB Video RAM, AGP 4X, running Windows 98 SE (Italian), with tha last NVIDIA Drivers for video card, and Java 1.4.2_04 (for I’ve tested v. 1.4.2_5 but gave to much problems).

Does anyone know why I have this problem and How to resolve it?

Thanks to everyone will answer this question.

bye, bye

Ender

It’s always good to have a clear summary of your problem in the subject of the thread so people can help you faster.

The second error looks like a video card driver problem - are your drivers up to date? As for the first error - that looks like a JOGL issue - see if it is still happens when you update your drivers.

Will.

I frequently see this as well, with the latest nVidia drivers. I believe it’s due to the JVM shutting down in the middle of a draw cycle. I’m working on a small Xith project where I coded my exit key to flag the main loop to not draw again (instead of System.exit()) and this does not happen.

First of all, thaks all.

I have already installed the last NVidia drivers.

The Virtual Machine does not shutdown! Simply, it gives that errors, when I close the Java Application.

Anyway I have also another problem. Some Game I’ve download from the internet, like Wurm on Line, based on JOGL run very slow (2-6 fps). It seams to me very strange!
There are games more and more complex written in C++ that run smoothly on the PC I’ve used. I thought that JOGL, based on native libraries, should run faster.

I will ask this also in the JOGL forum. But I’ve asked it here before, becouse I think to use Xith3D as base 3D API for a game I have to develop.

Anyway, do you think it could be usefull to downgrade NVIDIA drivers rather than upgrade?

Thanks.

Bye, bye

Ender

Definitally ask in the JOGL forum. You may also consider the LWJGL port of Xith3D if you decide not to use JOGL.

Will.

I’ve found a way? Maybe?

Today morning, I am working on this trouble. With a simple util in Java I’ve found that this is my Java Native Library Path:

Native Library path(s): C:\PROGRAMMI\JAVA\J2RE1.4.2_04\BIN;
.;C:\WINDOWS\SYSTEM;C:WINDOWS;
C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAMMI\JAVA\J2RE1.4.2_04\BIN;C:\J2SDK1.4.2_04\JRE\BIN;C:\J2SDK1.4.2_04\BIN;C:\PROGRA~1\FILECO~1\GTK\2.0\BIN;

I’m telling that for a simple reason. I’ve tryed again to launch jacke2, a game based on JOGL and JOAL. It runs perfectly, even if, developer page says that I should have at least a GeForce2 to run smoothly and Win XP. jake2 comes with the JOGL/JOAL libraries installed in its home dir.
Also Wurm on Line comes with a similar dir configuration, but it is based on Java Web Start, and I don’t know how to manage Path Environment with it.

My next question would be: there is any possibility that the JOGL APIs, installed by my self on the system, doesn’t work well and Wurm calls them instead of thouse installed in its home dir?

Your answers have been really usefull to me!

I surely will try Xith3D with LWJGL. I’m curious to see the differences.

Anyway thanks!

Even if I’ve had those propblems, I think that Xith3D is a really great product.

Bye, bye.