Texture Render Error - black color only

Hi Guys,

I created a png with a cross (tic tac toe). And I imported it and created a material attached with it.

But the texture shown in unity 3d is all black which results when I dragged material to the cube, it’s also rendering all black.

alt text

This png file has alpha channel, the background is transparent (edited, earlier it said doesn’t have any alpha channel)

What should I do to correct it?

Thanks in advance.

The above picture has alpha channel. and the background is supposed to be transparent.

Hence, by using Transparent/diffuse to the material’s shader, it will do the job. Don’t use diffuse, it doesn’t apply the alpha property to material.

Unity~Black image FIX! - YouTube find answer here

I had a similar problem – black image texture when using lighting in the Scene window or when running game. My issue turned out to be a lack of lighting UVs for objects I had created myself in Blender. The fix was easy – on the model import in the Inspector, click the Model tab and click “Generate Lightmap UV”. Then hit “apply” at the bottom of the Inspector window. I then had to replace my model in the scene – basically copy the coordinates of the old one, delete the old one, add a new one from my Project window, and then paste in the coordinates from the old one. No more black image.

I got rid of a similar issue by adding the directional light to the current scene. Right click → Light → Directional Light, and transform it accordingly. Now the object showed up with the material applied.