Simple way to rotate entire skeleton permanently

Started by kkl, April 05, 2015, 10:30:39 AM

Previous topic - Next topic

kkl

hi raft,

Is there any simple way to rotate the entire skeleton of an object permanently like rotateMesh() in jpct? I'm trying to map different coordination system from Blender to JPCT. Thanks.

raft

why do you want to rotate the skeleton? you can rotate the whole group via AnimatedGroup.getRoot().rotateXX(..) methods.

other than that, at the moment a rotation can only be applied to a skeleton and corresponding group during initial loding from Ogre3D or Collada files.

kkl

Quotewhy do you want to rotate the skeleton?
The reason I would need to rotate the skeleton is because of the exporter exports 3D object in different coordinate system. Therefore, there's a need to convert exported coordinate system to JPCT's as been raised in this post http://www.jpct.net/forum2/index.php/topic,2524.msg18503.html#msg18503

I actually tried getRoot().rotateXX() and it worked! I tot it would be the same with Animated3D.rotateXX() in which the pivot point is reset. It seems ok now, but still need to double confirm if all objects behave the same too.

Thanks alot~

raft

all objects will behave as the same, I cant see any reason for the opposite.

if this is a one time rotation, you can consider rotating your mesh and skeleton during initial loading. for example

jmeOgre2Bones -out group.bones -rotation x180 -in mesh.xml

kkl

tat's exactly what I'm looking for! Never notice the script has that options.. It works great now. Thanks alot raft.