Blender Source Tools doesn't export qc?

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
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:

Untitled.png
'

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:

xzzy

aa
Jan 30, 2010
815
531
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.
 

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
Alright - After a bunch of tweaking and advice-following, this is what I came up with:

2015_03_09_00002.jpg


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.
 

xzzy

aa
Jan 30, 2010
815
531
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.
 

xzzy

aa
Jan 30, 2010
815
531
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.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
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 }

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"
}
 

Tumby

aa
May 12, 2013
1,084
1,192
It's a hell o blabla appy gui. vtex automatic blabla the right spot too, w blabla e time waster.

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.
 

xzzy

aa
Jan 30, 2010
815
531
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?
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
VTEX is also the only way to get the default NICE rescaling method for mipmaps, because Nem is a dope.