godot icon indicating copy to clipboard operation
godot copied to clipboard

UV texture aligns wrong for imported Mesh?

Open trsh opened this issue 12 years ago • 7 comments

Steps to reproduce:

  1. Open untilded.blend (file in https://drive.google.com/file/d/0BwDtvsC8_NUGUHlqR25pUDEwZ1E/view?usp=sharing) in blender.
  2. In UV editor "Save image as..." somwhere on your drive.
  3. Select cube in 3d scene
  4. File->Export as OBJ with defaults settings and "include UV's'',"Selected only" checked.
  5. Import exported OBJ as 3d Mesh in Godot scene
  6. Import saved texture (3d or 2d - doesn't matter)
  7. Add MeshInstance and select the importet mesh from OBJ
  8. Add New Fixed Material
  9. For the material set the Diffuse texture the one importet earlier (if not by default, set Diffuse tc to "UV")
  10. The texture is aligned wrong

Best, Janis

trsh avatar Oct 10 '14 11:10 trsh

Isn't the recommended way to use the Collada export from Blender?

I picked that up from this tutorial video: https://www.youtube.com/watch?v=RvRQkGcxJSY

ScyDev avatar Oct 14 '14 09:10 ScyDev

Collada is only for "Scene import", not for a single object.

trsh avatar Oct 14 '14 11:10 trsh

haven't tested this workflow too much yet, so will check this issue briefly

On Tue, Oct 14, 2014 at 8:34 AM, trsh [email protected] wrote:

Collada is only for "Scene import", not for a single object.

— Reply to this email directly or view it on GitHub https://github.com/okamstudio/godot/issues/771#issuecomment-59028744.

reduz avatar Oct 14 '14 11:10 reduz

Big Thanks!

trsh avatar Oct 14 '14 11:10 trsh

The blender file link was broken. I added a new one (with this one the issue is obvious).

trsh avatar Oct 14 '14 12:10 trsh

@reduz this looks serious, but easy to solve i think. the problem is the uvs are flipped upside down, so the texture gets wrong

carlinitos avatar Oct 14 '14 15:10 carlinitos

uv y was flipped, fixed.

reduz avatar Nov 01 '14 18:11 reduz