Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
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 2310 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 ?

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


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:

Some "binding" related forum topics:;action=display;num=1080816410;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.

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 the same as  Would anyone be interested in helping contribute content such as tutorials and examples to the site?



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.

roseslayer (419 views)
2016-08-06 11:43:29

roseslayer (380 views)
2016-08-06 09:43:11

xTheGamerCodes (456 views)
2016-08-04 15:40:59

xTheGamerCodes (450 views)
2016-08-04 15:40:24

orrenravid (800 views)
2016-07-16 03:57:23

theagentd (875 views)
2016-07-11 14:28:54

Hydroque (971 views)
2016-07-06 05:56:57

Hydroque (992 views)
2016-07-03 08:52:54

GrandCastle (804 views)
2016-07-01 09:13:47

GrandCastle (637 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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‑
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!