Download Xith3d demos using odejava package

I made couple physics demos using Xith3d and odejava.

You can check try them out at:
http://cray.tuug.org/~jani/odejava/

Download the odejava-0.1-full.zip if you want to get the easiest way as it contains jogl, xith3d and other 3rd party libraries and jars that are required for executing the demos. Main directory has three bat files, so click those to execute the demos. Sorry, but odejava currently has only windows binaries compiled, others come later I hope.

On the BoxApp you can change simulations by pressing 1,2 or 3. Keys q,w,e,a,s,d change box sizes (select new simulation after this). Mouse drag with left mouse button adds some spin to boxes and plain left click to bottom or top of the screen gives big force to last object (try it with tower simulation as all boxes are connected to each other, snaky).

On the CarApp you can try to drive around with a,d,w,s keys. b is handbrake (on/off) and keys 1,2,3 change the camera position. Space resets the simulation. Ode’s parameters are bit hairy, fix if you want :slight_smile:

runOdeHelloWorld.bat runs console based test with couple objects falling to a ground, with no rendered attached to it, so this is a bit dull demo.

Hope people get a spark for developing odejava after seeing these hilarious demos :slight_smile:

Cheers, Jani

PS. Use ESC button for exiting from the demos, I didnt bother to catch Xith3d window close event (odejava needs proper cleanup method to be called).

BTW How does one catch Xith3d window close event?


F:\ODE\odejava>java -cp ".;lib\3rdparty\xith3d.jar;lib\vecmath.jar;lib\3rdparty\
jogl\jogl-win32\jogl.jar;lib\3rdparty\xith_utilities.jar;lib\3rdparty\log4j.jar"
 -Djava.library.path="lib\win32;lib\3rdparty\jogl\jogl-win32" net.java.dev.odeja
va.test.xith3d.BoxApp
Exception in thread "main" java.lang.UnsatisfiedLinkError: new_dWorld
        at net.java.dev.odejava.ode.OdeJNI.new_dWorld(Native Method)
        at net.java.dev.odejava.ode.dWorld.<init>(dWorld.java:38)
        at net.java.dev.odejava.test.OdeBoxes.initWorld(OdeBoxes.java:144)
        at net.java.dev.odejava.test.OdeBoxes.<init>(OdeBoxes.java:134)
        at net.java.dev.odejava.test.xith3d.BoxApp.<init>(BoxApp.java:154)
        at net.java.dev.odejava.test.xith3d.BoxApp.main(BoxApp.java:113)

None of the demos run :’(

The package has been now tested succesfully on 5 different Windows machines. Although all the machines had Windows XP or Windows 2000 and JDK (or JRE) 1.4.2_02.

Just to make sure, I tested it again ok with the following software:
Windows 2000 / SP4 / JRE 1.4.2_02
This machine was quite clean w2k install.

I have not tested it on Win95/98/Me, my dll and msvc6 knowledge is very low so there might be very well be a problem with the dll on some systems.

I wonder what the problem is Java Cool Dude, please tell me if you have any ideas? You are not trying to run the demos on non-windows platform? If so, you have to compile javaode.so for your platform. The package has crude but quite simple description on how to do it.

PS. The cardemo needs a bit newer GPU hardware, boxdemo on the other hand is more CPU intensive.

Excellent!

I was able to run demos with no problems. Looking forward to see this project on java.net.

Configuration: WinXP, GeF 440Go. Hopefully I will have time to test this on Linux.

Yuri

Good that it worked, I might be that it requires newest JDK/JRE version (1.4.2) in order to run.

Hope this is enough to start an odejava community.

You’ve written the download links four times in a row. I think one is enough. :slight_smile:

Good stuff! Nothing quite like a “real” physics engine…well except maybe, reality.

looks really good :smiley:
not bad for a non java PE! ;D

DZ

[quote]Hope this is enough to start an odejava community.
[/quote]
More than enough. Really waiting for odejava project on java.net.

Yuri

this looks great ! , this will add some sparks to xith3d

Thank you all for the positive comments.

I added another demo to the package, nothing special but it is using jme (http://mojomonkeycoding.com/) as it’s renderer. Didn’t bother to add it before I got an answer from jme’s author on my rotating problem, now also jme demo works. Feel free to try if you wish.

Odejava package is a bit hairy, but the API itself should be sufficient for making almost any kind of simulations.

PS. dev.java.net sure takes some time…