Author Topic: Bones - Skeletal and Pose animations for jPCT  (Read 90207 times)

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #165 on: April 11, 2011, 08:04:16 am »
this happens because there is no animation in your skeleton file. tell your artist export at least one animation.

Hi raft,
I got the .xml files with a simple animation.  Now I could see that the group is also loaded from the log message below.

Skeleton created out of jME OGRE skeleton, 69 joints
Created skeleton animation clip: leg_test
Loaded ogre file: body_new/body.mesh.xml, scale: 1, rotation: null
   1 sub objects, 1 skin animation(s), 0 pose animation(s)


But after that I get this strange exception.

Exception in thread "main" java.io.FileNotFoundException: /Eng-Repo/Reference/Graphics/Skeletal-Animation/Bones/scripts/-out (No such file or directory)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at java.io.FileInputStream.<init>(FileInputStream.java:66)
   at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
   at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
   at java.net.URL.openStream(URL.java:1010)
   at com.jmex.model.ogrexml.OgreLoader.loadModel(OgreLoader.java:225)
   at com.jmex.model.ogrexml.OgreLoader.loadModel(OgreLoader.java:177)
   at raft.jpct.bones.util.JMEOgreImporter.loadGroup(JMEOgreImporter.java:91)
   at raft.jpct.bones.util.JMEOgreImporter.loadGroup(JMEOgreImporter.java:81)
   at raft.jpct.bones.util.JMEOgreImporter.run(JMEOgreImporter.java:58)
   at raft.jpct.bones.util.JMEOgreImporter.main(JMEOgreImporter.java:147)

I sense that things can't get more basic than this.   :-[.  But I am clueless as to what's going wrong.  I used the following command in the command prompt.
bash jmeOgre2Bones.sh -in body_new/body.mesh.xml -out fm.group.bones


Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #166 on: April 11, 2011, 11:17:12 am »
the -in parameter should be last. this because there may be more than one in file.

Code: [Select]
jmeOgre2Bones.sh -out fm.group.bones -in body_new/body.mesh.xml

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #167 on: April 11, 2011, 04:48:38 pm »
Thanks, raft.  That worked. :)

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #168 on: April 12, 2011, 05:34:29 pm »
Hi raft,

Finally, I was able to load the model given by my artist.  Thanks a lot for your guidance and support in my first baby step :).
Even my model loaded upside down; but I could use the -rotation parameter to get it loaded properly.

However, I am facing the same problem as pages, i.e. the model is not appearing in the center of the screen, but moved to the left edge of the screen.  I am using the same code that is used in the Ninja demo.  I just changed the resource names for the model and the texture.  Based on your advice to pages, I scanned through the code to see the assignment of a camera angle that is greater than 0.  I couldn't see any such code in NinjaDemoActivity.  But I found that the default value of the camera angle was "PI" as initialized in the cameraorbitor class.  I even changed that to 0.  But I couldn't succeed in getting my model to the center.

Am I missing something here?  I'll anyway continue to analyze this by putting more log messages into the app.

Thanks a lot...

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #169 on: April 12, 2011, 06:46:18 pm »
you are welcome. i'm glad if it helped ;D

Ninja demo does not place ninja's to origin. if you use the same code, that is probably your problem. have a look at addNinja() method. it translates the ninja to some distance from origin.

Code: [Select]
ninja.getRoot().translate(..);

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #170 on: April 12, 2011, 08:58:50 pm »
Yeah, I was analyzing camera angle and camera position and was planning to analyze the translation part there after. 
Thanks for pointing out the code, I just commented that statement and model appears in the center.  Great  ;D

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #171 on: April 14, 2011, 07:34:19 am »
hi raft,

I am back again  :).  The model that I succeeded in loading is a human model.  When the model is loaded with default human-skin-texture, it was all fine.  But when I tried to use separate textures for shirt and pants, whichever texture that I apply last, covers the complete the model. 
Simple solution could be to go back to our artist and ask for the single texture file that includes all: skin, shirt and pants.  But my app requires that the end user should be able to change dresses (shirt, pant etc) on the fly.  So I think having separate texture files is the way to go.  But I am struck with the above problem.

Can you please throw some light or point me to some docs on the texture mapping techniques to be used in JPCT/Bones?

Thanks,
Babu

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #172 on: April 14, 2011, 12:27:05 pm »
Bones cannot handle multiple textures per model. you can of course use PolygonManager to assign different textures to different parts but you need polygon id's. i would forget about this

