Using existing game textures on custom models?

Discussion in 'Mapping Questions & Discussion' started by Mic, Sep 9, 2008.

  1. Mic

    Mic L1: Registered

    Messages:
    48
    Positive Ratings:
    12
    I have a few models that I want to use existing TF2 textures on. Is there a way to use existing textures located in the "team fortress 2 content.gcf" on my models?

    Thanks in advance :)
     
  2. 3DRyan

    3DRyan L2: Junior Member

    Messages:
    57
    Positive Ratings:
    6
    So, you have untextured, custom models that you would like to use existing valve textures on? You could just bring your model into hammer and browse for the various textures and apply it that way. Just remember that textures that start with "models/_____" are meant for models, not brushes and vice versa. Not sure if you know how to get models into hammer or not, so here's a tutorial on that:

    http://forums.tf2maps.net/showthread.php?t=838&highlight=custom+prop


    Hope this helps!
     
  3. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    294
    Yeah, it is very possible.

    You'll have to write a .vmt (?) file that declares which texture to use and which properties it has.

    I have done several custom wood props and just used the base wood textures.
    The only difference between the model textures and the terrain textures are lighting declarations in the vmt file. So all the building objects actually use the same texture and the terrain textures you use in the editor, but they are vertex lit. Vertex lighting doesn't work on terrain and makes those tetxtures turn black or full bright depending on how you look at them.

    There is a 'complete guide to importing custom models' tut in the tut section. Look at that for vmt info.
    Oh, looks like 3d ryan has the link up there. /\
     
    • Thanks Thanks x 1
  4. Mic

    Mic L1: Registered

    Messages:
    48
    Positive Ratings:
    12
    Awesome, thanks fellas! Both of your post pointed me in the correct direction. I already went over the tutorial you linked. The part I was missing was that I had to create a custom VMT file pointing to the texture I wanted to use.
    Code:
    "VertexlitGeneric"
    {
    	"$basetexture" "Brick/brickwall001"
    }