Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
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 and xith objects  (Read 1255 times)
0 Members and 1 Guest are viewing this topic.
Offline arne

Senior Devvie

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

« Posted 2005-07-12 12:16:27 »


I want to have an easy way of creating xith3d and odejava objects that fit together and maybe with the odejava objects being a bit simplified. For now I've created an exporter for 3dsmax which exports a xith3d representation and another one which creates the odejava rep. To link both representations, so the xith model does what the odejava does, I used a simple hand edited file. This worked pretty fine, becuase I could create the Odejava bounds above the xith3d model. But it has some serious disadvantages:
1. I can't use it in linux (I've switched to linux - so this is pretty serious)
2. It's 3dsmax dependent.
3. I'm using a homebrewed bugging fileformat.

How do you guys do this?


PS: I'm want to use blender3d now and any ideas of how to port maxscript to blender would also be nice. (I dont know any phyton)

:: JOODE :: Xith3d :: OdeJava ::
Offline Amos Wenger

Senior Devvie

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

« Reply #1 - Posted 2005-07-13 09:16:34 »

Gamma has a simple solution for that.
Imagine you load a static model, for example a rock, and you want to have a corresponding tri-mesh, you just do that :
// Load the model
Graphic3D rock = Model3DLoader.load("data/ARockModel.obj");
// Create a tri mesh
TriMeshGeom tmg = new TriMeshGeom(universe);
// Synchronize the model with its physic representation
// Adjust the shape of the tri mesh to fit the model

This provide a high level of abstraction : you don't mind if it's a OBJ, MD2, MD3, 3DS, Cal3D model.
If you have a moving animated object ( for example, a character ) that you want to represent physically with a box, you'll do that :
// Load the character
Graphic3D character = Model3DLoader.load(universe, "data/MyCharacter.md2");
// Create a box geom
BoxGeom bg = new BoxGeom(universe);
// Synchronize the model with its physic representation
// Link dynamically ( update each step ) the shape of the box geom to fit the model
// Create a physical behavior ( equivalent of an ODEJava body )
PhysicalBehavior pB = new PhysicalBehavior(universe, bg);

( However, I don't know if you had another project outside Gamma... )

"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 arne

Senior Devvie

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

« Reply #2 - Posted 2005-07-13 09:57:51 »

No it's actually for my other project Wink
Is your solution ok when you want to link inner stuff? e.g. TransformGroups or Frames?

Mmh... maybe the way I'm doing this is ok and I'll simply add some loaders for other fileformats - so it's exactly like in gamma Grin

:: JOODE :: Xith3d :: OdeJava ::
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Jesse (12 views)
2015-07-29 04:35:27

Riven (35 views)
2015-07-27 16:38:00

Riven (18 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (11 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (41 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (27 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!