Modeling Help (Blender)

Ok so I have two problems

  1. Lets say I made a wall with a door cut out of it but I cant walk through it in game

  2. Is there a way in blender to know what the size of the object is going to be in game
    I usually have to resize it a couple times then recompile to get it the right size in game

Thank You

i think its sized up by 40.

“sized up by 40”- I’ve heard of this problem, and I think it’s in one of the SMD importers, which scale down the imported SMD by 40. Does the exporter have the same problem or something? Is the number 40 somehow magic?

I’m using the following plugins:
Exporter: http://dvondrake.com/scripts/blendersmd
Importer: http://folk.uio.no/jonmd/blender/smdimport/

EDIT: I think this thread addresses the question: http://www.facepunch.com/showthread.php?t=734991&page=8

The only thing that scales by 40 is the importer(not in newer versions modified by EMDF, though). I’m pretty sure the exporter is on a 1:1 ratio with hammer.

Thank you all for the replys

I think I found out my size problem Some one told me to use $scale in the .qc file

Still having problems with my first one
I cant walk through the hole in game here is a photo of what I mean
http://s124.photobucket.com/albums/p3/dropdead567/?action=view&current=Blender.jpg

Dragonlord(Pluss Roland)'s exporter (on which dvondrake’s was based) scaled things up by 40. Anyone using that script either needs to keep that in mind, use a scale command in the qc, or change line 85 to:



tuv = 1.0 # scaling factor


Took a look at EMDF’s modified version (v0.2): http://redirectingat.com/?id=629X1198&url=http%3A%2F%2Fs000.tinyupload.com%2Findex.php%3Ffile_id%3D07216386969827226261

Will edit when I’ve verified it works…

I have solved out the size issue I was having can some one please tell me why I cant walk through the opening in my model?

There is a link to the pic of my model in my last post.

Ok, you got to walk us through the steps you took. Did you export that model in the picture as a physics SMD? Furthermore, is it made of four rectangular convex objects, or one mesh? studiomdl will reject your physics model if it’s not made entirely of convex objects.

I did not export as physics mesh I did Static mesh and its made out of 4 meshes merged together.
I’m new to Modeling/compiling for the source engine also Im using GUIstudioMDL.

Post your QC for me.

$modelname “props/Box.mdl”
$body mybody “Box.smd”
$staticprop
$surfaceprop “metal”
$cdmaterials “models/props”
$scale 1

$sequence idle “idle.smd” loop fps 1

$collisionmodel “Box.smd” {
$automass
$concave
}

$keyvalues
{
“prop_data”
{
“base” “Metal.Medium”
}
}

try exporting your model as a physics mesh in blender, call it “box_phys.smd”, and replace your $collisionmodel variable to match.

I did that and it compiled with no errors but it still dont work.
So now there are two .smd files right like this

$modelname “props/Box.mdl”
$body mybody “Box.smd”
$staticprop
$surfaceprop “metal”
$cdmaterials “models/props”
$scale 1

$sequence idle “idle.smd” loop fps 1

$collisionmodel “Box-phy.smd” {
$automass
$concave
}

$keyvalues
{
“prop_data”
{
“base” “Metal.Medium”
}
}

good. what about the compile log? does it say anything about convex shapes?

also, I get that you merged four meshes into one to make the physics model, but are they connected meshes now or just four boxes? you need it to be four boxes.

Did you actually make a collision model?

Yes I did make a collision model. Ok so I made a new model and I didnt merge them together and it worked so Im guessing you cant merge the model into one am I right?

You can do whatever you want to the basemodel, but the collision model can’t be merged. Look up the definitions of convex and concave meshes, and you’ll understand what the source engine’s expecting.