Hi,
Please see attached .fbx
The artist added UV islands, and I can see them if I open the .fbx in 3D Coat
I need to convert the fbx into a proprietary format, and I use the FBX SDK for that.
However, when I get
FbxGeometryElementUV* leUV = aMesh->GetElementUV(0);
leUV->GetMappingMode()
is
FbxGeometryElement::eByPolygonVertex:
but
aMesh->GetTextureUVIndex(i, j);
returns -1 for all vertices.
I can see that if I use ImportScene (from the SDK):
Polygons
Polygon 0
Coordinates: -8187.017578, 9150.000000, -4962.866211
Texture UV: 0.000000, 0.000000
Normal: 0.000000, -1.000000, -0.000000
Coordinates: -8859.222656, 9150.000000, -3890.286133
Texture UV: 0.000000, 0.000000
Normal: 0.000000, -1.000000, -0.000000
Coordinates: -9494.500977, 9150.000000, -5544.650391
Texture UV: 0.000000, 0.000000
Normal: 0.000000, -1.000000, -0.000000
And the same for all polygons.
ANd there is nothing else in the output from ImportScene that shows the UV map.
How can I get to it?
TIA
Solved! Go to Solution.
Solved by samsonite151. Go to Solution.
Polygons can have more than one UV layer. Your UVs are on the 2nd UV layer, not the first one.
The first layer is all zero.
Can't find what you're looking for? Ask the community or share your knowledge.