Blender... How to export

Discussion in 'Mapping Questions & Discussion' started by HellJumper, Jan 28, 2010.

  1. HellJumper

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    Hey guys,

    So I recently decided I wanted to make a custom hat, so I went into blender, did my thing and all, imported the tga for texture, and made the vtf/vmt files. My question to you all is where do I go from there? I am really confused, and I really want help with this.

    If someone could please answer me in a step by step format of how I can get to where I am now to getting the model fully exported and working in-game, I would greatly, greatly appreciate that.

    Thank you
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    1. Get this guy's plugin for blender:
    2. http://www.facepunch.com/showthread.php?t=734991
    3. Export your model as an SMD
    4. Make yourself a .bat file with the code below in the same folder as all of your files
    5. Make your .qc without the use of the cd instruction (cdmaterials is still needed)
    6. Create all the folders you need in tf/models/ since studiomdl.exe wont make folders and will just cry at you if the folders aren't there
    7. Put your material VMTs and VTFs in the right materials folder
    8. Drag+drop your .qc onto the bat file (make sure that the most recent SDK that was run was your account and the game you're compiling to otherwise studiomdl.exe will either cry about missing folders or put them in the wrong game's directory
    9. Read the log, should be largely error free, press any key to close it
    10. Open the prop in modelviewer/hammer/ingame
    11. ???
    12. Profit

    Code:
    "%sourcesdk%/bin/orangebox/bin/studiomdl" "%1"
    pause
    EDIT: Step 11 most likely involves ditching blender ;)
     
    • Thanks Thanks x 1
  3. HellJumper

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    Thanks a lot Ym, but I have one question. Someone told me that Valve already gave us decompiled versions (smds) of the player models in this folder: C:\Program Files\Steam\steamapps\(your username)\sourcesdk_content\tf\modelsrc\player

    The problem is, I can't find them, and I don't want to go through the hastle of making a hat, exporting it and then figuring out that it is 3x bigger than the demoman, for instance. Any help on where I find decompiled versions of the player models? (or just the mdls so I can decompile myself)

    Edit: Oh can you also tell me what you mean by "all the folders I need in the tf/models folder"? I was under the impression that all you needed for a functioning model was the following: vtf, vmt, qc, and the exported smd. I keep getting this error: [​IMG]

    Finally, is there a cheaper way to get 3dsmax? Frankly... I don't have 3k to just spend willy nilly. :(
     
    Last edited: Jan 29, 2010
  4. Nutomic

    Nutomic L11: Posh Member

    Messages:
    888
    Positive Ratings:
    177
    Last edited: Jan 29, 2010
  5. Dr. ROCKZO

    Dr. ROCKZO L8: Fancy Shmancy Member

    Messages:
    580
    Positive Ratings:
    159
    Haha, Nutomic, don't go down that path, you'll get shouted at. Youme had a model made for him in XSI Mod Tool for Hoodoo, and when Valve bought the map he all of a sudden had a bunch of extra legal issues to deal with because of it (copyrights and such.)
     
  6. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    You either need to change your \ and / so they match or like I said, you've not made the folders.

    if you're exporting a model to tf/models/props/ then that folder MUST EXIST before you compile the model. otherwise it will just cry like I said, and like the error you're getting.
     
  7. HellJumper

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    the folder does exist, with the vmt and the vmf inside of it. But I still get the error.
     
  8. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    No no you need tf/MATERIALS/models/props/ for your MATERIALS and you need tf/MODELS/props/ for your PROPS which are made by that compile process.