Customized blackboard image showing through walls

Discussion in 'Mapping Questions & Discussion' started by [O], Jan 20, 2012.

  1. [O]

    [O] L3: Member

    Messages:
    121
    Positive Ratings:
    19
    Like the title says, my customized blackboard image is showing through walls. You can see them anywhere on the map.

    what I did:

    made a bunch of vmt and vtf [one for the background, one for the water]

    placed them in the materials folder

    applied the background to a regular brush and placed that brush just infront of the blackboard surface

    applied the water water image to a func_brush [i plan on switching it on and off] and placed that slightly infront of my background brush.

    For some reason they show through walls. Anyone have any idea whats going on?

    I suspect it might be some alpha screw up when I created the textures.

    [​IMG]
     
  2. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,993
    Positive Ratings:
    1,237
    can you post the text inside the vmt? It's a material proxy, but I forget which one.
     
  3. [O]

    [O] L3: Member

    Messages:
    121
    Positive Ratings:
    19
    "UnlitGeneric"
    {
    "$basetexture" "blackboard\blackboard_base_cp_damned_a2"
    "$translucent" 1
    "$ignorez" 1
    "$vertexcolor" 1
    }


    Is that what you're asking for?
     
  4. Urban

    aa Urban

    Messages:
    204
    Positive Ratings:
    246
    $ignorez is your problem, its designed for UI materials and so it will render over pretty much everything.
     
  5. [O]

    [O] L3: Member

    Messages:
    121
    Positive Ratings:
    19
    thanks asshat. so what do i have to do exactly? change the value to 0 ?
     
  6. Urban

    aa Urban

    Messages:
    204
    Positive Ratings:
    246
    Is there a reason for it being there in the first place? If not just remove it from the .vmt
     
  7. [O]

    [O] L3: Member

    Messages:
    121
    Positive Ratings:
    19
    I basically just copied all the text from the vmt for the objective screen tutorial.

    It wont break if i remove that line?

    Any other lines removable for that matter? I have no idea what they mean.
     
  8. Urban

    aa Urban

    Messages:
    204
    Positive Ratings:
    246
    Removing $ignorez wont break it no, as for the others go read up on what they do on the Valve Dev Wiki and decide whether you want them there or not.
     
  9. Wander

    Wander L3: Member

    Messages:
    148
    Positive Ratings:
    42
    UnlitGeneric means it won't be affected by lighting and such, you should probably use LightmappedGeneric instead
    I'm not sure what vertexcolor does, but I don't think you need it, and translucent is needed for textures with transparency (not sure if you have that, but it won't hurt keeping)

    So I'd suggest this:

    "LightmappedGeneric"
    {
    "$basetexture" "blackboard\blackboard_base_cp_damned_a2"
    "$translucent" 1
    }
     
    Last edited: Jan 21, 2012
  10. [O]

    [O] L3: Member

    Messages:
    121
    Positive Ratings:
    19

    the texture wouldnt show when i removed the "$ignorez" 1 line.

    it would show again when i returned the line.

    AND heres something else thats strange: when i remove the "$translucent" 1 line it fixed EXCEPT when i look through props...then its showing through props...wierd.
     
    Last edited: Jan 21, 2012