I am trying to make parts of an image which covers the screen with a HUDSprite transparent, using alpha.
But I do not succeed. See screenshot. How can it be done?
Currently I use a jpg image (tried .png) made in photoshop. In the MaterialLibrary I have tried different settings, but only blendingmode Modulate makes it somewhat transparent, but the whole image becomes transparent.
Hi Daniel, this is how you must set the material :
Becarfull when you make your picture, keep in mind Black (RGB : 0,0,0 / or RGBA : 0,0,0,255 ) is always transparent. So for your two radiocontrol you need to fill with a value a little bit up to black (rgb : 5,5,5)
Hi gents!
I am trying to make parts of an image which covers the screen with a HUDSprite transparent, using alpha.
But I do not succeed. See screenshot. How can it be done?
Currently I use a jpg image (tried .png) made in photoshop. In the MaterialLibrary I have tried different settings, but only blendingmode Modulate makes it somewhat transparent, but the whole image becomes transparent.
Thanks for any hints!
Cheers
Hi Daniel Have you tried in the material to set Texture-->ImageAlpha property to tiaAlphaFromIntensity and TextureMode to tmBlend
You can also try to play with AlphaChannel property in GLHudSprite
PS : For Alpha use PNG or TGA not JPG
Hi Jerome!
Thanks for the answer! Still cannot make it happen.
Maybe something is wrong with my .png.
Can you make transparency work with this image?
Hi Daniel, this is how you must set the material :
Becarfull when you make your picture, keep in mind Black (RGB : 0,0,0 / or RGBA : 0,0,0,255 ) is always transparent. So for your two radiocontrol you need to fill with a value a little bit up to black (rgb : 5,5,5)
I've made some little change with gimp
And this is the result
Cheers
Jérôme
Last edit: Jerome.D (BeanzMaster) 2019-01-31
Awesome!
Thanks Jerome!