Texture Reflect

Avatar
Skinnycap
79 Posts
Posted Sep 05, 2008
Hello.
I wonder how to make your own texture you make to reflect, like the metal texture in game?
If you know what I mean.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Mek
459 Posts
Posted Sep 05, 2008
Replied 20 minutes later
The reflections are controlled by the material file (vmt). You can look in the metal texture vmt file to see how it is done. I don't understand that much so I cannot provide more information, but I was able to remove the reflections completely in my own shader and used it in my map since two observation room glasses in a 90? angle were glitchy after building cubemaps.
Avatar
Remmiz
631 Posts
Posted Sep 05, 2008
Replied 2 hours later

http://developer.valvesoftware.com/wiki/%24envmap

Put:

$envmap env_cubemap

into your .vmt file.

Note that you also need to create a normal map which defines the reflective amount of the material. The alpha layer of the normal map contains the reflective properties.

Avatar
MrTwoVideoCards
584 Posts
Posted Sep 07, 2008
Replied 2 days later
Also you can specify some more parameters, to make it super reflective, or hardly at all.
Avatar
Skinnycap
79 Posts
Posted Sep 14, 2008
Replied 6 days later

Remmiz wrote:
http://developer.valvesoftware.com/wiki/%24envmap

Put:
$envmap env_cubemap
into your .vmt file.

Note that you also need to create a normal map which defines the reflective amount of the material. The alpha layer of the normal map contains the reflective properties.

It's wokring:D thanks alot!:D
But it's reflect too mucg, is it possible to make to not reflect that much?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Remmiz
631 Posts
Posted Sep 14, 2008
Replied 3 hours later
Create a copy of the texture and add "_normal" to the end of the it. Then in the Alpha 1 layer of this normal map, create a mask to define the reflective amount. The closer to black it is, the less it reflects and the closer to white, the more. I suggest extracting a _normal texture out of the GCFs to take a look for yourself.