Crash when level load with custom weapon model

Level design, models, animations, physics, etc.
2 posts Page 1 of 1
Mud-H
Posts: 175
Joined: Thu Feb 19, 2015 3:08 pm
by Mud-H » Mon Sep 07, 2015 11:13 pm
I have an issue with one of my models which cause the game to crash when I set it as a WeaponImage model. I have run it in debug and it crash during: void ColladaAppMesh::getPrimitives(const domGeometry* geometry).

Code: Select all

 // Collada uses CCW for front face and Torque uses the opposite, so
 // for normal (non-inverted) meshes, the indices are flipped.
 if (appNode->invertMeshes)
        dstIndex[v] = itr->value;
 else
         dstIndex[2 - v] = itr->value;  <---Crash on that
 

After some test I found that it's specific to that model. I guess there's something wrong with it but I can't figure what. I tried to invert the normal but not sure if it's what the invertMeshes check is about. I haven't tried but I guess standard models have the appNode->invertMeshes to true?
For now I have simply decided to use another model but I'd like to find how to fix it, Anyone have an idea about what is happening?
Mud-H
Posts: 175
Joined: Thu Feb 19, 2015 3:08 pm
by Mud-H » Tue Sep 08, 2015 12:33 am
Well, I managed to fix my model by importing back the exported Collada model into 3ds max. Should have tought about it since the model was working fine as a standard model, even worked as a PlayerData model. I'm wondering why this crash only happen for WeaponImage models...
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest