Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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  
  Designing a Java3D physics engine.  (Read 1953 times)
0 Members and 1 Guest are viewing this topic.
Offline martymart

Junior Newbie





« Posted 2005-10-06 10:54:20 »

Hi all,

I am just doing some research into making a physics engine for java3D. Unfortunately I have no real idea how to get started! Here are a few of my queries blurted out in random order:
How would a potential physics engine fit into the java3D API? Would I need to write my own animation loop, collision detection system? Where (design) would I build my physics bits e.g. dynamics and kinematic solvers. I would love to seem some sort of high level picture of how all these things would fit together. A lot of physics SDKs talk of being middleware and running on top of a games engine, what is the distribution of tasks bewteen these two? What sort of features could I hope to include and standard and what features should I apire too (i.e. new techniques and ideas that are probably tricky to implement).
Sorry if all these questions seem silly but I have only just started looking into this and I'm just looking for some sort of guidance and direction. Any relevant texts or links would be greatly appreciated(and ideas).

Thanks Martin
Offline martymart

Junior Newbie





« Reply #1 - Posted 2005-10-06 11:14:13 »

I see that some of you people are discussing porting ODE to Java. I would like to create something similar to ODEs features but not to port it directly. Am I right in thinking that ODE does not follow an object orientated design and therefore would be better to redesign from the ground up but utilising the same physics / mathematics algorithms?

P.S. I am a final year uni student who has been given the task of writing a physics engine for gaming use and possibly for simulation use.
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #2 - Posted 2005-10-06 11:22:58 »

Yes that was my point, too, but I think we decided to port the physics stuff one to one, but design it OO (that's why we call it JOODY - Java Object Oriented Dynamics Engine)

As it seems you have some knowledge about all this physics stuff, so it would be nice, if you could take part in the project - then you clould also improve stuff in the port, that you think are bad or where you know something better. We haven't started yet, so ideas about the design are also welcome.

Arne

:: JOODE :: Xith3d :: OdeJava ::
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #3 - Posted 2005-10-06 14:10:59 »

Hi,

Here is the best paper I found for collision detection:
http://www.peroxide.dk/papers/collision/collision.pdf

Bruno

NB: I used it as a base for 3DzzD collision algorithm.

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #4 - Posted 2005-10-06 18:41:36 »

I am just doing some research into making a physics engine for java3D
Don't you want to contribute and create the JOODE physic engine with us, and we'll do a Java3D binding/compatibility layer ? I think it's a lot better, because of doing 2 different physics engines we could do one better, joining our competences..

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #5 - Posted 2005-10-07 03:20:07 »

IMHO the 3D renderer and Physics engine need not have anything to do with each other.

This is the design of Odejava - and you can use it right now with Java3D.

Will.

Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #6 - Posted 2005-10-09 21:17:22 »

Quote
Am I right in thinking that ODE does not follow an object orientated

ODE is object orientated. They just provide a C interface to it so that it can be used without a c++ dependancy.

I wanted to do collision like http://citeseer.csail.mit.edu/cache/papers/cs/1044/ftp:zSzzSzftp.cs.unc.eduzSzpubzSzuserszSzgottschazSzobbt.pdf/gottschalk96obbtree.pdf

ODE is based around this paper http://delivery.acm.org/10.1145/200000/192168/p23-baraff.pdf?key1=192168&key2=9026338211&coll=GUIDE&dl=GUIDE&CFID=54369181&CFTOKEN=36983520

I hope you can access them. It might be that I have access becuase my uni is a subscriber. Let me know.

William is right, you don't want your graphics functionality with your physics engine. To link the graphical functionality to the physics engine you need each graphical representation to be hanging of a transform group. After the physics engine has done a timestep you update all transform groups with the new positional information extracted from the physics engine model. Thats about it really. 


PS if you are implementing a collision system then seperate that as well from the rigid body functionality, and then erm, contribute it to us! Or join the team.

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2005-10-09 22:29:38 »

Shawn Kendall at IMI is writing a Java3D oriented physics system right now.
It differ from the ODE approach in many ways, one key way being you dont need to maintain a seperate physics hirearchy.

if you can get his attention hes probably the best person to answer questions for you.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
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.

Riven (7 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!