importing models from max to hammer

Joined
Oct 3, 2003
Messages
462
Reaction score
0
I have searched and read various websites on how to do this properlly. I have thus far figured out how to convert them to smd's and i have a semblance of understanding the qc files. But where i have not yet got past is the compiling of the qc's themselves. With gui studiomdl compiler i get the "bad command $staticprop" error msg. With another compiler even following the instructions to the T i have constantly got a directory not found, even when the path ius exact.

Can anyone please give me an idea, or walk me through compiling. Pretend i'm stupid for a sec(i might be) and walk me through creating a qc and compiling the smd's for say a static bridge face for detail work preferably using gui studiomdl.

I have a serious amount of assets i would love to finally be able to get into hammer.
 
This should be in the modelling forum really, since it's about compiling models...but anyway...

Code:
$modelname custom/(yourmodel).mdl
$cdmaterials models
$staticprop
$scale 1.0
$body studio "./(your model)"
$sequence idle "(your model)" loop fps 15
$collisionmodel "(your model).smd"
{
$Mass 100
$concave
}

That's copied from the tutorial I originally used to get models ingame...

I recommend you download GuiStudioMdl from here and when it's installed move the guistudiomdl.exe to your sourcesdk\bin folder.

It should compile if you open your qc file with GuiStudioMdl after that. Let me know how that works...
 
Ok got it to compile to a mdl, but when i went into model viewier and also into hammer. I could not see the object at all. Now the original max prop was untextured of course. But still it should show up with a default texture of some sort shouldnt it?
 
This is the compile process log just in case you need it


Code:
[Performing Sanity Check]
QC file loaded...PASS
Can read QC...PASS
Can find studiomdl.exe...PASS
Can build command line...PASS
All tests passed!

[Compiling QC file - "venice_bridge.qc"]
[Compiler output follows]
--------------------------------------------------------------------------------
c:\progra~1\valve\steam\steama~1\ownage~1.com\source~1\bin\, c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\, path VENICE~1
Working on "VENICE~1.qc"
SMD MODEL models/bridge/venice_bridge.smd
SMD MODEL models/bridge/bridge_phys.smd
Collision model completed.
---------------------
writing c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\models/models/venice_bridge.mdl:
bones          420 bytes (0)
animations     104 bytes (1 anims) (1 frames) [0:01]
sequences      216 bytes (1 seq) 
ik/pose        164 bytes
eyeballs         0 bytes (0 eyeballs)
flexes           0 bytes (0 flexes)
textures         4 bytes
keyvalues        0 bytes
collision        0 bytes
total          964
---------------------
writing c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\models/models/venice_bridge.vvd:
vertices         0 bytes (0 vertices)
tangents         0 bytes (0 vertices)
total           64 bytes
---------------------
Generating optimized mesh "c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\models/models/venice_bridge.sw.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:             0 bytes
strip groups:       0 bytes
strips:             0 bytes
verts:              0 bytes
indices:            0 bytes
bone changes:       8 bytes
everything:        72 bytes
---------------------
Generating optimized mesh "c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\models/models/venice_bridge.dx80.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:             0 bytes
strip groups:       0 bytes
strips:             0 bytes
verts:              0 bytes
indices:            0 bytes
bone changes:       8 bytes
everything:        72 bytes
---------------------
Generating optimized mesh "c:\program files\valve\steam\steamapps\[email protected]\half-life 2\hl2\models/models/venice_bridge.dx90.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:             0 bytes
strip groups:       0 bytes
strips:             0 bytes
verts:              0 bytes
indices:            0 bytes
bone changes:       8 bytes
everything:        72 bytes

Completed "VENICE~1.qc"
Memory leak: mempool blocks left in memory: 48

--------------------------------------------------------------------------------
[Compiler execution completed]

and this is the qc contents

Code:
$modelname models/venice_bridge.mdl
$staticprop
$scale 1.0
$body studio "models/bridge/venice_bridge.smd"
$sequence idle "models/bridge/venice_bridge" fps 1
$collisionmodel "models/bridge/bridge_phys.smd" {
       $Mass 100
   $concave
}
 
Thank you. I got that all worked out. Finally lol. Spent a long long time making these assets. Now time to have some fun. Much appreciated.
 
Back
Top