GUI/Shader issues

Hey Guys

I am trying to get a health GUI setup for a iPad game.

Its alpha gradient circle, I use 3 of them green, red, black. As the player takes damage the green gets cut off, leaving red, then eventually black.

I am using Trans./Cutoff/VertLit shader and then swapped to Jesses more optimised vert-lit cutout shader.

The GUI works perfectly in the editor, but when I run it on the iPad it just looks like a green square, once the green gets effected, it becomes a red square then black. So it has some obvious issues on iPad.

472320--16604--$Screen shot 2011-01-13 at 4.56.59 PM.png

What image format are you using for the texture? Is it possible you are using something that doesn’t preserve the alpha correctly?

tga

using the circle hud package kindly posted here.

http://forum.unity3d.com/threads/42813-Health-Bar-UI/page2?highlight=health+gui

it seems like it needs to be updated. The alpha cutoff works once its been “used” eg soon as it takes damage it goes to the right shape, then when the red gui is changed it goes to the right shape. The black is just used as the background, so it remains a square image. Any reason for iPad to do this?

Also is this method really performance heavy? I was reading that using this alpha cutoff is very bad for performance, but the topic I read that was referring to using it as fog.

Hmm I guess nobody knows what the issue is :frowning: