Jump to content

How do you add see-trough spots in textures?


Recommended Posts

Posted (edited)

I want to make my own see-trough textures, but I can't seem to figure out how they are made. I've tried using a alpha channel and making the spots i want to be see trough black but that doesn't work.

lafHHxj.jpgUEJKSld.png

 

Edited by Endritv
Posted (edited)

To do this, yes you can just paint the spots out in an alpha channel, or you can just erase the parts from the main texture, and leave a transparent background.

mN6OVw4.png

 

I'm assuming by "not working", the material just seems to be incorrectly / not displaying the transparency in game, if this is the case, you can follow this little guide.

1) Export your texture as a .png (it doesn't have to be png, anything that supports transparency.)

2) Using VTFEdit, import the texture using these parameters:

bgSMXDk.png

3) Once you have created the VTF and VMT through VTFEdit, add "translucent" 1 to the vmt 

BGUgKJq.png

$translucent can cause some issues, and if the material doesn't fade from solid, to partially transparent to transparent, you should use $alphatest instead. This works well where materials have clean cut holes into them, like the image you posted from nuke.

r2SbXLR.png

 

And here is an image from VDC explaining the problems with translucent

Translucent2p.png

 

Hope this helps!

Edited by Terri
*Expanded in case others fall onto this for help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...