Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

URGENT: SDK failing to see UV coordinates

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
fernando.cacciola
466 Views, 2 Replies

URGENT: SDK failing to see UV coordinates

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

 

Tags (1)
2 REPLIES 2
Message 2 of 3

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.

Message 3 of 3

Ah... OK
I'll look into that.
Thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report