make glass

Discussion in 'Mapping Questions & Discussion' started by zenarium, Jul 27, 2012.

  1. zenarium

    zenarium L2: Junior Member

    Messages:
    82
    Positive Ratings:
    2
    Hello,

    I searched on youtube and tf2 mapping websites but I can't find how to make my own glass texture. I can me other textures, but not this one.

    Could anyone help me?

    The glass texture I am using changes color when I shoot and to solve the problem I wan to create my own.

    I want a simple texture, grey glass(transparent) and black edges(not transparent).
     
  2. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,461
    Positive Ratings:
    237
    Not sure it this helps

    Go you you local art supply store and:
    - get yourself a coloured gel - one that you like
    - shoot a picture of it against a white back ground
    - import into photoshop make it transluscent
    - import into your texture porgarm
    - import in into hammer

    and test it out
     
  3. zenarium

    zenarium L2: Junior Member

    Messages:
    82
    Positive Ratings:
    2
    I created a translucent image but it still doesn't work.
     
  4. EArkham

    aa EArkham Necromancer

    Messages:
    1,568
    Positive Ratings:
    2,185
    I don't think you really need to take a photo of gel or anything. Just use the Clouds filter in Photoshop if you have it, or google any number of "photoshop glass" tutorials.

    You need to have an alpha channel in the vtf file you create. Alpha will be greyscale. Black should be fully transparent, while white is fully opaque. You would have your frame in white (non-trans) and the window glass part in some very dark grey, but not black. If you're using the Photoshop vtf plugin, bear in mind that it doesn't correctly save an alpha channel from an image with multiple layers. You'll have to open up the vtf again and paste in the alpha sometimes.

    Make sure your vmt uses $translucent 1 (you can not use $alphatest as that's all or nothing).

    https://developer.valvesoftware.com/wiki/$translucent
     
  5. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,979
    I'm laughing incredibly hard at "take a photo of gel"

    like

    what

    what
     
    • Thanks Thanks x 6
  6. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    There was a guide somewhere that used this method of taking a real life image and applying filters as a way to create TF2 Textures.
     
    • Thanks Thanks x 1
  7. EArkham

    aa EArkham Necromancer

    Messages:
    1,568
    Positive Ratings:
    2,185
    Kill_the_bug said it! lol

    You mean this tutorial for making TF2 from RL photos? I don't think this is a really good way of doing it. I've tried to use this method before and honestly it looks about a bazillion times better doing it by hand with a square rough-edged brush.
     
    • Thanks Thanks x 1
  8. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,979
    Yeah, that looks really horrible
     
  9. zenarium

    zenarium L2: Junior Member

    Messages:
    82
    Positive Ratings:
    2
    I don't understand how should I do it...

    I understand the code I have to make in note pad but not the rest...
    I tried to make the texture in paint, convert the image file using VTFEdit and than do the code... but it doesn't work.
     
  10. EArkham

    aa EArkham Necromancer

    Messages:
    1,568
    Positive Ratings:
    2,185
    Try this tutorial for sprays and see if it helps. It's geared towards Photoshop, but you can probably use Gimp since it supposedly has all the features of Photoshop but is free.
     
  11. zenarium

    zenarium L2: Junior Member

    Messages:
    82
    Positive Ratings:
    2
    I will not have acess to the Internet for a few days, I will try it when I come back.
     
  12. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    I wonder if he means he wants tinted glass that works like real tinted glass, similar to the multiply setting in Photoshop. Can that be done in Source? I thought I've seen glass that works that way in some game before.
     
  13. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,461
    Positive Ratings:
    237
    Glad I could be amusing for once :)