Hey Everyone!
i've been code Lua for quit some while, then decided i wanted to do some modelling.
i am trying to make a box, like a "hollow" box, when i view my prop in hlmv then i can see the Physics model is not going to way i want.
[code]
$modelname "grunewald/crate.mdl"
$scale 50
$body 1 "crate.smd"
$cdmaterials ""
$surfaceprop "plastic"
$contents "solid"
$sequence idle "crate_idle.smd"
$collisionmodel "crate.smd"
{
$mass 100
$inertia 1
$damping 0
$rotdamping 0
}
[/code]
[editline]16th December 2016[/editline]
oh yea, maybe i made a little mistake here, i though it was quit implicit that i am trying to do models for gmod, but yea atleast now i told you guys :)
$concave
for some reason i cannot get it working :(
[code]
$modelname "grunewald/newcrate.mdl"
$scale 20
$body 1 "newcrate.smd"
$cdmaterials ""
$surfaceprop "plastic"
$contents "solid"
$sequence idle "newcrate_idle.smd"
$collisionmodel "newcrate.smd"
{
$concave
$mass 100
$inertia 1
$damping 0
$rotdamping 0
}
[/code]
[CODE]// Created by Crowbar 0.34.0.0
$ModelName "TYPE\TYPE.mdl"
$StaticProp
$BodyGroup "TYPE"
{
studio "TYPE.smd"
}
$SurfaceProp "metal"
$Contents "solid"
$MaxEyeDeflection 90
$CDMaterials "TYPE\TYPE\"
$CBox 0 0 0 0 0 0
$BBox -26.267 -52.557 -0.583 25.126 51.985 50.306
$Sequence "idle" {
"snake_anims\idle.smd"
fadein 0.2
fadeout 0.2
fps 30
}
$CollisionModel "TYPE.smd"
{
$mass 240
$inertia 1
$damping 0
$rotdamping 0
$concave
}
[/CODE]
Try this and replace the TYPE with your names.
[QUOTE=Leonpg;51538350][CODE]// Created by Crowbar 0.34.0.0
$ModelName "TYPE\TYPE.mdl"
$StaticProp
$BodyGroup "TYPE"
{
studio "TYPE.smd"
}
$SurfaceProp "metal"
$Contents "solid"
$MaxEyeDeflection 90
$CDMaterials "TYPE\TYPE\"
$CBox 0 0 0 0 0 0
$BBox -26.267 -52.557 -0.583 25.126 51.985 50.306
$Sequence "idle" {
"snake_anims\idle.smd"
fadein 0.2
fadeout 0.2
fps 30
}
$CollisionModel "TYPE.smd"
{
$mass 240
$inertia 1
$damping 0
$rotdamping 0
$concave
}
[/CODE]
Try this and replace the TYPE with your names.[/QUOTE]
[CODE]
ERROR: c:\users\tobias\desktop\tutorials\cube.qc(28): - could not load file 'snake_anims\idle.smd'
[/CODE]
so i replaced that with my own idle, but still din't workout :(
yeah because you dident change the idle path. If you have it rename it in the qc.
[editline]16th December 2016[/editline]
[CODE]$Sequence "idle" {
"newcrate_idle.smd"
fadein 0.2
fadeout 0.2
fps 30
}[/CODE]
Here it is fixed for your model.
He had it correct the first time, that Crowbar QC you posted is actually worse.
To have a concave collisionmodel you need to give all the pieces their own smoothing for the $concave command to do anything.
well, i just tried that out, still no result :(
[img]https://s30.postimg.org/coliincfz/wrongcollision.png[/img]
[img]https://s24.postimg.org/vj3yyil8z/wrongcollision2.png[/img]
[editline]16th December 2016[/editline]
[QUOTE=SergerantJoe;51538679]He had it correct the first time, that Crowbar QC you posted is actually worse.
To have a concave collisionmodel you need to give all the pieces their own smoothing for the $concave command to do anything.[/QUOTE]
can u lead me on the way on how to smooth it correctly? i am still new to 3d modelling.
all i have learned so far is by a paid account cgcookie
Sorry, you need to Log In to post a reply to this thread.