Specifically:
NURBS plane
Deformed by taking the middle and dragging it down a bit to create a depression. The edges of the plane stay at y=0;
Modify|Convert|NURBS to Polygons
Normal show as pointing up, that is to say +y
Planeular texture map; apply nice texture;
Select object
Export this via Ogre|Export
Code: Select all
Export: (x)Selected
Coordinate Space: (x)Object (wold seems the same)
[x]Export mesh to Ogre XML format
[x]Include Vertex Normals
[x]Include texture coordinates
[x]Export material to Ogre .material format
[x]Copy texture to output dir
[x]Export with “lighting off” option
I have exported other things without issue so I presume it has to do with the shape of this plane; If I reverse the normals I end up with the same results.select -cl ;
select -r nurbsToPoly1 ;
ogreExport -sel -obj -mesh "C:\\home\\feral\\dev\\ffo\\out\\maya6\\vortex.mesh.xml" -n -t -mat "C:\\home\\feral\\dev\\ffo\\out\\maya6\\vortex.material";
// Translating scene to OGRE format
// Found mesh node: |nurbsToPoly1|nurbsToPolyShape1
// Translating mesh node |nurbsToPoly1|nurbsToPolyShape1...
// Found material: vortex
// OK
// Command is not undoable
Oh the results: My normals are wrong; They are pointing to -y, that is to say the texture is visible when looking from under the mesh, but if we look down from above the mesh. looking into the depression we see nothing;
It appears normals are not correctly exported for this plane. At least, that is my guess.
Am I doing something wrong somewhere or is this a exporter bug ?
Please pardon my incoherent-ness; it is quite late.
