Search code examples
unity-game-enginetexturesblender

Import blender textures on Unity 3D are always black


I have the next simple Blender Texture: enter image description here enter image description here

This is a simple png file, imported to blender add added in the Image Texture component (at the left of the first image), with a transparent background. I exported this texture in two format, the first one in .blend and the second one in .fbx format.

But, when I export this textures to blender (both formats) are a black rectangle and the spheres hasn't any texture, are totally gray.

What I'm doing wrong at the moment to import the textures?

enter image description here


Solution

  • You are supposed to bake the material into texture.

    I use Maya so I don't know the steps in Blender. You can google Bake Materials in Blender.When you bake the maps, you will get a Texture that is supported in Unity.

    Usually, you create a simple flat plane, attach the material to the plane, position the camera in front of it, then bake it. For what you are doing, you only need the color map. You don't need normal maps and others.

    Here are important links to learn that.

    https://renderedsmoothie.wordpress.com/2013/09/05/baking-ambient-occlusion/

    https://renderedsmoothie.wordpress.com/2013/08/31/how-to-bake-textures-and-materials/

    https://www.blender.org/manual/render/workflows/bake.html

    https://www.youtube.com/watch?v=Tj-S5QAac3U