static model wont show in hammer

static model wont show in hammer

Re: static model wont show in hammer Posted by flip17801 on Tue Aug 8th 2006 at 2:39am
flip17801
2 posts
Posted 2006-08-08 2:39am
2 posts 0 snarkmarks Registered: Aug 8th 2006
I created atree in 3dsmax 7 with speedtree and exported it to a smd file. I created a .qc file (probably the problem) and compiled it with studiomdl. I get no errors when I copmile it. When I try to put it in hammer. It is in the model viewer but there is no picture of the model like there is for all the other models. When I select it and put it in the map it takes around 19,000 units by 19,000 units. I changed the size in 3ds max and it still takes up the same amount of space. The map compiles fine then but the model isn't there.Any help Would be greatly appreciated. Thank You

Here is my .qc file. I followed some tutorials but I have a feeling I got something wrong.

$modelname props_foliage/tree2.mdl
$body "Body" "tree2.smd"
$cdmaterials modelsrc

$scale 1.0
$staticprop
$surfaceprop "wood_solid"

$sequence "idle" "tree2" fps 30

$collisionmodel "tree2.smd"
{
//Mass in kilograms
$mass 350.0
$concave
}
Re: static model wont show in hammer Posted by fishy on Wed Aug 9th 2006 at 9:43pm
fishy
2623 posts
Posted 2006-08-09 9:43pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
the bit that looks most worrying to me is the $cdmaterials value. for this value to be modelsrc, you'd need to have your textures in the [mod]/materials/modelsrc folder of the actual game directory. it doesn't normally exist, and it's a strange choice of folder name if you created it yourself.

i don't know if the $scale value can go below 0.1, which would still give you a tree of 1900 units. going with your numbers,$scale 0.02 would give you a bounding box of 380x380, which is still the height of a 3-4 story building.
i eat paint
Re: static model wont show in hammer Posted by flip17801 on Thu Aug 10th 2006 at 2:05am
flip17801
2 posts
Posted 2006-08-10 2:05am
2 posts 0 snarkmarks Registered: Aug 8th 2006
I think my problem is thst speedtree doesn't export meshes.