Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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 1758 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!
Try the Free Demo of Titan Attacks
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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (105 views)
2013-05-17 21:29:12

alaslipknot (114 views)
2013-05-16 21:24:48

gouessej (142 views)
2013-05-16 00:53:38

gouessej (138 views)
2013-05-16 00:17:58

theagentd (150 views)
2013-05-15 15:01:13

theagentd (135 views)
2013-05-15 15:00:54

StreetDoggy (178 views)
2013-05-14 15:56:26

kutucuk (201 views)
2013-05-12 17:10:36

kutucuk (202 views)
2013-05-12 15:36:09

UnluckyDevil (208 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.114 seconds with 21 queries.