[java] Java3D vs. GL4Java

Started by
37 comments, last by WoolyLoach 21 years, 7 months ago
I must be an idiot, I downloaded ''terrain.zip'', unzipped it, but I can''t find a classname that will run any kind of demo.. is there something I''m missing (other than a brain lol)?
Wooly Games for Wooly Minds!
Advertisement
um in win32 just double click on the jar

_______________________
http://mill.3dfxsweden.net
_______________________ http://mill.3dfxsweden.net
Windows 2000, Service Pack 3, JDK 1.4.0, Java3D 1.3. Clicking on the JAR file produces the infamous selection list and the wonderful question ''Click the program you want to use to open ''demo.jar''''. Ugh. I wonder if this means there''s something messed up in my installation?
Wooly Games for Wooly Minds!
Yes, looks like your installation''s a bit dicky.
To run it from the commandline you can do

java -cp demo.jar demo.client.Demo

For fun you can try experimenting with a few switches on the commandline to see how it affects performance like

java -server -Xincgc -cp demo.jar demo.client.Demo

etc.

There''s also

java -cp demo.jar demo.client.Demo enablekeys

which enables some extra keys that to fiddle with the number of lights.

Various keys do things but the readme seems to have gone AWOL.



Cas
Assuming the jarfile has the appropriate manifest file, you can also just type ''java -jar demo.jar''. If you want to extract the classfiles (and whatever other files reside within the jarfile), they you can type ''jar -xf demo.jar'' (that will unzip them in the current directory).

So there are a lot of ways you can do this

-pirate_dau
Waaaaaaaa-hoo! Damn that runs fast on my system, I''m getting around 125fps in the "normal" areas and around 72fps in the "watery" spots. Very, very nice. I''m going to fiddle around with the keys a bit and see what happens, but it''s impressive.
Wooly Games for Wooly Minds!
Glad you like it! It''s largely fill-rate limited mind you, as is nearly everything these days.

I seem to recall that H resets your position,
the left and right keys spin around the view,
forward and backward move towards it and back again (but this will crash it if you allow too many polygons - it''s quite tuned for memory consumption),
Q and W increase/decrease the size of the lights,
D and F increase/decrease the number of lights. (Here you can really see the effects of fill-rate limits - every light adds 6 passes to the affected polygons).

The Lightweight Java Game Library has just reached alpha, if you want to help out testing it by the way.

LWJGL is at http://sourceforge.net/projects/java-game-lib

Cas

Cas
ah no, A and S do the light brightness, Q & W do something freaky with the light cutoff point to tune rendering speed vs. a bit of accuracy.


Cas
Hey, I''ll download the lib and see what I can find. I''m sure I''ll crash something in the process...

..wooly..
Wooly Games for Wooly Minds!
I´m really dumb or I missed something, trying to run the Terrain got
C:\Work\3d>java -cp demo.jar demo.client.Demo
GL: Loading native library...
DLL process attach
GL: Loaded native library. Initialising...
GL: initialised.
Creating display: size 640x480x32...
Pixel format is 7
Created display
DLL thread attach
java.lang.NoClassDefFoundError: java/nio/ByteBuffer
at com.powersolve.jglib.Keyboard.(Keyboard.java:9)
at com.powersolve.opengl.GLClient.run(GLClient.java:87)
at demo.client.Demo.main(Demo.java:275)
DLL thread detach
Destroying display...
Destroyed display
Exception in thread "main" java.lang.NoClassDefFoundError: java/nio/Buffer
at com.powersolve.opengl.GLClient.run(GLClient.java:169)
at demo.client.Demo.main(Demo.java:275)
DLL thread detach
DLL thread detach
DLL thread detach
DLL thread detach
DLL process detach

This topic is closed to new replies.

Advertisement