How to make certain textures not use cubemaps and not reflect?

Discussion in 'Mapping Questions & Discussion' started by Jerma, Apr 4, 2019.

  1. Jerma

    Jerma L1: Registered

    Messages:
    5
    Positive Ratings:
    0
    My map requires cubemaps for reflection in some areas, but there are areas in my map where I don't need reflection that ends up having reflections because of the cubemap entity closest to it. How can I stop this from happening without changing the texture completely?
     
  2. iiboharz

    aa iiboharz eternally tired

    Messages:
    810
    Positive Ratings:
    1,162
    Make a box outside your map with the inside textured with tools/toolsblack, place a cubemap entity directly in the middle and then use the brush faces selection in the env_cubemap to manually assign it to any brushes you don't want to have a cubemap/reflections.
     
    • Like Like x 2
    • Thanks Thanks x 1
  3. Berke

    Berke L2: Junior Member

    Messages:
    60
    Positive Ratings:
    25
    Or you can just make a custom vmt.
     
    • Like Like x 1
  4. Werewolf

    Werewolf Probably not a real Werewolf

    Messages:
    872
    Positive Ratings:
    278
    To elaborate on what E X T R A S U C C said, the key here is to remove the $envmap parameter from the .vmt of the texture you're using.

    For example, your .vmt file might look something like this:
    Code:
    "LightmappedGeneric"
    {
       "$basetexture" "metal/metal_001"
       "$envmap" "env_cubemap"
       "$surfaceprop" "metal"
       "%keywords" "tf"
    }
    If we remove the $envmap parameter from it, the texture will no longer look for and use any reflections to apply.
    Code:
    "LightmappedGeneric"
    {
       "$basetexture" "metal/metal_001"
       "$surfaceprop" "metal"
       "%keywords" "tf"
    }
    If the texture you're using is a stock one (meaning it's one that comes with TF2 when you download it), then you can extract the .vmt file for any texture by using GCFscape. There are guides on how to do that so I'll let you search for them yourself.
     
    • Like Like x 2
    • Thanks Thanks x 1
    Last edited: Apr 5, 2019