have a look at karga thread. i did clothing thing by creating textures on the fly. pick a panths texture and draw it on top of skin texture, pick a tshirt texture and draw it on top of skin texture too, draw other parts (neckless, glove etc) on top of these and finally apply the resulting texture to the model.

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #173 on: April 14, 2011, 01:59:56 pm »
thanks, raft.  :)

I'll will start exploring the karga and the PolygonManager...

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #174 on: April 15, 2011, 12:51:41 pm »
hi raft,
I went through the mesh.xml files to check for the polygons.  I think that the polygons are listed under <faces>.  Am I right?
If so, getting the right polygon id will be a big guess work   ???.

Then went through the karga thread and even registered myself in aptalkarga.com  :).  It is great  8)  Unfortunately, when I logged in there wasn't anyone except the beauty-bot Alice and I couldn't even kiss her due to lack of money  ;D.  I will log-in again after some time, anyway.  Great work! Keep it up!!

I am thinking about your suggestion of the creating the textures on the fly.  I couldn't figure out how to do it, at least till now  :-[.  I couldn't find any sample code in the karga thread as well.  :(  Any hints??

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #175 on: April 15, 2011, 01:05:30 pm »
right, you need to wild guess polygon id's. that's why i said i would forget about it ;)

there is no sample code about this kind of texture generation. it's something like this: you have skin texture of body, panth texture, tshirt texture. you draw these on top of each other and get the final texture. then apply it to your model.

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #176 on: April 15, 2011, 05:33:37 pm »
hi raft,
I've some new questions... ???
1) Is it possible to have multiple meshes for the same skeleton?  Something like, separate meshes for head, upper-body and lower-body built around the same skeleton?  If so, then I guess that all these meshes to be passed as -in parameters to the ogre2Bones converter script?

2) If the above one is feasible, then is it possible to link each of these meshes to different textures??

3) If the meshes to be changed on the fly, (i.e. from thin-upper-body to fat-upper-body) then I think I have to rebuild the entire ".bones" group programmatically. Is my understanding correct?  If so, then I think it will be performance issue.  Is there a performance friendly way to get over with that?

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #177 on: April 15, 2011, 05:51:18 pm »
1. yes possible. for example ninja model consists of two meshes. no need to import them from seperate files. your exporter should export them to same file.

2. yes of course, they are seperate objects

