Home Gallery Resources The Team Rules chat Login Register
Pages: [1]
Author Topic: How to import models from Valve's Source games.  (Read 2881 times)
0 Members and 1 Guest are viewing this topic.
Oizen
Global Moderator
*****
Offline Offline

Posts: 4953


Thanks

  • Awards King for a Day 128-bit Core Gamer Ceiling Cat >9000

  • View Profile WWW Awards
    « on: January 16, 2012, 06:25:14 PM »



    I've recently figured out how to port models from Valve's source games (Half Life, Team Fortress 2, Counter strike ect.) and a good deal of Garry's Mod model you can find.
    Here's an example of a model I took out of Portal:

    If you want an in-game shot check this out

    Required tools:
    3dsmax 2011
    The SMD importer plugin. The 2010 version works with 2011.
    Steam
    A source game. I recommend Tf2, since its free.
    SourceSDK, you can download this with steam for free if you own one of Valve's major Source Games.
    GFScape Only needed if you're ripping from a game yourself.
    MDLdecompiler
    VTFEDIT for extracting materials.

    Your favorite Hex editor.

    Only read this part if you're extracting a model yourself
    Assuming you already own a Source game for steam, you should have .gcf files located in:
    C:\Program Files (x86)\Steam\steamapps

    Open the game with the model you want in GFScape, I'll be using Portal. If you're using tf2, you're going to have to open team Fortress 2 Materials.gcf Theres two folders you need to be concerned about Materials and Models. Materials contain the textures, while models contain the models.


    First we need to extract the model itself, this may require a little bit of digging around.

    1.Find the model you want and highlight every file with a similar name to your file (.mdl), right click and extract it to whever you want.


    next we'll need the textures, which are usually in a similar path, only in the materials folder, again export all of the files with a similar name to your model.




    This next step may already be done, but its important you check anyway.

    Open your .mdl file in a hex editor and make sure the character I highlighted below is a ",". (Tf2 models are 0 by default)



    Open the mdldecompiler and input your model, and an output path, The model decomplier must be located in:
    C:\Program Files (x86)\Steam\steamapps\*SteamUserName*\sourcesdk\bin\ep1\bin\ for it to work!


    Export your model, and open 3DSmax 2011, and import the ".smd" file the MDLDecompliler makes.


    Now for the textures,  Open the .vtf files with VTFedit, and go File > Export, and chose whatever image format you want. Occasionally, you have to fight with the settings on VTFedit to get the entire texture.


    Apply your texture in 3dsmax, export it as a .dae, and you're good to go.




    I'll do .bsp files (maps) some other time.
    « Last Edit: January 16, 2012, 08:59:59 PM by Oizen™ » Logged

    BriefCasey795
    Supreme Kitten
    ********
    Offline Offline

    Posts: 534


    What does one poot here?

  • Awards Heart Container RAGE!! Tutorial Writer

  • View Profile Awards
    « Reply #1 on: January 17, 2012, 08:33:46 PM »


    oh sweet! now we can have tf2 imports! Cheesy
    Logged

    I'm back after a long while.

    Oizen
    Global Moderator
    *****
    Offline Offline

    Posts: 4953


    Thanks

  • Awards King for a Day 128-bit Core Gamer Ceiling Cat >9000

  • View Profile WWW Awards
    « Reply #2 on: January 17, 2012, 10:00:05 PM »


    oh sweet! now we can have tf2 imports! Cheesy

    Indeed. I've also been experimenting with importing tf2 maps aswell.

    But they're significantly larger in file size, the most promising right now is Watchtower.

    Logged

    BriefCasey795
    Supreme Kitten
    ********
    Offline Offline

    Posts: 534


    What does one poot here?

  • Awards Heart Container RAGE!! Tutorial Writer

  • View Profile Awards
    « Reply #3 on: January 18, 2012, 08:01:57 PM »


    Yea we really need some tf2 stages to go with the tf2 hacks. 2fort looks like a cool place to brawl on. maybe you could brawl on the RED second floor and BLU second floor. Also, i hope someone can do a model import for heavy on ganondorf.
    Logged

    I'm back after a long while.

    JBG
    Semi-Retired Crumudgeon
    Special Access
    *****
    Offline Offline

    Posts: 1280


  • Awards Starstormer Super Saiyan Topic Renowned Hacker Featured

  • View Profile Awards
    « Reply #4 on: March 20, 2012, 02:38:49 PM »


    Here's a good question.

    If you rip a model, is it already rigged?
    Logged


    BriefCasey795
    Supreme Kitten
    ********
    Offline Offline

    Posts: 534


    What does one poot here?

  • Awards Heart Container RAGE!! Tutorial Writer

  • View Profile Awards
    « Reply #5 on: March 20, 2012, 06:47:38 PM »


    Most items only have one bone so basically, yeah. I also have a good question: how do you apply the textures? 3ds max or brawlbox?
    Logged

    I'm back after a long while.

    Pages: [1]
    Print
    Jump to: