Incorrect UVs with FBX export #40041

Closed
opened 2014-05-06 06:19:58 +02:00 by Mitchell Stokes · 13 comments

simple_character.blend

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.

[simple_character.blend](https://archive.blender.org/developer/F87145/simple_character.blend) 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.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @Moguri

Added subscriber: @Moguri

Added subscriber: @mont29

Added subscriber: @mont29

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.

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.
Author
Member

I start with the following:
correct_uv.png

After exporting and importing, I get this:
incorrect_uv.png

I start with the following: ![correct_uv.png](https://archive.blender.org/developer/F87181/correct_uv.png) After exporting and importing, I get this: ![incorrect_uv.png](https://archive.blender.org/developer/F87183/incorrect_uv.png)

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…

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…
Author
Member

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

Sorry, I forgot that I unpacked the textures while I was playing with Unity. [simple_character.blend](https://archive.blender.org/developer/F87186/simple_character.blend)

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.

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 self-assigned this 2014-05-06 19:31:51 +02:00

This issue was referenced by ae74dc51cf

This issue was referenced by ae74dc51cf37ee77786a4c76122feb7225bae648

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).

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).

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit ae74dc51cf.

Closed by commit ae74dc51cf.
Author
Member

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. :)

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. :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#40041
No description provided.