1. Hey Guest, welcome to the new forums. Be sure to check out this thread to get all the information you need on the cool new stuff!

[TUTORIAL] Menu Photos

Discussion in 'Tutorials & Resources' started by Swift, Nov 19, 2007.

  1. Swift

    Swift Guest

    How to create the Menu Photo's seen displayed on the right side of the Map Objective screen on Map Start.

    END RESULT ctf_example Menu Photo's: :cool:

    [​IMG]

    For this tutorial you will need to have some basic knowledge of Photoshop. And I made a ctf_example you can download at the bottom of this Tutorial.

    In order for your custom map to have 2 working Menu Photo'sit needs 2 files in following directory:
    C:\Program Files\Steam\steamapps\<player_name>\team fortress 2\tf\materials\vgui\maps
    These 2 files are:
    menu_photos_mapname.vtf
    menu_photos_mapname.vmt

    --------------------------------------------------------------
    -- How to create the .vtf
    --------------------------------------------------------------

    I. Making a .tga image
    II. Vtex Preparation
    III. Transforming the .tga image to a .vtf


    I. Making a .tga image

    Step 1:
    Take 1, 2 or 3 screenshots of your map depending on how many you want to show.
    Just make sure they will still look good on a 512x512 tga. (Step 2)

    Step 2:
    Photoshop: create tga:
    * create a 512x512 pixels TGA.
    * give it a black background
    * resize your 2 screenshots and paste them in to make something nice.
    (You can use one of the Menu Photo Template PSD's I made to make Menu Photo's like VALVe's maps have. Download at the bottom of this Tutorial.)
    * edit the Alpha channel to make it hide the black background and show the pictures only
    * Save As... menu_photos_mapname.tga (32 bit, uncompressed)

    Step 3:
    Copy and paste your "menu_photos_mapname.tga" in following directory:
    C:\Program Files\Steam\steamapps\<player_name>\team fortress 2\tf\materialsrc


    II. Vtex Preparation
    We will create a vtf from the tga using vtex.exe. Let's setup the vtex.exe!

    Step 4:
    Browse to the following directory and make a desktop shortcut of the vtex.exe:
    C:\Program Files\Steam\steamapps\<player_name>\sourcesdk\bin\orangebox\bin

    Step 5:
    Go Properties on the vtex.exe shortcut:
    Add the following 2 parameters behind the Target:
    -game "C:\Program Files\Steam\steamapps\<player_name>\team fortress 2\tf"
    -nop4

    III. Transforming the .tga image to a .vtf

    Step 6:
    Now drag your tga you created (Step 3) onto the vtex.exe deskopt shortcut (Step 5). The vtex.exe will create a menu_photos_mapname.vtf in the following directory:
    C:\Program Files\Steam\steamapps\<player_name>\team fortress 2\tf\materials

    menu_photos_mapname.vtf CREATED!


    --------------------------------------------------------------
    -- How to create the .vmt
    --------------------------------------------------------------

    Step 1:
    open notepad

    Step 2:
    paste these lines of code in it:

    Code:
    "UnlitGeneric"
    {
    	"$basetexture" "vgui\maps\menu_photos_mapname"
    	"$translucent" 1
    	"$ignorez" 1
    	"$vertexcolor" 1
    }
    
    Step 3:
    Replace 'mapname' in "$basetexture" "vgui\maps\menu_photos_mapname" with the name of your custom map.
    Example: "$basetexture" "vgui\maps\menu_photos_ctf_2fort"

    Step 4:
    Save As... menu_photos_mapname.vmt

    menu_photos_mapname.vmt CREATED!

    --------------------------------------------------------------
    -- Place .vtf & .vmt in propper directory
    --------------------------------------------------------------

    Cut and past your "menu_photos_mapname.vtf" and "menu_photos_mapname.vmt" in following directory:
    C:\Program Files\Steam\steamapps\<player_name>\team fortress 2\tf\materials\vgui\maps

    If you correctly edited the Alpha Channel of your tga and did all the other Steps like mentioned, your 2 map screens will be displayed on the Objective Screen on Map Start!

    Download Menu Photo's Tutorial
    Download Menu Photo's Template PSD's

    Cheers! :thumbup1:
     
    Last edited by a moderator: Nov 19, 2007
    Nineaxis, FaTony, daemon and 5 others thanked this.
  2. Snipergen

    Snipergen L13: Stunning Member

    Messages:
    1,013
    Thanks Received:
    150
    this is awesome, gonna use it in 4 weeks when my map nears completion. :p

    sticky please!

    and, thanks for your time in this man
     
  3. drp

    aa drp

    Messages:
    1,885
    Thanks Received:
    2,424
    amazing stuff swift. goodwork :)
     
  4. Swift

    Swift Guest

    Sure thing! Thanks for the acknowlegdements. :)

    I do have to put out some credit to S.E.A.L. #555 for helping me out quiet a bit over chat. I was kind of new to all the custom textures stuff. So I figured, let me share, we need a tutorial like that!

    I also want to put out I resized my 2 PrtScr screenshots to about 285x220 to be able to transform them (rotate, etc.) to fit the little frames.

    Also, cl_drawhud 0 disables your HUD to take nice screenshots.
     
  5. spaceweasels

    aa spaceweasels

    Messages:
    217
    Thanks Received:
    328
    Some great info here. Thanks Swift.
     
  6. MacBeth [O.C.Reg]

    MacBeth [O.C.Reg] L1: Registered

    Messages:
    8
    Thanks Received:
    2
    Additional info:

    If you use Nem's tools i.e. VTFEdit to make your VTF (instead of vtex), then make sure the "No Mipmap" and "No Level Of Detail" flags are ticked when you save it, or the pictures may (will?) show up at low res.
     
    heyyou and GrimGriz thanked this.
  7. Hey, how do you edit the info alongside the pics?
     
  8. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Thanks Received:
    1
    how do u edit the alpha channel in PS to make it hide the black and show only the pics?
     
  9. Termaximus

    Termaximus L5: Dapper Member

    Messages:
    218
    Thanks Received:
    32
    Help Please!

    I followed steps to the T. I tried both using vtex.exe and the vtf plugin for photshop being sure to check no mipmaps and no level of detail for .vtf. I created .vmt also as directed and put along with .vtf in the materials/vgui/maps directory and this is what I get.

    [​IMG]
     
  10. Snipergen

    Snipergen L13: Stunning Member

    Messages:
    1,013
    Thanks Received:
    150
    sure you named them right? menu_photos_2skyscraper_b3?

    And when you save as vtf in photoshop just select compressed texture.
     
  11. Termaximus

    Termaximus L5: Dapper Member

    Messages:
    218
    Thanks Received:
    32
    I'm pretty sure I did that, will double check.
     
  12. Nosher

    Nosher L4: Comfortable Member

    Messages:
    182
    Thanks Received:
    20
    Did you fix it??

    I have the same problem....

    Cheers
    Nosh.
     
  13. Termaximus

    Termaximus L5: Dapper Member

    Messages:
    218
    Thanks Received:
    32
    No, have not fulled around with it as I have been extremely busy. If I figure out the problem I will post the solutio in this thread.
     
  14. TotalMark

    TotalMark L6: Sharp Member

    Messages:
    323
    Thanks Received:
    39
    Make sure the .vmt has the filename exactly, you could be one character off and not realize it.
     
  15. YM

    aa YM LVL100 YM

    Messages:
    6,328
    Thanks Received:
    4,720
    Just followed this tutorial and its great :D I know that swift probably doesnt come through here anymore, but this deserves my praise non the less.

    Termaximus did you ever get it to work in the end?
    if not post what you've got in your .vmt as thats likely the problem
     
  16. Bonafide

    Bonafide L6: Sharp Member

    Messages:
    308
    Thanks Received:
    25
    Good tutorial but its pretty long winded. Photoshop can make VTF's with a simple plug in so there is no need for a 3rd party application. Also all the folder swapping is unnecessary. It makes it appear more complex than it really is.
     
  17. jack_wade

    jack_wade L1: Registered

    Messages:
    5
    Thanks Received:
    0
    Nice tutorial!

    And... if you wanna upload your map into a server or give it to your friends, do you have to send them those separate files (menu_photos_mapname.vtf and menu_photos_mapname.vmt) and ask them to copy and paste in their materials\vgui\maps or there is a way to include them in the mapname.bsp file?

    Thanks!
     
  18. YM

    aa YM LVL100 YM

    Messages:
    6,328
    Thanks Received:
    4,720
    Jack, can I direct you to this?....PAKRAT

    (a very usefull tool!)
     
    jack_wade thanked this.
  19. jack_wade

    jack_wade L1: Registered

    Messages:
    5
    Thanks Received:
    0
    Thanks a lot, Youme!

    And, of course thanks too to Swift for this useful tutorial!