Results 1 to 4 of 4

Thread: Image on Screen

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Image on Screen

    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?

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Set materialType=2d
    Colormap = your power-of-2 .tga file e.g.
    precacheShader("killhud");
    hud setShader("killhud");

    Should be enough
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    Loveboy (26th April 2013)

  4. #3
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    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)

  5. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    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/photosho...b64-76c3a.html

  6. The Following 2 Users Say Thank You to Tally For This Useful Post:

    kung foo man (27th April 2013),Loveboy (28th April 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •