custom texture issue: overlay with reflection

Discussion in 'Mapping Questions & Discussion' started by Malcolm, Jun 7, 2009.

  1. Malcolm

    Malcolm L3: Member

    Messages:
    123
    Positive Ratings:
    25
    Hi

    I have edited and heavily modified Valve's puddle-overlay from hl2 to fit into my rain-themed tf2-map. I had to change most parts of the vmt in order to achieve a functional overlay with proper (cubemap-)reflection, but after spending 2 hours on it, I finally managed to get the overlay in tf2.

    Now my problem: as long as I have only one env_cubemap in the map, the puddle-overlay keeps showing the right cubemap. But when I place another in the far end of the map, the overlays start showing the reflections of the last placed env_cubemap. I tried to assign the cubemaps to the brushes the puddles are on, but this didn't help.

    Here the content of the overlay's vmt:

    "UnlitGeneric"
    {

    "$basetexture" "custom/mirage_puddle001a.vtf"
    "$envmap" env_cubemap
    "$translucent" "1"
    "$decal" 1
    "$decalscale" 0.25
    "$envmaptint" "[ 1 1 1 ]"
    "%keywords" "tf"
    }

    I hope someone will guide me to the solution of the stupid, mind-hacking problem.
     
  2. Vigilante212

    Vigilante212 L7: Fancy Member

    Messages:
    481
    Positive Ratings:
    33
    Did you buildcubemaps after you placed them?
     
  3. Malcolm

    Malcolm L3: Member

    Messages:
    123
    Positive Ratings:
    25
    Yes, I did. I have another reflective custom texture in my map as well as water, and bother work properly (they have the right cubemaps assigned), so I guess it's something wrong with this puddle-texture.