0 votes

Hi, I'm not seeing textures when I import a custom tile with a texture into Godot.

These are the steps I followed

  1. Imported a .obj tile from the Kenney - Extended Nature Pack into Blender 2.80 (it's a box. no more no less)
  2. Removed all materials
  3. Went to UV Editing:

    • Loaded my texture
    • Unwrapped the box
    • set the UV mapping the way I wanted it to look with my texture
  4. Went to Modeling
  5. Selected the top face of the tile (the two triangles)
  6. Added a Texture material with UV coordinates

    • The render looks good. The texture is shown in the top face.
  7. I export the .obj file.
  8. I copy the texture, the 'textured-tile.mtl' and the 'textured-tile.obj' files into the godot project
  9. I drag the object from the list of assets into the scene
  10. The texture is missing.

Did I miss any step to make it work? I thought that was all I needed. Am I supposed to export it differently?
I also tried copying the texture into the project, and updated the .mtl file to fix the path location, but it didn't work.

I exported it as Collada (.dae), and it worked on first try, but it adds an entire scene, an animation player, and a mesh. I just wanted the mesh. The mesh is also rotated, and I haven't found a way to lay it as floor yet, because changing the transform actually changes the entire gridmap plane.

Thank you in advance

in Engine by (29 points)
edited by

I didn't fix this, but it's partially working with the collada format, since .obj textures are not shown. The model rotation is broken and I have to manually fix that when laying down the floor, but at least I can use it. The .dae and .tscn files are easy enough to modify, so I took one model, with one scene + collissions... and used a script to create 160 copies with different textures. I just had to make sure the internal materials had different names. It's definitely not a good fix, but at least I'm able to export a usable gridmap with 161 different textures.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.