Code: Select all
// Collada uses CCW for front face and Torque uses the opposite, so
// for normal (non-inverted) meshes, the indices are flipped.
dstIndex[v] = itr->value;
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?