3. no. just build them once while initializing them make proper parts visible/invisible

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #178 on: April 15, 2011, 08:38:31 pm »
I tried number 1.  Everything seemed to go fine, but at the end, I got this exception...  ???
Code: [Select]
bash jmeOgre2Bones.sh -out fm.group.bones -rotation x180,y180 -in body_new/body.mesh.xml body_new/top.mesh.xml body_new/shorts.mesh.xml
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:07 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
-- total 69 joint(s) --
0 name: joint6, parent:
1 name: joint7, parent: 0:joint6
2 name: joint8, parent: 1:joint7
3 name: left_hip_joint, parent: 1:joint7
4 name: right_hip_joint, parent: 1:joint7
5 name: joint9, parent: 2:joint8
6 name: left_knee_joint, parent: 3:left_hip_joint
7 name: right_knee_joint, parent: 4:right_hip_joint
8 name: joint10, parent: 5:joint9
9 name: left_ankle_joint, parent: 6:left_knee_joint
10 name: right_ankle_joint, parent: 7:right_knee_joint
11 name: joint11, parent: 8:joint10
12 name: left_ball_joint, parent: 9:left_ankle_joint
13 name: right_ball_joint, parent: 10:right_ankle_joint
14 name: joint12, parent: 11:joint11
15 name: left_clavicle_joint, parent: 11:joint11
16 name: right_clavicle_joint, parent: 11:joint11
17 name: left_toe_joint, parent: 12:left_ball_joint
18 name: right_toe_joint, parent: 13:right_ball_joint
19 name: joint13, parent: 14:joint12
20 name: left_shoulder_joint, parent: 15:left_clavicle_joint
21 name: right_shoulder_joint, parent: 16:right_clavicle_joint
22 name: joint14, parent: 19:joint13
23 name: left_elbow_joint, parent: 20:left_shoulder_joint
24 name: right_elbow_joint, parent: 21:right_shoulder_joint
25 name: joint15, parent: 22:joint14
26 name: left_wrist_joint, parent: 23:left_elbow_joint
27 name: right_wrist_joint, parent: 24:right_elbow_joint
28 name: joint16, parent: 25:joint15
29 name: left_thumb_joint, parent: 26:left_wrist_joint
30 name: left_wrist1_joint, parent: 26:left_wrist_joint
31 name: right_thumb_joint, parent: 27:right_wrist_joint
32 name: right_wrist1_joint, parent: 27:right_wrist_joint
33 name: left_thumb1_joint, parent: 29:left_thumb_joint
34 name: left_index_joint, parent: 30:left_wrist1_joint
35 name: left_little_joint, parent: 30:left_wrist1_joint
36 name: left_middle_joint, parent: 30:left_wrist1_joint
37 name: left_ring_joint, parent: 30:left_wrist1_joint
38 name: right_thumb1_joint, parent: 31:right_thumb_joint
39 name: right_index_joint, parent: 32:right_wrist1_joint
40 name: right_little_joint, parent: 32:right_wrist1_joint
41 name: right_middle_joint, parent: 32:right_wrist1_joint
42 name: right_ring_joint, parent: 32:right_wrist1_joint
43 name: left_thumb2_joint, parent: 33:left_thumb1_joint
44 name: left_index1_joint, parent: 34:left_index_joint
45 name: left_little1_joint, parent: 35:left_little_joint
46 name: left_middle1_joint, parent: 36:left_middle_joint
47 name: left_ring1_joint, parent: 37:left_ring_joint
48 name: right_thumb2_joint, parent: 38:right_thumb1_joint
49 name: right_index1_joint, parent: 39:right_index_joint
50 name: right_little1_joint, parent: 40:right_little_joint
51 name: right_middle1_joint, parent: 41:right_middle_joint
52 name: right_ring1_joint, parent: 42:right_ring_joint
53 name: left_index2_joint, parent: 44:left_index1_joint
54 name: left_little2_joint, parent: 45:left_little1_joint
55 name: left_middle2_joint, parent: 46:left_middle1_joint
56 name: left_ring2_joint, parent: 47:left_ring1_joint
57 name: right_index2_joint, parent: 49:right_index1_joint
58 name: right_little2_joint, parent: 50:right_little1_joint
59 name: right_middle2_joint, parent: 51:right_middle1_joint
60 name: right_ring2_joint, parent: 52:right_ring1_joint
61 name: left_index3_joint, parent: 53:left_index2_joint
62 name: left_little3_joint, parent: 54:left_little2_joint
63 name: left_middle3_joint, parent: 55:left_middle2_joint
64 name: left_ring3_joint, parent: 56:left_ring2_joint
65 name: right_index3_joint, parent: 57:right_index2_joint
66 name: right_little3_joint, parent: 58:right_little2_joint
67 name: right_middle3_joint, parent: 59:right_middle2_joint
68 name: right_ring3_joint, parent: 60:right_ring2_joint
-- --
Skeleton created out of jME OGRE skeleton, 69 joints
Created skeleton animation clip: leg_test
Loaded ogre file: body_new/body.mesh.xml, scale: 1, rotation: Quaternion [X=-6.123234E-17, Y=6.123234E-17, Z=1.0, W=3.7493998E-33]
1 sub objects, 1 skin animation(s), 0 pose animation(s)
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
-- total 69 joint(s) --
0 name: joint6, parent:
1 name: joint7, parent: 0:joint6
2 name: joint8, parent: 1:joint7
3 name: left_hip_joint, parent: 1:joint7
4 name: right_hip_joint, parent: 1:joint7
5 name: joint9, parent: 2:joint8
6 name: left_knee_joint, parent: 3:left_hip_joint
7 name: right_knee_joint, parent: 4:right_hip_joint
8 name: joint10, parent: 5:joint9
9 name: left_ankle_joint, parent: 6:left_knee_joint
10 name: right_ankle_joint, parent: 7:right_knee_joint
11 name: joint11, parent: 8:joint10
12 name: left_ball_joint, parent: 9:left_ankle_joint
13 name: right_ball_joint, parent: 10:right_ankle_joint
14 name: joint12, parent: 11:joint11
15 name: left_clavicle_joint, parent: 11:joint11
16 name: right_clavicle_joint, parent: 11:joint11
17 name: left_toe_joint, parent: 12:left_ball_joint
18 name: right_toe_joint, parent: 13:right_ball_joint
19 name: joint13, parent: 14:joint12
20 name: left_shoulder_joint, parent: 15:left_clavicle_joint
21 name: right_shoulder_joint, parent: 16:right_clavicle_joint
22 name: joint14, parent: 19:joint13
23 name: left_elbow_joint, parent: 20:left_shoulder_joint
24 name: right_elbow_joint, parent: 21:right_shoulder_joint
25 name: joint15, parent: 22:joint14
26 name: left_wrist_joint, parent: 23:left_elbow_joint
27 name: right_wrist_joint, parent: 24:right_elbow_joint
28 name: joint16, parent: 25:joint15
29 name: left_thumb_joint, parent: 26:left_wrist_joint
30 name: left_wrist1_joint, parent: 26:left_wrist_joint
31 name: right_thumb_joint, parent: 27:right_wrist_joint
32 name: right_wrist1_joint, parent: 27:right_wrist_joint
33 name: left_thumb1_joint, parent: 29:left_thumb_joint
34 name: left_index_joint, parent: 30:left_wrist1_joint
35 name: left_little_joint, parent: 30:left_wrist1_joint
36 name: left_middle_joint, parent: 30:left_wrist1_joint
37 name: left_ring_joint, parent: 30:left_wrist1_joint
38 name: right_thumb1_joint, parent: 31:right_thumb_joint
39 name: right_index_joint, parent: 32:right_wrist1_joint
40 name: right_little_joint, parent: 32:right_wrist1_joint
41 name: right_middle_joint, parent: 32:right_wrist1_joint
42 name: right_ring_joint, parent: 32:right_wrist1_joint
43 name: left_thumb2_joint, parent: 33:left_thumb1_joint
44 name: left_index1_joint, parent: 34:left_index_joint
45 name: left_little1_joint, parent: 35:left_little_joint
46 name: left_middle1_joint, parent: 36:left_middle_joint
47 name: left_ring1_joint, parent: 37:left_ring_joint
48 name: right_thumb2_joint, parent: 38:right_thumb1_joint
49 name: right_index1_joint, parent: 39:right_index_joint
50 name: right_little1_joint, parent: 40:right_little_joint
51 name: right_middle1_joint, parent: 41:right_middle_joint
52 name: right_ring1_joint, parent: 42:right_ring_joint
53 name: left_index2_joint, parent: 44:left_index1_joint
54 name: left_little2_joint, parent: 45:left_little1_joint
55 name: left_middle2_joint, parent: 46:left_middle1_joint
56 name: left_ring2_joint, parent: 47:left_ring1_joint
57 name: right_index2_joint, parent: 49:right_index1_joint
58 name: right_little2_joint, parent: 50:right_little1_joint
59 name: right_middle2_joint, parent: 51:right_middle1_joint
60 name: right_ring2_joint, parent: 52:right_ring1_joint
61 name: left_index3_joint, parent: 53:left_index2_joint
62 name: left_little3_joint, parent: 54:left_little2_joint
63 name: left_middle3_joint, parent: 55:left_middle2_joint
64 name: left_ring3_joint, parent: 56:left_ring2_joint
65 name: right_index3_joint, parent: 57:right_index2_joint
66 name: right_little3_joint, parent: 58:right_little2_joint
67 name: right_middle3_joint, parent: 59:right_middle2_joint
68 name: right_ring3_joint, parent: 60:right_ring2_joint
-- --
Skeleton created out of jME OGRE skeleton, 69 joints
Created skeleton animation clip: leg_test
Loaded ogre file: body_new/top.mesh.xml, scale: 1, rotation: Quaternion [X=-6.123234E-17, Y=6.123234E-17, Z=1.0, W=3.7493998E-33]
1 sub objects, 1 skin animation(s), 0 pose animation(s)
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
Apr 15, 2011 10:38:10 PM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton
WARNING: Rotation axis not normalized
-- total 69 joint(s) --
0 name: joint6, parent:
1 name: joint7, parent: 0:joint6
2 name: joint8, parent: 1:joint7
3 name: left_hip_joint, parent: 1:joint7
4 name: right_hip_joint, parent: 1:joint7
5 name: joint9, parent: 2:joint8
6 name: left_knee_joint, parent: 3:left_hip_joint
7 name: right_knee_joint, parent: 4:right_hip_joint
8 name: joint10, parent: 5:joint9
9 name: left_ankle_joint, parent: 6:left_knee_joint
10 name: right_ankle_joint, parent: 7:right_knee_joint
11 name: joint11, parent: 8:joint10
12 name: left_ball_joint, parent: 9:left_ankle_joint
13 name: right_ball_joint, parent: 10:right_ankle_joint
14 name: joint12, parent: 11:joint11
15 name: left_clavicle_joint, parent: 11:joint11
16 name: right_clavicle_joint, parent: 11:joint11
17 name: left_toe_joint, parent: 12:left_ball_joint
18 name: right_toe_joint, parent: 13:right_ball_joint
19 name: joint13, parent: 14:joint12
20 name: left_shoulder_joint, parent: 15:left_clavicle_joint
21 name: right_shoulder_joint, parent: 16:right_clavicle_joint
22 name: joint14, parent: 19:joint13
23 name: left_elbow_joint, parent: 20:left_shoulder_joint
24 name: right_elbow_joint, parent: 21:right_shoulder_joint
25 name: joint15, parent: 22:joint14
26 name: left_wrist_joint, parent: 23:left_elbow_joint
27 name: right_wrist_joint, parent: 24:right_elbow_joint
28 name: joint16, parent: 25:joint15
29 name: left_thumb_joint, parent: 26:left_wrist_joint
30 name: left_wrist1_joint, parent: 26:left_wrist_joint
31 name: right_thumb_joint, parent: 27:right_wrist_joint
32 name: right_wrist1_joint, parent: 27:right_wrist_joint
33 name: left_thumb1_joint, parent: 29:left_thumb_joint
34 name: left_index_joint, parent: 30:left_wrist1_joint
35 name: left_little_joint, parent: 30:left_wrist1_joint
36 name: left_middle_joint, parent: 30:left_wrist1_joint
37 name: left_ring_joint, parent: 30:left_wrist1_joint
38 name: right_thumb1_joint, parent: 31:right_thumb_joint
39 name: right_index_joint, parent: 32:right_wrist1_joint
40 name: right_little_joint, parent: 32:right_wrist1_joint
41 name: right_middle_joint, parent: 32:right_wrist1_joint
42 name: right_ring_joint, parent: 32:right_wrist1_joint
43 name: left_thumb2_joint, parent: 33:left_thumb1_joint
44 name: left_index1_joint, parent: 34:left_index_joint
45 name: left_little1_joint, parent: 35:left_little_joint
46 name: left_middle1_joint, parent: 36:left_middle_joint
47 name: left_ring1_joint, parent: 37:left_ring_joint
48 name: right_thumb2_joint, parent: 38:right_thumb1_joint
49 name: right_index1_joint, parent: 39:right_index_joint
50 name: right_little1_joint, parent: 40:right_little_joint
51 name: right_middle1_joint, parent: 41:right_middle_joint
52 name: right_ring1_joint, parent: 42:right_ring_joint
53 name: left_index2_joint, parent: 44:left_index1_joint
54 name: left_little2_joint, parent: 45:left_little1_joint
55 name: left_middle2_joint, parent: 46:left_middle1_joint
56 name: left_ring2_joint, parent: 47:left_ring1_joint
57 name: right_index2_joint, parent: 49:right_index1_joint
58 name: right_little2_joint, parent: 50:right_little1_joint
59 name: right_middle2_joint, parent: 51:right_middle1_joint
60 name: right_ring2_joint, parent: 52:right_ring1_joint
61 name: left_index3_joint, parent: 53:left_index2_joint
62 name: left_little3_joint, parent: 54:left_little2_joint
63 name: left_middle3_joint, parent: 55:left_middle2_joint
64 name: left_ring3_joint, parent: 56:left_ring2_joint
65 name: right_index3_joint, parent: 57:right_index2_joint
66 name: right_little3_joint, parent: 58:right_little2_joint
67 name: right_middle3_joint, parent: 59:right_middle2_joint
68 name: right_ring3_joint, parent: 60:right_ring2_joint
-- --
Skeleton created out of jME OGRE skeleton, 69 joints
Created skeleton animation clip: leg_test
Loaded ogre file: body_new/shorts.mesh.xml, scale: 1, rotation: Quaternion [X=-6.123234E-17, Y=6.123234E-17, Z=1.0, W=3.7493998E-33]
1 sub objects, 1 skin animation(s), 0 pose animation(s)
Exception in thread "main" java.lang.IllegalArgumentException: Number of vertices differ!
at raft.jpct.bones.SkinData.checkAlmostEqual(SkinData.java:38)
at raft.jpct.bones.Animated3D.mergeSkin(Animated3D.java:475)
at raft.jpct.bones.AnimatedGroup.mergeSkin(AnimatedGroup.java:338)
at raft.jpct.bones.util.JMEOgreImporter.loadGroup(JMEOgreImporter.java:83)
at raft.jpct.bones.util.JMEOgreImporter.run(JMEOgreImporter.java:58)
at raft.jpct.bones.util.JMEOgreImporter.main(JMEOgreImporter.java:147)

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: Bones - Skeletal and Pose animations for jPCT
« Reply #179 on: April 15, 2011, 08:55:11 pm »
multiple input files are used to merge animations. ie. one animation in this file, one in another. it's basicly done for Collada models as I couldnt find any collada sample with many animations. no need to use this with Ogre. Ogre exporters can export many animations and objects to same file.

in short, tell you artist to export all objects to same file.