Author Topic: Distorted model mesh  (Read 1358 times)

Offline rainfalls

  • byte
  • *
  • Posts: 27
    • View Profile
Distorted model mesh
« on: July 25, 2013, 03:07:54 pm »
Hi raft / all,

I tried to test a monster animation in jPCT with bones. The model and animation was prepared by my artist in 3DMax,  exported by OgreMax, and converted with OgreXMLConverter and then jmeOgre2Bones. The conversion ran smoothly and my monster.bones was created. I put it into the Bones ninja demo. The animation action seemed to be correct, however the mesh was distorted, as shown in the attached picture (the one with the blue background). What stage could the problem be? Is there any way to verify the Ogre mesh/skeleton or the xml files?

Many thanks.

[attachment deleted by admin]

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Distorted model mesh
« Reply #1 on: July 25, 2013, 07:40:03 pm »
strange. OgreMax has a viewer, how does it look in that?

Offline rainfalls

  • byte
  • *
  • Posts: 27
    • View Profile
Re: Distorted model mesh
« Reply #2 on: July 25, 2013, 09:43:40 pm »
Thanks for your suggestion. I opened the .mesh file with  the OgreMax viewer . The model showed properly at first, but when I enabled the animation, the mesh was gone and nothing in the scene left.

I also tried to use the desktop version of bones sample "LoadBonesFormatSample.java" to load this .bones file. The model could also be shown. And once the animation was started, the mesh seemed to be drawn aside and distorted. The animated skeletons however seemed to be correct as was in Android version. The attached is the skeleton snapshot from the sample.

Is there any special operation when doing rigging or animating in 3DMax for using OgreMax?

[attachment deleted by admin]

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Distorted model mesh
« Reply #3 on: July 26, 2013, 08:32:03 am »
Seems as OgreMax exports flawed data.

I'm not an OgreMax or 3dsMax expert, but I used OgreMax with Max and all was smooth. I did nothing special. Maybe there are extra modifiers on your model which interferes with OgreMax.


Offline rainfalls

  • byte
  • *
  • Posts: 27
    • View Profile
Re: Distorted model mesh
« Reply #4 on: July 26, 2013, 12:08:44 pm »
Thanks raft.

The problem has been solved by my 3d artist. I don't understand what exactly she changed but it seems to do with some "envelope" problem and was caused by something - "too large size of the effective region of skeletons". Sorry I'm not an expert at those 3dmax terms, but do hope this might make a little bit sense to others.

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Distorted model mesh
« Reply #5 on: July 26, 2013, 12:12:14 pm »
cool, I'm glad you solved it  ;)