Model not showing in map, why?

Model not showing in map, why?

Re: Model not showing in map, why? Posted by javierdl on Tue Oct 20th 2009 at 11:20pm
javierdl
28 posts
Posted 2009-10-20 11:20pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
I can load my model in ModelViewer & Hammer, but it doesn't load/show when I open the map. What are the typical reasons for this?
I'm using GUIStudioMdl 2.2 to compile.
This is for HL2DM.
This is my qc file, for whatever it's worth:
$modelname /custom_models/concave_test_02c.mdl
$cdmaterials "models/custom_models/"
$scale 1
$staticprop
$surfaceprop "Wood_Furniture"
$body studio "concave_test_02c.smd"
$sequence idle "concave_test_02c_idle.smd" fps 1

$collisionmodel "concave_test_02c_col.smd"
{
$mass 10
}

$keyvalues
{
"prop_data"
{
"base" "Wood.Large"
}
}
Re: Model not showing in map, why? Posted by haymaker on Wed Oct 21st 2009 at 1:37pm
haymaker
439 posts
Posted 2009-10-21 1:37pm
haymaker
member
439 posts 921 snarkmarks Registered: Apr 1st 2007 Location: CAN
Im fairly green on .qc use but I've never entered that "fps 1" line in any working one
Re: Model not showing in map, why? Posted by javierdl on Wed Oct 21st 2009 at 5:41pm
javierdl
28 posts
Posted 2009-10-21 5:41pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
Thanks and hi Haymaker! :)
I'll remove that and see what happens then.

Boshed (from the HL2DM University web site) kindly suggested to check the Source SDK Model Viewer info tabs, so I did. Except there's nothing of importance being different between the pumpkin that loads in the game and the table that doesn't (see image below). Except for the fact that the pumpkin uses "Body" for the bodypart dropdown menu in the Model tab, whereas the table uses "studio" (don't know why...I didn't know studio was a bodypart). Which corresponds to the $body command in the qc file.

Here you can see the pumpking and the table, only the former shows in game.
User posted image
I also compared their
User posted image
Hammer Obj Properties window. They are both "prop_physics", and every single parameter is the same.
I am following this tutorial as a guideline, and although I have read it many times now, I still can't spot anything I've missed and/or done wrong :(

Any ideas?

P.S. looking forward to see ya in HL2DM ;)

JDL
Re: Model not showing in map, why? Posted by javierdl on Wed Oct 21st 2009 at 6:11pm
javierdl
28 posts
Posted 2009-10-21 6:11pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
Ok, did it, and... didn't cut the mustard :(
I even duplicated the pumpkin entity and changed the model to my model, and still nothing! :-\

JDL
Re: Model not showing in map, why? Posted by javierdl on Wed Oct 21st 2009 at 7:51pm
javierdl
28 posts
Posted 2009-10-21 7:51pm
javierdl
member
28 posts 3 snarkmarks Registered: Nov 26th 2004 Occupation: 3D Modeler Location: Canada
YES!!!
Finally it worked!

The culprit:

The entity I had been using, was a copy of another one that at some point before I made it to be a "weapon". And now although the model is no longer the same, one of its many tabs still was configured as the "Anabelle rifle weapon"!
I caught that in the game console, THANKS TO YOU, boshed :)
So I decided to create a brand new entity and the model loaded in game as expected!

JDL
Re: Model not showing in map, why? Posted by Le Chief on Thu Oct 22nd 2009 at 1:58am
Le Chief
2605 posts
Posted 2009-10-22 1:58am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Oh, I thought it was because the model you made was a static object and you're using a prop_physics. I was going suggest you use the entity prop_static.
Aaron's Stuff