Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Download Xith3d demos using odejava package  (Read 2363 times)
0 Members and 1 Guest are viewing this topic.
Offline Jani Laakso

Junior Member




Do it with Java!


« Posted 2003-12-02 21:43:25 »

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 Smiley

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 :-)



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?
Offline Java Cool Dude

Senior Member




Java forever


« Reply #1 - Posted 2003-12-03 02:54:26 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
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  Cry
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #2 - Posted 2003-12-03 04:30:02 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #3 - Posted 2003-12-03 08:42:46 »

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

Yuri Vl. Gushchin
JProof Group
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #4 - Posted 2003-12-03 09:01:14 »

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.
Offline Jens

Senior Member




Java for games!


« Reply #5 - Posted 2003-12-03 10:27:00 »

Quote

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


You've written the download links four times in a row. I think one is enough.  Smiley

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline shawnkendall

Senior Member





« Reply #6 - Posted 2003-12-03 11:07:44 »

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

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline DjaZia

Senior Newbie




Build once, run everywhere!


« Reply #7 - Posted 2003-12-03 11:32:33 »

looks really good  Cheesy
not bad for a non java PE!  Grin

DZ

DZ Ecrew member
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #8 - Posted 2003-12-03 12:05:59 »

Quote
Hope this is enough to start an odejava community.


More than enough. Really waiting for odejava project on java.net.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Daath

Junior Member




Java games rock!


« Reply #9 - Posted 2003-12-03 14:38:07 »

this looks great ! ,  this will add some sparks to xith3d
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #10 - Posted 2003-12-04 10:34:06 »

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..
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (22 views)
2014-04-15 18:08:23

BurntPizza (17 views)
2014-04-15 03:46:01

UprightPath (31 views)
2014-04-14 17:39:50

UprightPath (15 views)
2014-04-14 17:35:47

Porlus (31 views)
2014-04-14 15:48:38

tom_mai78101 (57 views)
2014-04-10 04:04:31

BurntPizza (114 views)
2014-04-08 23:06:04

tom_mai78101 (214 views)
2014-04-05 13:34:39

trollwarrior1 (182 views)
2014-04-04 12:06:45

CJLetsGame (189 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!