- Home /
Transparency Diffuse Problem
I've been looking for an answer to my question for a couple of days, and finally decided to ask here. I have some materials using the Transparency/Diffuse shader. In the editor, everything looks fine. When I run it on the pc, it looks fine. But, when I run it on my android device, some materials show up, however most are just completely black. I'm hoping someone can help me find my answer.
Thanks for your time.
@Taylor3003 $$anonymous$$ost likely the shader is not supported on Android(thats why it renders black). Try switching to one of the $$anonymous$$obile Shaders.
Thanks for the help. I'm getting the same problem with mobile shaders as well. But it appears to only happen to certain instances of certain images. For example, I have two instances of the same image in the level, both using the same shader. One renders correctly, however the other renders black. It only works when I duplicate the image that works and delete the one that renders black. I can try and upload a screenshot, as that might help more seeing it than me trying to describe it.
Hmmm...i havent done too much in Android so far, but no such problem has occured with the things i am doing. Just read on a post
JTBentley said "Apparently, the phone loses it's gl context, so it's basically dumping everything out of ram. When it goes back into unity, the texture doesn't exist on disk, so it's just black." Heres the http://forum.unity3d.com/threads/97388-Android-Render-Texture-Problem>link to the forum post...nothing after that as far as results go, ill keep looking tho as im sure others and ill run into this same problem.
What @hijinxbassist says is likely your problem from what you've described. We have had numerous problems with this at work. The problem seemed to be mostly present with dynamically created textures (such as atlases that were packed at runtime) and copies of materials. It seemed as though the textures in the resources folders etc usually survived without going back, although I don't know that that was true in all cases... Sorry I couldn't be more help than this but I just wanted to at least confirm the above comment...