Author Topic: Model only loadable as AnimatedGroup  (Read 60350 times)

Offline Locust

  • byte
  • *
  • Posts: 13
    • View Profile
Model only loadable as AnimatedGroup
« on: May 04, 2017, 12:54:25 pm »
Hey raft,

I have exported an animated character from blender via ogrexml and converted it into a native bones model.
I get following output on the console:
Code: [Select]
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
Mai 04, 2017 11:46:09 AM com.jmex.model.ogrexml.anim.SkeletonLoader loadSkeleton

WARNUNG: Rotation axis not normalized
-- total 53 joint(s) --
0 name: Root, parent:
1 name: pelvis, parent: 0:Root
2 name: spine_01, parent: 1:pelvis
3 name: thigh_l, parent: 1:pelvis
4 name: thigh_r, parent: 1:pelvis
5 name: spine_02, parent: 2:spine_01
6 name: calf_l, parent: 3:thigh_l
7 name: calf_r, parent: 4:thigh_r
8 name: spine_03, parent: 5:spine_02
9 name: foot_l, parent: 6:calf_l
10 name: foot_r, parent: 7:calf_r
11 name: clavicle_l, parent: 8:spine_03
12 name: clavicle_r, parent: 8:spine_03
13 name: neck_01, parent: 8:spine_03
14 name: ball_l, parent: 9:foot_l
15 name: ball_r, parent: 10:foot_r
16 name: upperarm_l, parent: 11:clavicle_l
17 name: upperarm_r, parent: 12:clavicle_r
18 name: head, parent: 13:neck_01
19 name: lowerarm_l, parent: 16:upperarm_l
20 name: lowerarm_r, parent: 17:upperarm_r
21 name: hand_l, parent: 19:lowerarm_l
22 name: hand_r, parent: 20:lowerarm_r
23 name: index_01_l, parent: 21:hand_l
24 name: middle_01_l, parent: 21:hand_l
25 name: pinky_01_l, parent: 21:hand_l
26 name: ring_01_l, parent: 21:hand_l
27 name: thumb_01_l, parent: 21:hand_l
28 name: index_01_r, parent: 22:hand_r
29 name: middle_01_r, parent: 22:hand_r
30 name: pinky_01_r, parent: 22:hand_r
31 name: ring_01_r, parent: 22:hand_r
32 name: thumb_01_r, parent: 22:hand_r
33 name: index_02_l, parent: 23:index_01_l
34 name: middle_02_l, parent: 24:middle_01_l
35 name: pinky_02_l, parent: 25:pinky_01_l
36 name: ring_02_l, parent: 26:ring_01_l
37 name: thumb_02_l, parent: 27:thumb_01_l
38 name: index_02_r, parent: 28:index_01_r
39 name: middle_02_r, parent: 29:middle_01_r
40 name: pinky_02_r, parent: 30:pinky_01_r
41 name: ring_02_r, parent: 31:ring_01_r
42 name: thumb_02_r, parent: 32:thumb_01_r
43 name: index_03_l, parent: 33:index_02_l
44 name: middle_03_l, parent: 34:middle_02_l
45 name: pinky_03_l, parent: 35:pinky_02_l
46 name: ring_03_l, parent: 36:ring_02_l
47 name: thumb_03_l, parent: 37:thumb_02_l
48 name: index_03_r, parent: 38:index_02_r
49 name: middle_03_r, parent: 39:middle_02_r
50 name: pinky_03_r, parent: 40:pinky_02_r
51 name: ring_03_r, parent: 41:ring_02_r
52 name: thumb_03_r, parent: 42:thumb_02_r
-- --
Skeleton created out of jME OGRE skeleton, 53 joints
[ Thu May 04 11:46:09 CEST 2017 ] - WARNING: skipping null TexCoords
Created skeleton animation clip: my_animation
Loaded ogre file: V2_Male1591.mesh.xml, scale: 1, rotation: Quaternion [X=-6.123
234E-17, Y=6.123234E-17, Z=1.0, W=3.7493998E-33]
        1 sub objects, 1 skin animation(s), 0 pose animation(s)
Saved bones-group to pedestrian.bones

You can see the model consist only of one mesh and one skeleton/animation.
You can also see its saved the bones-group.

Now Id like to import this animated mesh as an Animated3D and not an AnimatedGroup ( would have to refactor quite some code to make it work with AnimatedGroups.

I get thrown and excpetion when trying to load it as an Animated3D, saying it doesnt recognize "bone-group".
Any clues why this is happening, or is there a way around that?


PS: I noticed the bones website went down like a week ago. Any information on that?

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Model only loadable as AnimatedGroup
« Reply #1 on: May 05, 2017, 02:34:49 pm »
you can just import AnimatedGroup in regular way and use Animated3D's inside it, no need to interact with the group.

for the website, thanks for notification, I wasnt aware, created a ticket at hosting company.

Offline Locust

  • byte
  • *
  • Posts: 13
    • View Profile
Re: Model only loadable as AnimatedGroup
« Reply #2 on: May 05, 2017, 03:04:15 pm »
So for clarification if I use this code

Code: [Select]
AnimatedGroup model = BonesIO.loadGroup(stream);
 a3d = model.get(0);

I got everything inside the a3d Animated3D and can basically omit the group after that line of code?

Thanks for the quick answer

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Model only loadable as AnimatedGroup
« Reply #3 on: May 05, 2017, 03:06:19 pm »
yes, exactly, group is just a container. you can just ignore it