Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Xith3D physics  (Read 2486 times)
0 Members and 1 Guest are viewing this topic.
Offline DavidYazel

Junior Duke




Java games rock!


« Posted 2003-08-18 16:02:34 »

I am considering adding physics capability to Xith3d.  Like shadowing, you would pick sub-roots of your scenegraph to inidcate the root of an "object", even if the object is really made up of lots of shapes.  You could supply collision geometry or it will calculate a convex hull for the geometry below it.  You would also assign a mass to the object so that momentum, friction and inertia can be properly calculated.

You would be able to attach Motions to the objects, which are similar to the movement behavior interpolators of Java3d, execpt that these motions will honor mass, volume, velocity and collisions.

I really don't want to write a super sophisticated physics engine, but I would like to expose the framework so that people can build on the engine to make it more sophisticated, or even hook in a third-party engine.

Any suggestion on how to begin?  Any java physics libraries out there?  Any thoughts on this idea?

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #1 - Posted 2003-08-18 17:12:05 »

That is a VERY good idea.

I don't know enough about physics myself to contribute, but integrating physics straight into the scenegraph (and, in a way, making it all more of an "engine") would kick ass.

Play Minecraft!
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2003-08-18 22:22:05 »

I would avoid tightly integrating the physics into the rendering engine.  
As you say people may want to hook in more advanced engines etc...  I would add generalized hooks to Xith3D and then build your physics engine using these hooks as a separate layer.

There are just so many things that someone might want to add to a physics/game engine it is of course impossible to think of everything ahead of time.  Even thinking of all the needed hooks could be hard.  Eg. what about friction, temperature, prevailing winds, ocean currents, gravity forces or radiation levels... all of which could effect movement of game objects or more abstract things related to the game engine like the effectiveness of tractor beams or energy shields..

These would be beyond the scope of a general engine, but they might be needed for specific games and then you would need to plug them in to Xith3D somehow, as long as they can all is cool, but if these attributes have to be accessed via a different mechanism than mass and velocity it could complicate the design.

Maybe much of this ability is already in Xith3D? I don't know.  For instance I remember someone (you?) talking about the political alignment of regions in the game world and other such attributes.. where/how would they be stored?  If they are stored with hooks into the world geometry could arbitrary physics quantities be stored in the same way?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline AndersDahlberg

Junior Duke





« Reply #3 - Posted 2003-08-19 08:37:42 »

Maybe some kind of visitor pattern would be a good design for something like this?

Then it just comes down to what should be exposed though Grin
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.

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (35 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (67 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
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

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