Textures loaded from any format show upside-down.
I think the problem is in the CBillboardSceneNode.cpp file.
In the class constructors the assignement of texture coordinates:
Code: Select all
vertices[0].TCoords.set(0.0f, 0.0f);
vertices[0].Color = 0xffffffff;
vertices[1].TCoords.set(0.0f, 1.0f);
vertices[1].Color = 0xffffffff;
vertices[2].TCoords.set(1.0f, 1.0f);
vertices[2].Color = 0xffffffff;
vertices[3].TCoords.set(1.0f, 0.0f);
vertices[3].Color = 0xffffffff;
Code: Select all
vertices[0].TCoords.set(1.0f, 1.0f);
vertices[0].Color = 0xffffffff;
vertices[1].TCoords.set(1.0f, 0.0f);
vertices[1].Color = 0xffffffff;
vertices[2].TCoords.set(0.0f, 0.0f);
vertices[2].Color = 0xffffffff;
vertices[3].TCoords.set(0.0f, 1.0f);
vertices[3].Color = 0xffffffff;
I hope it helps.
Stefano