in CXFileReader.cpp, bool CXFileReader::parseDataObject()
code is :
Code: Select all
if (objectName == "Frame")
return parseDataObjectFrame(RootFrame);
else
Code: Select all
if (objectName == "Frame")
{
RootFrame.ChildFrames.push_back(SXFrame());
return parseDataObjectFrame(RootFrame.ChildFrames[RootFrame.ChildFrames.size()-1]);
}
else
code is (no code, only comments):
Code: Select all
// transform vertices and normals
/*core::matrix4 mat = frame.LocalMatrix;
mat.makeInverse();
s32 vcnt = buf->Vertices.size();
for (s32 u=0; u<vcnt; ++u)
{
mat.transformVect(buf->Vertices[u].Pos);
mat.inverseRotateVect(buf->Vertices[u].Normal);
}*/
Code: Select all
core::matrix4 mat = frame.GlobalMatrix;
s32 vcnt = buf->Vertices.size();
for (s32 u=0; u<vcnt; ++u)
{
mat.transformVect(buf->Vertices[u].Pos);
mat.rotateVect(buf->Vertices[u].Normal);
}