Page 1 of 1

Blender collision model

PostPosted: Thu Mar 21, 2013 1:53 am
by drscience123
Hi guys new to modeling, been on interlopers for years for mapping though. I've got this model a friend made and I'm trying to get it into source. It seems like everything is going fine until I get it in hammer and try it out. The collision model seems to goof and go halfway through the bottom of the model. When I export they are lined up, but when I re-import what I just exported its halfway through the ground. Does anyone know whats going on?

Image
Image

another slight issue I'm trying to figure out is when I compile the model it's all ways looking for "material.vmt" instead of what I wanted it to be. Is that a .qc problem? Thanks guys hope someone has seen something similar to this.

Re: Blender collision model

PostPosted: Thu Mar 21, 2013 2:36 am
by Stormy
Could you paste your .qc here please? I think it looks like the model origins in blender might be messed up, also since some of your reference model is exposed, studiomdl might be compensating for it by extending your collision model. Post qc.

Re: Blender collision model

PostPosted: Thu Mar 21, 2013 2:55 am
by drscience123
Sure thing Black_stormy. I even tried lowering the original model to match the collision one and doing it that way but I get the same result. here is the .qc

$modelname "legends\reaver\zaku.mdl"
$body mybody "zaku.smd"
$staticprop
$surfaceprop combine_metal
$cdmaterials "models\legends\reaver\"

$sequence idle "zaku.smd" // no animation wanted, so re-using the reference mesh

$collisionmodel "zaku-phy.smd" { $concave }

Re: Blender collision model

PostPosted: Thu Mar 21, 2013 11:28 am
by Stormy
Well your physmesh isn't concave, so remove the { $concave } bit. It's a cube, which is convex. Also make sure your origins are in the right spot, select your ref mesh, hit shift+s and select cursor to selected, then select your phys mesh and hit crl+alt+c and select origin to cursor. Also try clearing your transforms, (alt+g, alt+s, alt+r) and then re-export.

Re: Blender collision model

PostPosted: Tue Jun 11, 2013 5:28 pm
by Minor_Threat
This looks similar to a problem I encountered not long ago. Does the volume occupied by the model happen to be twice the size it is supposed to be? If so, try scaling your collision model by 0.5, so that it is half the size of the reference model, then recompile the model. Worked for me!

On the subject of collision models, I'm trying to make one for a window frame. Being as it is complex, I have been told that it requires that you make it out of a series of separate objects, rather than an all-in-one mesh. The issue with this is that when I select it all and try to export it as an .smd, it only seems to export one object out of the entire thing. It would appear that the object that's exported is the yellow highlighted one, and it ignores the red ones.

Any help would be appreciated.

Re: Blender collision model

PostPosted: Sun Jun 16, 2013 9:02 am
by Stormy
Select all the objects for your phys model and hit ctrl+j to join the meshes into one object. As well as being separate contiguous meshes they must be within the same object.

Re: Blender collision model

PostPosted: Sun Jun 16, 2013 9:07 am
by Armageddon
On a side note. Is that Mega Man Legends?