Page MenuHome

Incorrect UVs with FBX export
Closed, ResolvedPublic

Description

The attached character exports with incorrect UVs. I have tried both the ASCII and binary FBX exporters have this issue. I'm not sure if there is a particular material or texture option being used that causes this. I have yet to reproduce a similar error with a simple textured cube. The UV errors can be seen by importing the FBX into Unity or using Blender's FBX importer.

Event Timeline

Mitchell Stokes (moguri) raised the priority of this task from to 90.
Mitchell Stokes (moguri) updated the task description. (Show Details)
Mitchell Stokes (moguri) edited a custom field.
Bastien Montagne (mont29) lowered the priority of this task from 90 to 30.May 6 2014, 8:36 AM

To me, the UVmap from org blend file looks exactly the same as the one as re-imported from FBX by Blender… So need more precisions about what you call incorrect UVs.

I start with the following:

After exporting and importing, I get this:

Mmh… First of all, I’d suggest you attach a blend file with embedded textures, then. ;)

Also, this does not look like UV issue per-se, more like texture/material mapping issue…

Sorry, I forgot that I unpacked the textures while I was playing with Unity.

Ok, found the glitch here… You are using mirrored textures (Mapping Y size = -1)… Will have a look at FBX code, but not sure this can be supported.

Bastien Montagne (mont29) raised the priority of this task from 30 to Normal.May 6 2014, 5:19 PM

Ok, so exporter works OK here, I guess Unity simply does not support scaling on texture mapping…

Blender importer did not take into account texmap data at all, though, when working with traditional materials, though it can easily support offset and scaling (not rotation though).

Bastien Montagne (mont29) changed the task status from Unknown Status to Resolved.May 6 2014, 9:13 PM

Closed by commit rBAae74dc51cf37.

Ah, good catch on the scaling! Unity doesn't really import texture information, but I was able to setup a material with the Y flipped (I'm guessing it was flipped for DDS textures). Thanks for fixing the importer. :)