Weird patterns on transparent material

So I just got done making something temporary for my game.

I made it in Blender, created the seams around the edges, saved the UV for it, and then made the texture in gimp. everything exported and looks fine. But when I put the texture image into a new material, it has these weird black and dark gray patterns on the top and bottom of the object.

Here is the image of the texture (the black isn’t actually there, it’s just how it got pasted into this thread for some reason):

And here is the object with the material applied, in the editor scene:

I tried everything, from changing the “Wrap” and “Filter” modes, the compression settings, and also the texture type and settings.

Here’s a screenshot of my material setup:

And for the texture image:

As I said, I already tried changing some things in the texture’s settings.

Please tell me if I’m doing something wrong and I’m just dumb (inexperienced). And even better, how can I fix this?

Hey,

I’ve noticed transparent images are a bit of a pain to work properly sometimes. I would try to change the “compression” settings in your texture to something that has alpha. Usually the HDR compression settings are RGB only.

Another thing to try is to unpremult your alpha from your RGB in your image editor. While you’re in the image editor check the values of your alpha, making sure it has a value of 1 in the areas you want opaque. There’s also a possibility your RGB values might be above 1 or below 0, so maybe throwing in a clamp won’t hurt.

I’d love to hear the fix if you find a solution.

1 Like

I̶ ̶f̶i̶x̶e̶d̶ ̶i̶t̶.̶ ̶I̶ ̶d̶o̶n̶’̶t̶ ̶k̶n̶o̶w̶ ̶w̶h̶y̶ ̶i̶t̶ ̶w̶a̶s̶ ̶h̶a̶p̶p̶e̶n̶i̶n̶g̶,̶ ̶b̶u̶t̶ ̶h̶e̶r̶e̶’̶s̶ ̶w̶h̶a̶t̶ ̶I̶ ̶d̶i̶d̶ ̶t̶o̶ ̶r̶e̶m̶o̶v̶e̶ ̶t̶h̶e̶ ̶w̶e̶i̶r̶d̶ ̶p̶a̶t̶t̶e̶r̶n̶s̶.̶

̶T̶h̶e̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶w̶a̶s̶ ̶t̶h̶a̶t̶ ̶I̶ ̶d̶r̶a̶g̶g̶e̶d̶ ̶t̶h̶e̶ ̶w̶h̶o̶l̶e̶ ̶f̶i̶l̶e̶ ̶o̶n̶t̶o̶ ̶t̶h̶e̶ ̶s̶c̶e̶n̶e̶,̶ ̶w̶h̶i̶c̶h̶ ̶f̶o̶r̶ ̶s̶o̶m̶e̶ ̶r̶e̶a̶s̶o̶n̶ ̶m̶a̶d̶e̶ ̶t̶h̶e̶ ̶a̶c̶t̶u̶a̶l̶ ̶m̶o̶d̶e̶l̶ ̶g̶i̶g̶a̶n̶t̶i̶c̶ ̶(̶w̶h̶i̶c̶h̶ ̶i̶s̶ ̶m̶o̶s̶t̶ ̶l̶i̶k̶e̶l̶y̶ ̶w̶h̶a̶t̶ ̶c̶a̶u̶s̶e̶d̶ ̶t̶h̶e̶ ̶i̶s̶s̶u̶e̶)̶.̶ ̶T̶h̶i̶s̶ ̶h̶a̶p̶p̶e̶n̶s̶ ̶w̶i̶t̶h̶ ̶b̶o̶t̶h̶ ̶t̶h̶e̶ ̶o̶r̶i̶g̶i̶n̶a̶l̶ ̶a̶n̶d̶ ̶e̶x̶p̶o̶r̶t̶e̶d̶ ̶f̶i̶l̶e̶s̶.̶ ̶I̶ ̶j̶u̶s̶t̶ ̶d̶r̶a̶g̶g̶e̶d̶ ̶t̶h̶e̶ ̶"̶P̶l̶a̶n̶e̶"̶ ̶p̶a̶r̶t̶ ̶o̶f̶ ̶t̶h̶e̶ ̶f̶i̶l̶e̶ ̶o̶n̶t̶o̶ ̶t̶h̶e̶ ̶s̶c̶e̶n̶e̶,̶ ̶w̶h̶i̶c̶h̶ ̶i̶s̶ ̶a̶ ̶p̶a̶r̶t̶ ̶e̶v̶e̶r̶y̶ ̶m̶o̶d̶e̶l̶.̶ ̶A̶n̶d̶ ̶t̶h̶a̶t̶ ̶m̶a̶d̶e̶ ̶i̶t̶ ̶a̶p̶p̶e̶a̶r̶ ̶a̶t̶ ̶t̶h̶e̶ ̶a̶c̶t̶u̶a̶l̶ ̶s̶c̶a̶l̶e̶,̶ ̶a̶n̶d̶ ̶t̶h̶e̶ ̶p̶a̶t̶t̶e̶r̶n̶ ̶i̶s̶n̶’̶t̶ ̶t̶h̶e̶r̶e̶ ̶a̶n̶y̶m̶o̶r̶e̶.̶

