VMTs? Glows? Need help.

Discussion in 'Mapping Questions & Discussion' started by 404UserNotFound, Feb 22, 2011.

  1. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    So lately I've gotten into reskinning. I've been using Photoshop CS5 Extended for the graphical aspect, and Notepad++ for the VMT related aspects.

    So far I've made 2 reskins;
    - Blue Fists of Steel (replaces the grey fists for the BLU team)
    - Gilded Machete/Kukri (I also converted the default w_machete.mdl file into w_gildedmachete.mdl for my server, for use with the Give Weapon plugin)

    I already know how to use $selfillum in a VMT, alongside adding white areas to the Alpha layer of a VTF file to make it glow somewhat, but I want to make a weapon reskin along the lines of an Energy Sword (eyelander reskin).

    What I want to do is make the blade look transparent, but have the hilt be solid. As well, I want to add a visible glow to just the blade area.

    Are there any other things I can place in the skins VMT file, similar to selfillum, that will create a visible glow?

    Also, I was looking at tf\materials\lights\Ibeam_light01.vmt, and saw "$selfillumtint" "[.46 .9 .77]".

    What are those numbers? RGB values? I punched them into MS Paint and the color was purple, yet the VMT is for a light source. Surely the light can't be purple.
     
  2. Ravidge

    aa Ravidge Grand Vizier

    Messages:
    1,544
    Positive Ratings:
    2,492
    actual glowing is kinda impossible to my knowledge. There are no emissive materials like there are in Unreal.

    And that [.46 .9 .77] is not a rgb value. I'm sure someone will come along and explain it in detail soon enough.
     
  3. Exist

    Exist L6: Sharp Member

    Messages:
    306
    Positive Ratings:
    112
    The values are colors according to the VDC


    $selfillumtint "[<red float> <green float> <blue float>]"
    Adjusts the colour of the self-illumination effect. Default value is "[1 1 1]".

    Read up here-
    http://developer.valvesoftware.com/wiki/$selfillum

    Now on the question of creating a glow effect, your best bet might be using a particle field, as that's how VALVe achieves the glow crits have.
     
    Last edited: Feb 22, 2011
  4. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    Ahhh...I'll check that link out for sure.

    But for now, I guess I'll stick with using $selfillum, and fiddling with the $selfillumtint.

    Thanks guys :D
     
  5. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    294
    .46 .9 .77

    you might've typed it in wrong, it wouldn't be purple with almost 100& green in it, more likely yellow.
    purple would be

    .46 .0 .77
     
  6. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,213
    Yeah, .46 .09 .77 is purple.