Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (108)
games submitted by our members
Games in WIP (536)
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  
  [Ode] Geoms in Body  (Read 2090 times)
0 Members and 1 Guest are viewing this topic.
Offline arne

Senior Member




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


« Posted 2005-03-17 16:53:34 »

Hi

I'm new to Odejava, so there's much stuff I don't understand. I want to have some Geoms linked fixed to each other. I tried to put them in the same body, but then the original position of the geoms is set to the position of the body.
I'm not sure, if for fixing this problem I should put all geoms in different bodies and then add JointFixed to them, because in the api it says this is for debugging only.

Have I done anything wrong, or is this the only solution?

:: JOODE :: Xith3d :: OdeJava ::
Offline ewills

Junior Member




Java skeletal animation systems rock!


« Reply #1 - Posted 2005-03-17 19:28:07 »

You can add multiple GeomS to a Body, just wrap them in GeomTransformS first so they can be offset from the attachment point of the Body.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2005-03-17 21:22:37 »

for an example, see: org.odejava.test.simple.MultiGeomTest

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

Senior Member




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


« Reply #3 - Posted 2005-03-18 09:55:37 »

Thanks a lot !!!  Smiley

:: JOODE :: Xith3d :: OdeJava ::
Offline arne

Senior Member




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


« Reply #4 - Posted 2005-03-18 15:06:28 »

Hmmm ...
this far it's working, but when I let it fall (using the gravity), the body changes it's position, but in the xith view nothing changes.

Is it supposed to be like this??

:: JOODE :: Xith3d :: OdeJava ::
Offline ewills

Junior Member




Java skeletal animation systems rock!


« Reply #5 - Posted 2005-03-18 17:09:54 »

Are you using the odejava.display package to bind xith and odejava?
Offline arne

Senior Member




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


« Reply #6 - Posted 2005-03-18 17:41:57 »

I'm using odejava.xith.test.RunDemo

I think it uses odejava.display

:: JOODE :: Xith3d :: OdeJava ::
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #7 - Posted 2005-03-19 05:18:42 »

it sounds like it isn't bound properly to the display view, or the display view isn't being updated or rendered.

Will.

Offline arne

Senior Member




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


« Reply #8 - Posted 2005-03-19 06:20:00 »

Ok, ... I've fixed it now Cool. My problem was this: I have shown the Geoms themselves and not the TransformGeoms they belong to, so they weren't transformed.

:: JOODE :: Xith3d :: OdeJava ::
Offline arne

Senior Member




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


« Reply #9 - Posted 2005-03-19 07:51:17 »

So it's falling now. I had to adjust the position now relative to the position of the bodies for the Geoms to be at the old place. Because I haven't rotated the bodies I think I don't need to rotate the geoms. But this is the point that's confusing me: Some Geoms have the same rotation as before (when showing the Geoms without GeomTransformS) , but some also are rotated twice or haven't been rotated (I can't say exactly)

It's driving me nuts !!

:: JOODE :: Xith3d :: OdeJava ::
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.

CogWheelz (16 views)
2014-07-30 21:08:39

Riven (22 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

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

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

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

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

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

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

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

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
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!