Custom poster overlay troubles

Discussion in 'Mapping Questions & Discussion' started by 404UserNotFound, Feb 16, 2011.

  1. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    From: http://forums.tf2maps.net/showpost.php?p=217255&postcount=107

    So I followed the guide on how to make custom poster overlays.

    I made 2 custom posters, both 512x512 awhile back and saved them as PNGs. I recently went back, loaded them up, made some changes and saved it as a TGA.

    Converted them to VTF's, created the VMT files and placed the files in both the Source SDK content's materialsrc folder, and in tf/materials.

    Upon loading up Hammer and finding the custom poster overlays I made, they're nothing but pink/black checkerboards.

    What did I do wrong? Was I supposed to just save them as TGAs and add some sort of alpha layer or something?

    I didn't see anything about adding alpha layers or anything in the tutorial.
     
  2. Godslayer57

    Godslayer57 L8: Fancy Shmancy Member

    Messages:
    573
    Positive Ratings:
    221
    Are you sure that in the VMT they are named and placed correctly like :

    "$basetexture" "folder/texturename"

    ?
     
  3. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    VMT Contents
    Code:
    "LightmappedGeneric"
    {
    "$basetexture" "signs/SignSappingBlue.vtf"
    "$decal" 1
    "$decalscale" 0.25
    "$translucent" 1
    "%keywords" "tf"
    }
    I figured just using "signs/" should cover it because I've got the sign VMT's and VTF's in both:

    sourcesdk_content\tf\materialsrc\signs
    team fortress 2\tf\materials\signs
     
  4. Wander

    Wander L3: Member

    Messages:
    148
    Positive Ratings:
    42
    you shouldn't include the ".vtf" in the basetexture

    "$basetexture" "signs/SignSappingBlue.vtf"
    becomes
    "$basetexture" "signs/SignSappingBlue"
     
  5. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    Alright, so I removed the .VTF, and my 2 signs show up in Hammer. However....

    [​IMG]

    Wat do? How I get rid of white side?
     
    Last edited: Feb 16, 2011
  6. Godslayer57

    Godslayer57 L8: Fancy Shmancy Member

    Messages:
    573
    Positive Ratings:
    221
    You can use your editing program to create a 512*512 area that is transparent then cut what you want from the old poster and paste onto the new area and make that into a .vtf as transparency makes everything else that isn't used to be transparent when placed.
    Gimp is an ideal free program as you can create the transparency pretty easy.
     
  7. 404UserNotFound

    404UserNotFound No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    225
    Positive Ratings:
    55
    Yeah but why use Gimp when you have Photoshop CS5 Extended? ;)
     
  8. Huckle

    Huckle L4: Comfortable Member

    Messages:
    150
    Positive Ratings:
    87
    If you want an ugly fix, just change EndU or EndV (don't remember which is which) to a number lower than 1, testing different settings until you got the right side cut off.

    It's not the "right" way to do it but it's the only way I can get the official door overlays to not have a black border on one side.