THE GAME CUSTOMIZATION NETWORK: FPSB | RTSB | RPGB |
Help Wanted: Modeller @ Dark Angels Studio's (See All) | SUBSCRIBE
 
 




Advanced v
Added by...




Brought to you by...
Key Authors
modderfreak
Category: CS:S > Skinning
Tags: advanced, vmt, trick, transparency, hacking
Added 2 years ago - last modified 2 years ago
This tutorial will cover how to hack off parts of models through the .vmt trick which are in one texture map. This will allow you to edit models which are enforcing consistency, for example playermodels.
With this method, transparency effects are also possible.


Required


Programs:
  • Photoshop or any other advanced picture editing software

  • WordPad, Notepad or any similar editor

Other:
  • A working, updated CSS installation

  • A model & skin you want to hack off parts

Optional:
  • Source-SDK with Half-Life Model Viewer

  • When using Photoshop, the .vtf plugin will come in very handy



Using the trick


Preparing
  • First of all, we need to open the skin we want to edit in our picture-editing software, I will use Photoshop CS3 and Valves default SAS skin for this tutorial.

  • If you have HLMV installed, start it and open the model whose skin you are editing - this will become very handy.



Editing
  • Decide which parts you want to hack off. At this point, it is very important to choose only model parts that have backfaces beneath them or your model will be verbatimly riddled.

  • Search matching parts of the model on the diffuse map. You can use HLMV to find the right places.

  • Now the important part starts: select the skin places with the line tool or any similar tool.
    Refer to screenshot #2.

  • Change to the alpha channel. In there, paint the whole selection black (the rest of the alpha chanell should be white). These parts of the skins will be invisible. Again, you can use HLMV to instantly check your selections - sometimes, you will have to expand your selection by about one pixel because you can still see parts of the hacked-off model part in HLMV.
    Refer to screenshot #3.

  • Note: you can also achieve transparency effects through filling the selection with a greytone instead of pure black. -The darker the grey, the less visible the model part will be.



Saving and .vmt code editing
  • Save your skin in a texture format that uses the alpha channel, for example DXT5 compression.
    Attention: if you save the skin in a texture format that has no alpha channel like DXT1, this will not work!

  • Open up the .vmt file of your skin with your text editor.
    In my case, the default .vmt of the SAS skin will look like this:
    "vertexlitgeneric"
    {
    "$baseTexture" "models\player\ct_sas\ct_sas"
    "$envmap" "env_cubemap"
    "$bumpmap" "models/player/ct_sas/ct_sas_normal"
    "$normalmapalphaenvmapmask" 1
    "$envmapcontrast" 0.3
    "$envmapsaturation" 0.7
    "$envmaptint" "[ 0.36 0.36 0.36 ]"
    }


    We will now add this line to it to activate the transparency effect:
    "$translucent" "1"

    If you don't want to make things transparent, but 100% invisible, you should add these commands to the .vmt to achieve a better outcome:
    "$alphatest" "1"
    "$translucent" "1"

    For all who don't know how to copy and paste, it should look like this:
    "vertexlitgeneric"
    {
    "$baseTexture" "models\player\ct_sas\ct_sas"
    "$alphatest" "1"
    "$translucent" "1"
    "$envmap" "env_cubemap"
    "$bumpmap" "models/player/ct_sas/ct_sas_normal"
    "$normalmapalphaenvmapmask" 1
    "$envmapcontrast" 0.3
    "$envmapsaturation" 0.7
    "$envmaptint" "[ 0.36 0.36 0.36 ]"
    }




You're done. If you followed every step correctly the parts you painted black in the alpha channel will be invisible and the greytones will be transparent ingame.
Screenshot #3 is a compare screen of the SAS model so you can see what I hacked off.
Feedback
Page of 11   1 2 3 4 ... 9 10 11 Next Page
6 months ago
RaptorJe/s/u/s/



Really good tutorial. I'm making a No-stock ak47 as we speak ^^


3p1c w1n ^^
6 months ago



Do I leave the alpha channel visible when I save? If I do it makes the bits a coloured go red... and it dosnt seem to work


Whur the plätzchens at?
8 months ago
serioushans



Posted by modderfreak

Posted by serioushans

On my gign skin it doesnt have a vmt file :|

Every texture in the whole game has a .vmt file.

ok i found it but what do you do with the alphachannel afterwards?

banana phone!
8 months ago



Posted by serioushans

On my gign skin it doesnt have a vmt file :|

Every texture in the whole game has a .vmt file.


Respect is everything.
8 months ago
serioushans



On my gign skin it doesnt have a vmt file :|

banana phone!
9 months ago
Infantry24364



But how do i make the glass spec of my Urban CT invisible?? It doesn't work.


Infantry
9 months ago
Laurin



Does this also work with any textures?


What am i supposed to write here?!
10 months ago
kozla



Thanx allot for tutorials like this Sir :D

Killing Floor FTW!
10 months ago



Posted by LolzMan1325

How do you change to the alpha channel

Have a look at the third screenshot, down at the right is a bar with the tabs "Layers", "Channels" and "Paths". Usually it'll be on "Layers", showing you your layer structure. Simply click on Channels to change to the channels tab.


Respect is everything.
10 months ago
LolzMan1325



How do you change to the alpha channel


Spah grabbin mah PEELZ!!!!
103 records
Page of 11   1 2 3 4 ... 9 10 11 Next Page
Add Feedback
Please provide constructive feedback and adhere to FPSB's Posting Rules.
You cannot post yet! Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login
Assessment
You cannot assess yet! Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login
User Rating [+]
9.8/10
bScore
9.8/10
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Well Written
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Well Written
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Helpful & Well Written