PDA

View Full Version : Image on Screen



Loveboy
26th April 2013, 18:23
Hi Guys,
I have a new image, i want this in the screen of my server.
Its a Kill Hud, if you kill somebody a picture will come on your screen.
I have do all with kill and a image will come, but which material settings
i should use for image on screens?

kung foo man
26th April 2013, 18:37
Set materialType=2d
Colormap = your power-of-2 .tga file e.g.
precacheShader("killhud");
hud setShader("killhud");

Should be enough :)

Loveboy
27th April 2013, 17:42
Thank you kung, but i have the problem, if i make a alpha textur of the image, the background will be black.
The Image is 100% Alpha texture, but i think not good material typs.

But the image will show on screen (black background)

Tally
27th April 2013, 18:35
Set materialType=2d
Colormap = your power-of-2 .tga file e.g.
precacheShader("killhud");
hud setShader("killhud");

Should be enough :)

The principle of alpha channels - technically called "masks" - is that black will obscure your image, whereas white will let it show through. If you are seeing a black background you simply need to flip the black area for white, and white areas to black.

Here is a basic tutorial on using alpha masks/channels in Photoshop:

http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-76c3a.html