Author Topic: "Number of vertices differ" for 2 meshes with one skeleton  (Read 33185 times)

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #15 on: October 07, 2015, 02:00:05 pm »
hi raft, yes they are working when converted to bones individually.

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #16 on: October 07, 2015, 02:32:35 pm »
I've sent you my email via PM. please send your xml files and let me have a look

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #17 on: October 07, 2015, 03:04:53 pm »
Ok sure. Sent.

Btw, is there any viewer we can use to view the mesh xml so I can verify if it's correct? I tried using OgreMax Viewer and it seems it supports only .mesh file and cant import xml file.

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #18 on: October 07, 2015, 03:10:30 pm »
you can use the bones.samples.OgreSample. I use it all the time. just replace the path to mesh.xml in createAnimatedGroup() method.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #19 on: October 07, 2015, 03:19:49 pm »
Wow, that's alot useful. I realized there's another method where converting mesh.xml to .mesh using OgreXmlConverter, then view in OrgeMax Viewer. But I'd prefer your way since it's faster :p

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #20 on: October 07, 2015, 06:11:32 pm »
I'm glad if it's useful :) please download bones.jar and try again.

the problem was merged groups were not sharing the same SkeletonPose so animation is not applied to all of them. hopefully fixed.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #21 on: October 08, 2015, 04:06:53 am »
hi raft,

It's working great now! The bones weight should be correct for 2 objects respectively, right? I'll further check on that.

Thanks alot for your help fixing it. It's really helpful :)

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #22 on: October 08, 2015, 09:27:12 am »
cool :) just remember merging groups this way wont work if any group has pose animation. I need to fix it someday but not sure when ;)

weights should be correct, merging process is not related to them.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: "Number of vertices differ" for 2 meshes with one skeleton
« Reply #23 on: October 08, 2015, 10:30:51 am »
Thanks alot raft. Really appreciate ur help. Look forward to supporting pose animation for merging group.