̶T̶h̶a̶n̶k̶ ̶y̶o̶u̶ ̶f̶o̶r̶ ̶y̶o̶u̶r̶ ̶s̶u̶g̶g̶e̶s̶t̶i̶o̶n̶,̶ ̶I̶’̶m̶ ̶s̶u̶r̶e̶ ̶i̶t̶ ̶w̶i̶l̶l̶ ̶b̶e̶ ̶t̶h̶e̶ ̶c̶a̶s̶e̶ ̶f̶o̶r̶ ̶s̶o̶m̶e̶ ̶o̶t̶h̶e̶r̶ ̶p̶e̶o̶p̶l̶e̶ ̶i̶n̶ ̶t̶h̶e̶ ̶f̶u̶t̶u̶r̶e̶.̶

EDIT: Nevermind. That wasn’t the issue.
The issue is the “Skinned Mesh Renderer” which is a part of the “Cloth” component". That’s what’s causing the weird pattern. Because when I put the material into it now, the whole thing is black.

Oh ok, interesting.

So it’s working now?

Unfortunately no, I can’t figure out why it’s doing that only on the Skinned renderer.

EDIT: This is getting really confusing now. I was playing around with the light source options, and when I went to the object again, it looked fine. I changed the lighting mode, and it went black again, but when I changed it back to what it was. It was still black.

The way I got it to work now, is by double clicking the light source to go to it, changing a few settings at random, changing them back, and double clicking on the object (both in the hierarchy).

The thing is, if I do it while looking at the object, nothing happens. It’s like it’s playing a really dumb game of peekaboo with me. It will only stop having the issue if I go to the light source, turn the editor’s camera (not the camera in the hierarchy) away from the object, change some settings, go back to it, and turn the camera back so I can see the front of the object.

It’s literally melting my brain right now.

EDIT2: Just tested this again. And I was correct. In this test I changed it from “realtime” lighting mode to “mixed”, and changed it back to “realtime”.

I did this first while always having the camera looking at the object, and it stayed black. When I did the exact same thing by first turning away from it, going to the light source, changing the options, going back to the object, and turning around it to see the front.

Is works literally only when I go to the light source by double clicking it in the hierarchy, while having my camera aimed away from the object in question, changing settings back and forth, going back, and aiming the camera at the object. Like what the actual f*** is happening?!

It works, and the black isn’t there, but wtf! Why is it so specific? Why do I need to do these things so specifically to fix the issue? I am brain dead.

EDIT3: I have just discovered. The black returns, when I click on the material used, within the project window at the bottom. So I’m back to square 2 (figuring out how to stop the object turning black).

(I’m not going to make this one an “EDIT”, because editing doesn’t let me paste in more images)
Apparently even though it looks fully black in the scene editor, in the game view it has its transparency. The problem there is, the parts that are supposed to be light gray, are either black, or dark gray. I tried changing the “specular” color of the material (as that’s what seems to affect it), but the lightest I can get it is what it’s currently at (which is pure black in the color picker, and making it a brighter color actually makes the object darker).

Here’s a screenshot showing what it looks like in the game view:
3053582--229212--upload_2017-5-2_1-12-8.png
As you can see, it’s way darker than what the texture image is.

Yeah this is a really strange issue. I would try to narrow down if the problem is your texture, lighting, or scene settings.

Maybe first try creating a brand new scene and load your texture on a new piece of geometry. If it’s the same problem then your texture is broken.

If your texture works on your new scene then you know it’s something else weird going on in your scene.

Other than that I have no idea what it could be. Good luck!

1 Like