Reflective Ice Texture?

Cyberen

L3: Member
Mar 30, 2021
143
30
So I know about func_reflective_glass and made a few mirrors. But I'm hoping to create a texture that acts just like reflectiveglass001.vmt (see below) but only halfway, the other half is white (or a whiteish streak texture, see attached). That will give it an icy surface look. What will also make this difficult is that I'm placing them on circular platforms above a plane of cheap water.

In my attempts, the plain mirror texture works fine, but any alteration makes the texture either see-through or pure white. If anyone can figure this out (or suggest a material that just reflects an accurate cubemap) please let me know!

VMT of reflectiveglass001 below:

Code:
"lightmappedreflective"
{
    "%tooltexture" "dev/flat_normal"
    "$refracttexture" "_rt_WaterRefraction"
    "$refractamount" "0"
    "$refracttint" "[.5 .5 .6]"

    "$reflecttexture" "_rt_WaterReflection"
    "$reflectamount" "0"
    "$reflecttint" "[1 1 1]"

    "$fresnelpower" "0"
    "$minreflectivity" "0.8"
    "$maxreflectivity" "1.0"
   
    "$normalmap" "dev/flat_normal"

    "$surfaceprop" "glass"
    "$bumpframe" "0"
}
 

Attachments

  • icetop.png
    icetop.png
    580 bytes · Views: 146

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,699
2,581
Depending on how picky you are about reflection accuracy, there have definitely been (cubemap-based) ice materials submitted to the downloads section before. However, the search bar appears to be broken now and just returns the whole list of all textures when I type in "ice", so you'll just have to root through everything.
 

Cyberen

L3: Member
Mar 30, 2021
143
30
I saw it, and it wasn't the effect I was hoping for. Probably because the console says I can't build cubemaps with any of the skyboxes. I looked around, couldn't find a solution for it.

I found a way to combine the texture with the reflection. It's not perfect, see the post below.

Code:
"lightmappedreflective"
{
   "$basetexture" "mario_kart_64/icesurface"
   "%tooltexture" "mario_kart_64/icesurface"
   "$refracttexture" "_rt_WaterRefraction"
   "$refractamount" "0"
   "$refracttint" "[1 1 1]"

   "$reflecttexture" "_rt_WaterReflection"
   "$reflectamount" "0"
   "$reflecttint" "[1 1 1]"
   "$reflectance" "1"
   "$envmapmask" "mario_kart_64/icesurface"

   "$fresnelpower" "0"
   "$minreflectivity" "0.4"
   "$maxreflectivity" "1"
   
   "$normalmap" "dev/flat_normal"

   "$surfaceprop" "glass"
   "$bumpframe" "0"
}
 
Last edited:

Cyberen

L3: Member
Mar 30, 2021
143
30
Okay, so I got it working (mostly, see post code above) but the problem is that it flickers in showing what's across from it instead of what's parallel to it. See the image.

Any way to get the flickering to stop or at least make it show the skybox?