- Nov 18, 2010
- 6
- 7
While it's not Team Fortress 2 specific, I was redirected here by my friend Icarus while trying to compile my first model, a motorcycle, for use in Half Life 2 Episode 2. I've tried compiling it numerous times with modificatons to the QC and each time it gives me the same result (see figure 1)
The first screenshot is the motorcycle in-game. Actually, it's three of them. In a row from right to left should be a Physics Prop of the motorcycle, a static prop and a dynamic prop. However, the dynamic is the only one that shows up, and it's untextured and has no collision detection or physics interaction (however it does cast shadows based upon the main mesh.)
If the model is looked at in the SDK model viewer, Collision mesh, the tickbox does nothing, and no mesh appears. As seen in screenshot 2, the model I constructed has an LOD1, an LOD2 and a collision mesh. (Wether or not it's properly constructed to be convex, I'm not sure.)
This is the completed QC I'd hope to use for this being a physics prop:
(Maya 2011->OBJ->Softimage 2010 with ValveSource (unknown version, downloaded in September)->SMDs->GUI Studio 2.2 ->Hammer->HL2E2)
If it's any more supplementary, here's the Compile log.
Please help
|
The first screenshot is the motorcycle in-game. Actually, it's three of them. In a row from right to left should be a Physics Prop of the motorcycle, a static prop and a dynamic prop. However, the dynamic is the only one that shows up, and it's untextured and has no collision detection or physics interaction (however it does cast shadows based upon the main mesh.)
If the model is looked at in the SDK model viewer, Collision mesh, the tickbox does nothing, and no mesh appears. As seen in screenshot 2, the model I constructed has an LOD1, an LOD2 and a collision mesh. (Wether or not it's properly constructed to be convex, I'm not sure.)
This is the completed QC I'd hope to use for this being a physics prop:
I strongly suspect some kind of problem GUIStudio is having issues with my collision mesh, but I don't know what or how to circumvent it, seeing as I'm not seeing errors, nor what to look for in a problem related to my pipeline$modelname "motorcycle\motorcycle.mdl"
$body motorbike "motorcycle_ref.smd"
$staticprop
$surfaceprop metal
$cdmaterials "models\motorcycle"
$sequence idle "motorcycle_idle.smd" loop fps 15
$collisionmodel "motorcycle_phys.smd"
{
$mass 400.0
}
$lod 20
{
replacemodel "motorcycle_ref.smd" "motorcycle_lod1.smd"
}
$lod 40
{
replacemodel "motorcycle_ref.smd" "motorcycle_lod2.smd"
}
$shadowlod
{
replacemodel "motorcycle_ref.smd" "motorcycle_lod2.smd"
}
(Maya 2011->OBJ->Softimage 2010 with ValveSource (unknown version, downloaded in September)->SMDs->GUI Studio 2.2 ->Hammer->HL2E2)
If it's any more supplementary, here's the Compile log.
If anyone feels the need, they can download the original OBJs, VMT, VTF, QC [and Texture TGA if I made the VMT/VTF incorrectly)GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/
Loaded QC file - "C:\Program Files\Steam\steamapps\Anarchemitis\sourcesdk_content\ep2\modelsrc\models\motorcycle\motorcycle.qc"
Created command line: "C:\Program Files\Steam\steamapps\Anarchemitis\sourcesdk\bin\orangebox\bin\studiomdl.exe" -game "c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2" -nop4 -nox360 "C:\Program Files\Steam\steamapps\Anarchemitis\sourcesdk_content\ep2\modelsrc\models\motorcycle\motorcycle.qc"
all paths:c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\;c:\program files\steam\steamapps\anarchemitis\sourcesdk\bin\orangebox\ep2\;c:\program files\steam\steamapps\anarchemitis\sourcesdk\bin\orangebox\episodic\;c:\program files\steam\steamapps\anarchemitis\sourcesdk\bin\orangebox\hl2\
qdir: "c:\program files\steam\steamapps\anarchemitis\sourcesdk_content\ep2\modelsrc\models\motorcycle\"
gamedir: "c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\"
g_path: "C:\Program Files\Steam\steamapps\Anarchemitis\sourcesdk_content\ep2\modelsrc\models\motorcycle\motorcycle.qc"
Building binary model files...
Working on "motorcycle.qc"
SMD MODEL motorcycle_ref.smd
SMD MODEL motorcycle_idle.smd
SMD MODEL motorcycle_phys.smd
Collision model completed.
---------------------
writing c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\models/motorcycle\motorcycle.mdl:
bones 964 bytes (1)
animations 112 bytes (1 anims) (1 frames) [0:00]
sequences 220 bytes (1 seq)
ik/pose 164 bytes
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
textures 72 bytes
keyvalues 0 bytes
bone transforms 0 bytes
collision 0 bytes
total 1728
---------------------
writing c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\models/motorcycle\motorcycle.vvd:
vertices 346992 bytes (7229 vertices)
tangents 115664 bytes (7229 vertices)
total 462720 bytes
---------------------
Generating optimized mesh "c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\models/motorcycle\motorcycle.sw.vtx":
body parts: 8 bytes
models: 20 bytes
model LODs: 12 bytes
meshes: 9 bytes
strip groups: 25 bytes
strips: 27 bytes
verts: 65061 bytes
indices: 52764 bytes
bone changes: 16 bytes
everything: 117966 bytes
---------------------
Generating optimized mesh "c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\models/motorcycle\motorcycle.dx80.vtx":
body parts: 8 bytes
models: 20 bytes
model LODs: 12 bytes
meshes: 9 bytes
strip groups: 25 bytes
strips: 27 bytes
verts: 65061 bytes
indices: 52764 bytes
bone changes: 16 bytes
everything: 117966 bytes
---------------------
Generating optimized mesh "c:\program files\steam\steamapps\anarchemitis\half-life 2 episode two\ep2\models/motorcycle\motorcycle.dx90.vtx":
body parts: 8 bytes
models: 20 bytes
model LODs: 12 bytes
meshes: 9 bytes
strip groups: 25 bytes
strips: 27 bytes
verts: 65061 bytes
indices: 52764 bytes
bone changes: 16 bytes
everything: 117966 bytes
Completed "motorcycle.qc"
Please help
Last edited: