Custom Texture Clipping Issue

Discussion in 'Mapping Questions & Discussion' started by Kengon, Jul 17, 2012.

  1. Kengon

    Kengon L1: Registered

    Messages:
    31
    Positive Ratings:
    4
    Hi all,

    I've been loading custom textures into TF2 for ages, but only recently have I run across this problem:

    [​IMG]

    The front texture sometimes gives way to other textures behind it, even though my textures are 100% opaque and not a tool texture or anything.

    Even if I re-texture it with a TF2 official texture, the weird clipping occurs. Changing the camera angle can trick it back into stop the clipping, but at the same time it'll trick other textures into the clipping bug.

    Here's a sample .vmt:

    Code:
    "LightmappedGeneric"
    {
    	"$basetexture" "custom/woodlogbeam"
    	"$surfaceprop" "Wood_Solid"
    	"$translucent" 1
    }
    
    Some of the textures have an alpha channel (all white); some don't. Some of them have the "$translucent" 1 tag, some don't. All of them have 8-bit Aplha, but that shouldn't affect it. One of them has a normal map, but the other don't.
    The clipping happens for all of these textures.

    Any ideas on how to fix this? I've been mapping on and off for years (only more recently for TF2) and I've never seen this before.

    Thanks in advance! :wow:
     
    Last edited: Jul 17, 2012
  2. Hype

    Hype L1: Registered

    Messages:
    11
    Positive Ratings:
    7
    Either when you make your vmt uncheck "translucent" or open up the vmt and cut out the '"$translucent" 1' line.
     
  3. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
  4. Kengon

    Kengon L1: Registered

    Messages:
    31
    Positive Ratings:
    4
    Fixed this, added Alpha channels and removed the Translucent field.

    It's weird that this only happens in TF2.

    Cheers all. :)
     
  5. Hype

    Hype L1: Registered

    Messages:
    11
    Positive Ratings:
    7
    To the untrained eye it can appear to be some kind of clipping. I noticed it when I was testing model textures in the model viewer.
     
  6. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980