Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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  
  OdeJava tutorials/documentation  (Read 1881 times)
0 Members and 1 Guest are viewing this topic.
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Posted 2004-04-30 13:59:19 »

Where can I find odejava documentation or tutorial ? I want to use OdeJava in my lwjgl game but I don't know where to start, and how to use OdeJava with OpenGL... I've been looking at Xith3D samples or the big Ode official documentation (which explains how Ode works) but it doesn't tell me how to use it with OpenGL...

Can someone help me ?

Thanks
Chman
Offline kents1

Senior Newbie




Java games rock!


« Reply #1 - Posted 2004-04-30 14:19:25 »

OdeJava is still a bit light on the ground for tutorials or documentation at the moment, it's still a very young API.
As to working with LWJGL or OpenGL, it's just another call in your render loop.

- Setup OdeJava to model objects
- Start render loop
- Call ode world update (see examples step() function)
- Render changes to models via OpenGL by getting the changes to the models from OdeJava (i.e postion, rotation, etc)

The hardest bit is finding what all the physics parameter values do and how this effects your models.  Most of the time, the objects do nothing or fly off into oblivion before you get to have a look.  It's a bit 'suck it and see' at the moment.
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #2 - Posted 2004-04-30 14:22:16 »

Ok, thanks for your help Wink

Quote

It's a bit 'suck it and see' at the moment.


That makes things more complicated for setting up a whole scene...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kents1

Senior Newbie




Java games rock!


« Reply #3 - Posted 2004-04-30 14:30:47 »

yeah, you can get the basics from looking at the example stuff, so you should be able to set up your scene... but, doing your own stuff- I mean gravity is OK, but what about mass?,friction?,torque? and stuff.  The values you give really seem to effect the physics.  I'm finding it hard enough to stop my objects boucing around the floor like they are on a bad acid.  :-/
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2004-04-30 22:07:56 »

I have started some documentation - but only the beginner stuff at the moment - email me directly if you would like to see what I have done so far.

What I would do first in your position is get the current examples working with LWJGL (i.e. port the org.odejava.xith3d.test package and to a lesser extent the org.odejava.xith3d package).

read the javadocs and my forum post on how to do this.  Hint - checkout the org.odejava.display package.

You basically have to create a plugin so that Odejava can talk to your display objects.  Optionally, you can set it up to view a default view of the odejava geoms (for example rendering a box as a box...) I recommend this as it's great for visualisation and debugging.

Read this: http://www.odejava.org/javadoc/org/odejava/display/package-summary.html

Some "binding" related forum topics:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=physics;action=display;num=1080816410
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=physics;action=display;num=1078922931


Odejava is ODE really - you need to learn how ODE works and there is some great documentation on that thanks to Russ.  Then you need to learn how Odejava uses ODE (if indeed you want to use the high level api and not just hte low level api).  It's fairly intuitive and we are trying to make it as close as object orientationaly possible.

Subscribe to the ODE mailing list too.

http://opende.sourceforge.net/

If there's something you can do in ODE but not Odejava (old since fixed example: Mult-Geoms in a group) - hassle us or code it yourself Smiley

I am considering setting up Odejava.org the same as xith.org.  Would anyone be interested in helping contribute content such as tutorials and examples to the site?



Cheers,

Will.

Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #5 - Posted 2004-05-01 09:26:48 »

Many thanks for your help ! Very usefull !!!

About the tutorials, I think I will make some on "how to use it with lwjgl" when I will be able to write correct OdeJava code Wink
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.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (21 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (51 views)
2014-12-03 16:27:13

CopyableCougar4 (49 views)
2014-11-29 21:32:03

toopeicgaming1999 (115 views)
2014-11-26 15:22:04

toopeicgaming1999 (105 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!