Corrupted Chunks Vertex Animation Topic is solved

Problems building or running the engine, queries about how to use features etc.
rpgplayerrobin
Gnoll
Posts: 664
Joined: Wed Mar 18, 2009 3:03 am
x 371

Corrupted Chunks Vertex Animation

Post by rpgplayerrobin »

Ogre Version: 1.12.13 - 14.1.2
Operating System: Windows 10
Render System: Direct3D9

Hello!

I have been having many warnings in my Ogre log file in debug (not in release) regarding corrupted chunks for all my meshes that use vertex animation (exported from Maya).

It happens for 14.1.2 as well as the older version that I am using, so it seems to have been around for some time.

I am not sure if it has something to do with the Maya exporter or if this is an Ogre bug.

In Serializer::readChunk (OgreSerializer.cpp), it detects many corrupted chunks and outputs it to the Ogre log.
For my object it outputs the warning 90 times to the Ogre log (one for each keyframe it seems).

I can also reproduce it with these simple steps:

  • Open Maya
  • Create a plane or a box mesh (any mesh get the same problem)
  • Go into nDynamics and create an nCloth on the mesh
  • Go into the Ogre Exporter
  • Change Animation Type to Vertex
  • Enable Vertex Animations
  • Set start time and end time to 1 and 24.
  • Export
  • Start Ogre in debug
  • Load the mesh and the corrupted chunks warnings will appear (you can also set a breakpoint in Serializer::readChunk)

For both a plane and a box it gets 23 warnings, which is about one warning per keyframe (1-24).

I have also uploaded the very small plane.mesh file exported from Maya here: https://drive.google.com/file/d/1jw1BZP ... drive_link

In MeshSerializerImpl::readAnimationTrack it first goes into readMorphKeyFrame and then it runs "streamID = readChunk(stream);" which always shows the warning message.

How do I solve this?

Is it something that needs solving? If I just run in release no warnings appear, but I am afraid that it corrupts my applications memory or something since I don't really know what is wrong here.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2093
Joined: Sun Mar 30, 2014 2:51 pm
x 1129

Re: Corrupted Chunks Vertex Animation

Post by paroj »

this should be the fix: https://github.com/OGRECave/ogre/pull/3 ... 040f75fc3f

note: the meshes need to be re-exported after this

rpgplayerrobin
Gnoll
Posts: 664
Joined: Wed Mar 18, 2009 3:03 am
x 371

Re: Corrupted Chunks Vertex Animation

Post by rpgplayerrobin »

Thank you so much! :D

I compiled Ogre again with that line and added its new dll file to the Maya exporter, and now it works when I have re-exported them!