Why some of my textures are rotated 90° ?

Hi,
I’m importing .fbx from 3dsMax into Unity 4.6.
All my UVs are corectly setup in 3dsmax.
But a lot of my textures are rotated 90° in Unity …
Any clue ?
Thanks :slight_smile:

Are your textures only rotated on the 3D model or in the Unity Asset Browser too ?

@nTu4Ka I dont know where you comment disappeared but you were asking how to get a reference to the script on the prefab clone. You can call clone.GetComponent() to get it, or, make sure that the prefab reference type already was YourPanelScriptExample to begin with. Etc see second example in docs.

6 Answers

6

This can happen if your mesh is exported with quads in the geometry, which are sometimes triangulated by Unity differently to how your 3D application triangulated them for UV mapping. That manifests as the affected quads having their texture rotated 90 degrees. Always triangulate before UV mapping!

create a new material and put the texture in the material hope that help :slight_smile:

Hello
Thanks for your inputs !

  • My textures are rotated only on some 3D models, not on the Asset Browser.
  • I’ve tried creating a new material and put the texture in it, but the rotation remains …
    Strange.

This sounds like an issue with your UV-mapping.
Did you rotate your material in the 3DSmax material editor ?
Because this doesn’t change the Uv-mapping itself, it only rotates the 3DS-material.
I hope this helps :slight_smile:
(Im sorry, I don’t know how experienced you are with 3DSmax – that’s why I am asking…)

Hi thanks again for your ideas, Yes i thought of that point too. Unfortunately it's not the case, the texture isn't rotated in 3dsMax... I also tried to redo modeling and UVs and the problem remains ! Very strange ...

Can you download Blender and test your model in it ? (with your texture) -- (i don't think open in works so you have to go to import-fbx in blender) That way you'll know if the issue is a unity issue or a 3DSmax issue.

Sorry to bring this old thread back, but I had the same problem. Turns out when exporting from 3DS Max you have to make sure that you are exporting a mesh object, and not a editable poly object like I did. Before you export as a FBX, convert object to editable Mesh. Problem should be solved.

I have some problem for object dowloaded from 3dsky and .fbx file format
I use tilling in material properties for rotating.80874-x.jpg

Finally found a fix for mine, just had to open the texture in an image editor and rotate 90 degrees.