Texture with transparency does not work in Hammer.

Started by rtokuda, December 30, 2020, 01:48:14 PM

Previous topic - Next topic

rtokuda


I watch the video several times and I'm having problems exporting the texture with transparency and the valve hamer doesn't recognize it. The texture is in TGA and I have no idea why it doesn't work.


wallworm

What are the dimensions of your TGA file? The texture compiler requires bitmaps to be standard dimensions (multiples of 2) like 1024x1024, 1024x512, 512x512, etc.

rtokuda


Joris Ceoen

#3
Quote from: rtokuda on December 30, 2020, 04:40:27 PM
It is in the 512x512 dimension
If you're trying to export the textures from 3DS Max to Hammer, make sure that the .vtf's are having at least DXT3 or DXT5 as compression method for the alpha (aka Eight-bit-alpha). You can change this in the bitmap parameters in the Wall Worm Texture Properties rollout (see image). If you don't see this rollout, generate these settings by going to Wall Worm (menu) -> Wall Worm Material -> Give Obj Mats+Tex WW Materials.

You should now see those options and be able to change the compression (DXT3 for 'sharper' alpha's, DXT5 for all other purposes), and then re-export the bitmap and .vmt to overwrite the old settings. For the vmt this means it will now include either $translucent or $alphatest to enable transparancy in Hammer and in-game.

wallworm

One more thing: The same bitmap in the material editor needs to be piped into the Opacity slot of the standard material in order for the VMT exporter to set the $translucent flag.

SMF spam blocked by CleanTalk