Blender Source Tools doesn't export qc?

Discussion in 'Mapping Questions & Discussion' started by KubeKing, Mar 9, 2015.

  1. KubeKing

    aa KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,211
    Positive Ratings:
    1,374
    Recently, I've been trying to export my first model using Blender's Source Tools, but I've run into an issue that I can't seem to resolve. When I export my model using the Tool, I can only get the .smd model to export and not the .qc file, which I need to compile a .mdl (right?). Here's a screenshot:

    [​IMG]'

    I've scoured for solutions, but none have popped up. Pls hlp :crying:
    I'll provide more information if needed. Thanks in advance!

    -Kube
    #arctichype
     
    Last edited: Mar 9, 2015
  2. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    You write the qc file yourself.

    It's not hard, they pretty much all have the same contents:

    Code:
    $modelname my_models/ZZZ.mdl
    $cdmaterials "models/my_models/"
    $scale 1
    $surfaceprop metal
    $staticprop
    $body monitor "ZZZ.smd"
    $sequence idle "ZZZ" fps 1
    $collisionmodel "ZZZ_collision.smd"
    {
    	$concave
    }
    
    Just replace the filenames and change cdmaterials to wherever you put your model's textures.

    Check the valve developer wiki for the function of each of those commands.
     
    • Thanks Thanks x 1
  3. KubeKing

    aa KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,211
    Positive Ratings:
    1,374
    Alright - After a bunch of tweaking and advice-following, this is what I came up with:

    [​IMG]

    At the moment, I don't have the time to actively search for a solution to the missing textures, but if anyone would help further with this issue, that would be extremely appreciated. Here's my current .qc:

    Code:
    $modelname	"props\gascanister1.mdl"
    $scale		20
    $body mybody	"gascanister1.smd"
    $staticprop
    $surfaceprop	combine_metal
    $cdmaterials	"models\props"
    
    $sequence idle	"gascanister1.smd"
    
    $collisionmodel	"gascanister1.smd" { $concave }
    I'm probably just not doing something, but again, I can't focus on this right now. If no one posts here between now and when I come back to the thread, I'll look for the solution myself. So, without further adieu, thanks in advance!

    Edit: Just took a closer look at the post above by xzzy. Is there way to export textures made in Blender to a folder? If so, that would probably lead directly to the solution.
     
  4. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    Yes, F3 can be used in blender to export an image. If you have the image visible in the image viewport one of the menus has an export option too.

    Blender defaults to png, so be sure to change than to tga. Then drag the tga over the top of vtex.exe.
     
  5. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    931
    Positive Ratings:
    894
    I hope you actually know what UV mapping is.


    Wait, people still use vtex?
     
  6. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    It's a hell of a lot faster to drag a file on top of an exe than faffing about in vtfedit's crappy gui.

    vtex automatically dumps the vtf in the right spot too, which is a nice perk. Navigating directory trees in Windows' file save dialog boxes is a massive time waster.
     
  7. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    998
    Positive Ratings:
    1,135
    Make sure your .vtf and .vmt files are actually in that materials directory, and that the .vmt is written correctly. These are the basic required commands your .vmt needs:

    Code:
    "VertexLitGeneric"
    {
    	"$basetexture" "models/props/texture" //leave off .vtf extension
    	"$model" 1
    	"$surfaceprop" "rock"
    }
     
  8. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    931
    Positive Ratings:
    894
    Thats actually exactly how I use VTFEdit.
    Drop file on the exe,
    hit ok (or change options if i need something specific),
    save (having to name the thing is the only annoying part),
    drag file from desktop to anywhere.
     
  9. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    vtex.exe only needs the first of those four steps though.

    Why bother with a gui when all it does is add more shit to click on?
     
  10. Pocket

    aa Pocket func_croc

    Messages:
    4,480
    Positive Ratings:
    2,212
    VTEX is also the only way to get the default NICE rescaling method for mipmaps, because Nem is a dope.