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 (406)
games submitted by our members
Games in WIP (289)
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 CappedCylinder Trouble  (Read 879 times)
0 Members and 1 Guest are viewing this topic.
Offline chabelo90

Junior Newbie





« Posted 2007-08-29 11:10:06 »

hello !

I work actually on a car simulator, i use Java3d and Odejava, and the J3d Ode Binding.
I got some trouble, instead of using GeomSphere for the wheels, i'm using GeomCappedCylinder (GeomSphere is not adapted for the wheels, Cylinder is not implemented in ODEJava).
When my scene is going to start i catch a Non Affine Transformation. It's seems to be a positionning problem...(when i desactivate the setTranslation in the Java3DDisplayObject class it works...)
Can someone help me or tell me what i have to do to change my shpère wheel into real wheel like cylinder or cappedCylinder ??

thanks, best regards...


_Mikael.
Offline irrisor

Junior Member





« Reply #1 - Posted 2007-08-30 10:33:02 »

I never used the j3d odejava binding, probably there are some strange things happening. But another possible cause might be the rotation in your j3d node, make sure that it is normalized and really a rotation (not sure if they use quaternions or matrices, but either way)...

With jME (jME Physics 2) or Xith3d OdeJava works fine - of course with translation Smiley
Offline chabelo90

Junior Newbie





« Reply #2 - Posted 2007-08-31 10:11:54 »

it's not a binding problem... i don't know why my TriMesh Doesn't works instead of a Sphere...
When i test to know what transform doesn't works, it seems to be the translation  Huh Huh
If i attach my trimesh at the sphere (body.addGeom) i only see the mesh, but the collision is not working...
Thanks for your reply,

If someOne have an answer ...

_Mikael.
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 (60 views)
2013-05-18 05:29:12

alaslipknot (69 views)
2013-05-17 05:24:48

gouessej (99 views)
2013-05-16 08:53:38

gouessej (98 views)
2013-05-16 08:17:58

theagentd (107 views)
2013-05-15 23:01:13

theagentd (98 views)
2013-05-15 23:00:54

StreetDoggy (144 views)
2013-05-14 23:56:26

kutucuk (167 views)
2013-05-13 01:10:36

kutucuk (166 views)
2013-05-12 23:36:09

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

2D Dynamic Lighting
by Oskuro
2013-04-18 00:46:12

2D Dynamic Lighting
by Oskuro
2013-04-18 00:45:57

2D Dynamic Lighting
by Oskuro
2013-04-18 00:23:20

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

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

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

Topic Request
by kutucuk
2013-03-23 05: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.161 seconds with 20 queries.