AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Wrong UVs that get corrected after reexport it
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Wrong UVs that get corrected after reexport it
Rate this thread
 
15065
 
Permlink of this thread  
avatar
  • tamat
  • Posted: 30 July 2008 10:51 AM
  • Total Posts: 21
  • Joined: 26 February 2008 08:55 PM

I’ve got an FBX with only one quad, this quad has two polygons with only one material. This material uses a texture on Ambient and another texture on Diffuse, and everyone of them uses its own UV Channel (despite the texcoords in both channels are pretty the same). I can see it in 3dsMax 2008 and it looks perfect.

The thing is that when I open the FBX using the ImportScene tutorial (2009.1) one of the UV Channels shown is wrong (some texcoords are just 0,0 or other numbers, it looks like they are wrong indexed). My rendered used this example as a base to the importer so my application obviously looks horrible.

You can see an example of the output here, check that the first polygon looks right, but the second has problems:

Mesh Nameentorn
    Polygons
        Polygon 0
            Coordinates
: -242.527298236.2767490.000000
            Texture UV UVChannel_1 
(layer 0): 0.9667710.504206
            Texture UV UVChannel_2 
(layer 1): 0.9667710.746730
            Coordinates
: -242.527298236.276749130.069016
            Texture UV UVChannel_1 
(layer 0): 0.9667710.746730
            Texture UV UVChannel_2 
(layer 1): 0.5464030.746730
            Coordinates
: -242.5272830.023589130.069016
            Texture UV UVChannel_1 
(layer 0): 0.5464030.746730
            Texture UV UVChannel_2 
(layer 1): 0.5464030.504206
        Polygon 1
            Coordinates
: -242.5272830.023589130.069016
            Texture UV UVChannel_1 
(layer 0): 0.5464030.746730
            Texture UV UVChannel_2 
(layer 1): 0.9667710.504206
            Coordinates
: -242.5272830.0235810.000000
            Texture UV UVChannel_1 
(layer 0): 0.5464030.504206
            Texture UV UVChannel_2 
(layer 1): 0.0000000.000000  <-- !!!!!!!!!!
            
Coordinates: -242.527298236.2767490.000000
            Texture UV UVChannel_1 
(layer 0): 0.9667710.504206
            Texture UV UVChannel_2 
(layer 1): 0.0000000.000000  <-- !!!!!!!!!!

Here comes the mistery. If I open the FBX in 3dsmax and change slightly the uvs of the problematic channel then when I reexport it they look fine. But if I don’t modify them then they look bad. So I guess the UVs are stored in some kind of Mapping mode that it is not fully supported by the FBX but after modifying them they are transformed to the regular mode.

This is very annoying first because I have lots of FBX and I don’t want to go layer by layer modifying the UV Coords for every mesh, the other is because I can’t ensure my clients won’t have this problem again.

Any idea? I will really appreciate any suggestion.

If you want to try it by yourself… FBX Scene (it has big textures enveded, sorry)



Replies: 0