Page 1 of 1

[Bug] Tangent calculator broken for triangle strip and fan.

Posted: Thu Jul 19, 2012 3:22 am
by arcanemartz
In OgreMesh.cpp, line 1267, v1.8:

Code: Select all

tangentsCalc.addIndexData(sm->indexData);
must be changed to:

Code: Select all

tangentsCalc.addIndexData(sm->indexData, sm->operationType);
To avoid subMesh primitive type to be defaulted to RenderOperation::OT_TRIANGLE_LIST causing error in tangent calculation for triangles strips and fans.

I will submit patch soon.

Re: [Bug] Tangent calculator broken for triangle strip and f

Posted: Thu Jul 19, 2012 3:25 am
by arcanemartz