I have compiled my first model in XSI, it shows up in hammer, but I can't for the life of me figure out why it won't show up as a static prop.
I have had this happen to me in Propper before I decided to try out modeling, and I originally thought that propper was the source of the problem.
It shows up as a physics prop, but NEVER a static prop.
I don't know where to start, so here is my .qc
[code]// Output .MDL
$modelname "yadda/cylinder.mdl"
// Directory of materials that the model uses
$cdmaterials "models/yadda"
// Model properties
// model is a static prop
$staticprop
// Make usable with prop_physics
$keyvalues
{
prop_data
{
base Plastic.Small
}
}
// Material properties
$surfaceprop "Metal"
// Scale all units by a factor of 40
$scale 5
// Base or Reference .SMD
$body studio "./cylinder"
// sequences: all sequences are in $cd
$sequence idle "cylinder_idle.smd" loop fps 15
// Physics data
$collisionmodel "cylinder_phys.smd" {
$Mass 5
$concave}[/code]
My reference.smd
[code]version 1
nodes
0 "cylinder" -1
end
skeleton
time 0
0 0.000000 -0.000000 0.500000 1.570796 -0.000000 0.000000
end
triangles
cylinder.tga
0 -0.707107 -0.707107 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.813708
0 -1.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.448043 0.782192
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 -1.000000 0.000000 -0.031544 -0.894427 -0.000000 0.447214 0.314551 0.817120
0 -0.707107 -0.707107 -0.031544 -0.632456 -0.632456 0.447214 0.283717 0.817120
0 -0.707107 -0.707107 3.968456 -0.632456 -0.632456 0.447214 0.283717 0.597839
cylinder.tga
0 -1.000000 0.000000 -0.031544 -0.894427 -0.000000 0.447214 0.314551 0.817120
0 -0.707107 -0.707107 3.968456 -0.632456 -0.632456 0.447214 0.283717 0.597839
0 -1.000000 -0.000000 3.968456 -0.894427 -0.000000 0.447214 0.314551 0.597839
cylinder.tga
0 -1.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.600216 0.630021
0 -0.707107 -0.707107 3.968456 0.000000 -0.000000 1.000000 0.631732 0.706107
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 -0.000000 -1.000000 -0.031544 0.000000 0.000000 -1.000000 0.600216 0.782193
0 -0.707107 -0.707107 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.813708
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 -0.707107 -0.707107 -0.031544 -0.632456 -0.632456 0.447214 0.222048 0.817120
0 -0.000000 -1.000000 -0.031544 0.000000 -0.894427 0.447214 0.191213 0.817120
0 -0.000000 -1.000000 3.968456 0.000000 -0.894427 0.447214 0.191213 0.597839
cylinder.tga
0 -0.707107 -0.707107 -0.031544 -0.632456 -0.632456 0.447214 0.222048 0.817120
0 -0.000000 -1.000000 3.968456 0.000000 -0.894427 0.447214 0.191213 0.597839
0 -0.707107 -0.707107 3.968456 -0.632456 -0.632456 0.447214 0.222048 0.597839
cylinder.tga
0 -0.707107 -0.707107 3.968456 0.000000 -0.000000 1.000000 0.631732 0.706107
0 -0.000000 -1.000000 3.968456 0.000000 -0.000000 1.000000 0.600216 0.782193
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 0.707107 -0.707107 -0.031544 0.000000 0.000000 -1.000000 0.631732 0.706107
0 -0.000000 -1.000000 -0.031544 0.000000 0.000000 -1.000000 0.600216 0.782193
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 -0.000000 -1.000000 -0.031544 0.000000 -0.894427 0.447214 0.191213 0.817120
0 0.707107 -0.707107 -0.031544 0.632456 -0.632456 0.447214 0.160379 0.817120
0 0.707107 -0.707107 3.968456 0.632456 -0.632456 0.447214 0.160379 0.597839
cylinder.tga
0 -0.000000 -1.000000 -0.031544 0.000000 -0.894427 0.447214 0.191213 0.817120
0 0.707107 -0.707107 3.968456 0.632456 -0.632456 0.447214 0.160379 0.597839
0 -0.000000 -1.000000 3.968456 0.000000 -0.894427 0.447214 0.191213 0.597839
cylinder.tga
0 -0.000000 -1.000000 3.968456 0.000000 -0.000000 1.000000 0.600216 0.782193
0 0.707107 -0.707107 3.968456 0.000000 -0.000000 1.000000 0.524130 0.813708
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 1.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.600216 0.630021
0 0.707107 -0.707107 -0.031544 0.000000 0.000000 -1.000000 0.631732 0.706107
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 0.707107 -0.707107 -0.031544 0.632456 -0.632456 0.447214 0.222048 0.597839
0 1.000000 0.000000 -0.031544 0.894427 -0.000000 0.447214 0.252882 0.597839
0 1.000000 -0.000000 3.968456 0.894427 -0.000000 0.447214 0.252882 0.817120
cylinder.tga
0 0.707107 -0.707107 -0.031544 0.632456 -0.632456 0.447214 0.222048 0.597839
0 1.000000 -0.000000 3.968456 0.894427 -0.000000 0.447214 0.252882 0.817120
0 0.707107 -0.707107 3.968456 0.632456 -0.632456 0.447214 0.222048 0.817120
cylinder.tga
0 0.707107 -0.707107 3.968456 0.000000 -0.000000 1.000000 0.524130 0.813708
0 1.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.448043 0.782192
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 0.707107 0.707107 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.598504
0 1.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.600216 0.630021
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 1.000000 0.000000 -0.031544 0.894427 -0.000000 0.447214 0.252882 0.597839
0 0.707107 0.707107 -0.031544 0.632456 0.632456 0.447214 0.283717 0.597839
0 0.707107 0.707107 3.968456 0.632456 0.632456 0.447214 0.283717 0.817120
cylinder.tga
0 1.000000 0.000000 -0.031544 0.894427 -0.000000 0.447214 0.252882 0.597839
0 0.707107 0.707107 3.968456 0.632456 0.632456 0.447214 0.283717 0.817120
0 1.000000 -0.000000 3.968456 0.894427 -0.000000 0.447214 0.252882 0.817120
cylinder.tga
0 1.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.448043 0.782192
0 0.707107 0.707107 3.968456 0.000000 -0.000000 1.000000 0.416527 0.706105
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 0.000000 1.000000 -0.031544 0.000000 0.000000 -1.000000 0.448043 0.630019
0 0.707107 0.707107 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.598504
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 0.707107 0.707107 -0.031544 0.632456 0.632456 0.447214 0.345386 0.597839
0 0.000000 1.000000 -0.031544 0.000000 0.894427 0.447214 0.376220 0.597839
0 0.000000 1.000000 3.968456 0.000000 0.894427 0.447214 0.376220 0.817120
cylinder.tga
0 0.707107 0.707107 -0.031544 0.632456 0.632456 0.447214 0.345386 0.597839
0 0.000000 1.000000 3.968456 0.000000 0.894427 0.447214 0.376220 0.817120
0 0.707107 0.707107 3.968456 0.632456 0.632456 0.447214 0.345386 0.817120
cylinder.tga
0 0.707107 0.707107 3.968456 0.000000 -0.000000 1.000000 0.416527 0.706105
0 0.000000 1.000000 3.968456 0.000000 -0.000000 1.000000 0.448043 0.630019
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 -0.707107 0.707107 -0.031544 0.000000 0.000000 -1.000000 0.416527 0.706105
0 0.000000 1.000000 -0.031544 0.000000 0.000000 -1.000000 0.448043 0.630019
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 0.000000 1.000000 -0.031544 0.000000 0.894427 0.447214 0.376220 0.597839
0 -0.707107 0.707107 -0.031544 -0.632456 0.632456 0.447214 0.407055 0.597839
0 -0.707107 0.707107 3.968456 -0.632456 0.632456 0.447214 0.407055 0.817120
cylinder.tga
0 0.000000 1.000000 -0.031544 0.000000 0.894427 0.447214 0.376220 0.597839
0 -0.707107 0.707107 3.968456 -0.632456 0.632456 0.447214 0.407055 0.817120
0 0.000000 1.000000 3.968456 0.000000 0.894427 0.447214 0.376220 0.817120
cylinder.tga
0 0.000000 1.000000 3.968456 0.000000 -0.000000 1.000000 0.448043 0.630019
0 -0.707107 0.707107 3.968456 0.000000 -0.000000 1.000000 0.524130 0.598504
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
cylinder.tga
0 -1.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.448043 0.782192
0 -0.707107 0.707107 -0.031544 0.000000 0.000000 -1.000000 0.416527 0.706105
0 0.000000 0.000000 -0.031544 0.000000 0.000000 -1.000000 0.524130 0.706106
cylinder.tga
0 -0.707107 0.707107 -0.031544 -0.632456 0.632456 0.447214 0.345386 0.817120
0 -1.000000 0.000000 -0.031544 -0.894427 -0.000000 0.447214 0.314551 0.817120
0 -1.000000 -0.000000 3.968456 -0.894427 -0.000000 0.447214 0.314551 0.597839
cylinder.tga
0 -0.707107 0.707107 -0.031544 -0.632456 0.632456 0.447214 0.345386 0.817120
0 -1.000000 -0.000000 3.968456 -0.894427 -0.000000 0.447214 0.314551 0.597839
0 -0.707107 0.707107 3.968456 -0.632456 0.632456 0.447214 0.345386 0.597839
cylinder.tga
0 -0.707107 0.707107 3.968456 0.000000 -0.000000 1.000000 0.524130 0.598504
0 -1.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.600216 0.630021
0 0.000000 -0.000000 3.968456 0.000000 -0.000000 1.000000 0.524130 0.706106
end
[/code]
And lastly, my VMT
[code]"VertexlitGeneric"
{
"$basetexture" "models/yadda/cylinder"
"$surfaceprop" "Metal"
}[/code]
- I have compiled the model in studiomdl under source2007 bin.
- I can see the texture in game when I use it as a physics prop, so the texture works.
- The texture compression is set to RGBA8888
ANY help would be appreciated, I have been searching for help on this for months and by the sheer lack of results, I'm intimidated by modeling :saddowns:
In hammer, have you tried putting it as a prop_dynamic_override?
This is also a still prop, and it'll force it to be that entity
[QUOTE=one free man;24469697]In hammer, have you tried putting it as a prop_dynamic_override?
This is also a still prop, and it'll force it to be that entity[/QUOTE]
Of course I know dynamic and physics props work, but I want static props because their shadows are computed to the lightmap. Which comes in handy for mapping detailed objects into the world.
Try putting the $studio command at the top, or at least before the $staticprop.
Nevermind, got it to work by changing the .qc to the following.
[code]$modelname "yadda/cylinder.mdl"
$cdmaterials "models/yadda/"
$staticprop
$surfaceprop "Metal"
$scale 5
$body cylinder "cylinder.smd"
$sequence idle "cylinder_idle.smd" loop fps 15
$collisionmodel "cylinder_phys.smd"
{
$Mass 5
$concave
}[/code]
Perhaps it was the file extensions, or maybe it was the body name, either way it works now.
Sorry, you need to Log In to post a reply to this thread.