Java 3D game problem

I have a problem with a Java 3D game I wrote. The game supports both fullscreen and windowed modes. The thing is, it runs perfectly on my machine in both modes, but on other computers it:

  1. Crashes as soon as it starts if it is in fullscreen
  2. Runs really slow in windowed mode.

It seems to do both of these and not one or the other. I really hope someone knows how to fix this…

Jonathan

Do you have any more detailed info? Like:

  1. What version of Java on both machines?
  2. What OS on both machines?
  3. What version of Java3D on both machines?
  4. What version of OpenGL/DirectX on both machines?

We really can’t help much without more detailed info.

Also, do you have any stack traces or other output from the crash? What is the frame rate on your machine vs. the other machine?

I should have known to include this.

  • I have j2sdk-1_4_0_02 and java3d-1_3_1-windows-i586-opengl-sdk I know one of my friends used both of these because I gave them to him. Another person used a more up to date version of Java with the same results.

  • I have Win2k and as far as I know everyone else who tried the program had Win2k as well.

I don’t know how to find out what version of OpenGL I have but I have DirectX 9.0b. I doubt anyone who used the program would have less than 9.

I don’t have stack traces or output. The game runs at 15Hz on my machine. The people who ran the program thought it looked like it was running at about 5Hz.

Jonathan

Since you are using Java3D with OpenGL bindings, you should make sure that the other machine also has OpenGL installed. I don’t think Windows 2K has OpenGL installed by default.

Otherwise it could be defaulting to software-rendering on the other machine, which might cause a crash, and would definitely slow down the rendering.

The other alternative is to download and install Java3D with DirectX bindings on both your machine and the other machine.

So if I download the DirectX version of Java3D and recompile the program it should run fine on any computer (since everyone has DirectX)

Jonathan

if u just want it to run on windows