The Game Modding Community - Since 2001

Model not casting shadow

A Forum Thread for Source Engine

My model appears to be a vampire, won't cast a shadow

While I could spend countless hours tweaking and testing and recompiling this model, I figure I might as well ask on the off chance theres someone with the know-how. Its so specific I doubt I could find it quickly enough by searching the valve dev site, which I have done. 

I have a model I need to cast soft shadows on itself, if it matters its SFM, so SDK 2007 basis applies.

The model however will not cast shadows on itself, nor the ground. I'm sure it has something to do with the .qc file, but I don't know which parameter it is. 

Now, I did not create this model but I am planning on modifying it a bit to my needs for a specific scene, however if I can't get soft shadows inside the cabin its kinda not worth the trouble. 

Here are all the parameters unique to the model, listed under $attachments and $cdmaterials
$surfaceprop "metalvehicle"
$contents "solid"
$hboxset "default"
$hbox 0 "base" -70 27.5 -312.5 70 182.5 312.5
$hboxset "entryboxes"
$hbox 1 "base" -1.5 28.5 -1.5 1.5 31.5 1.5
Do any of these tell the engine not to cast shadows? I'll find out soon enough but I'd still like to know for future reference; I have other models that have this issue too.


  • 7mo
    ficool2 avatar
    ficool2 username pic Joined 3y ago
    5,122 points Ranked 974th
    22 medals 3 legendary 4 rare
    • 2017 Top Contributor Medal icon
    • 30 submissions featured Medal icon
    • Reached 100 subscribers Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Reached 50 subscribers Medal icon
    Probably a problem with the textures. Make sure you actually set up the scene correctly (use other models to check). Also make sure the vmt has $ambientocclusion 1 and $phong 1.
    Source Engine Addict


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


KonataHamster avatar
KonataHamster Joined 8y ago
15,411 points Ranked 283rd
30 medals 1 legendary 7 rare
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • 6 years a member Medal icon
  • Submitted 30 Polls Medal icon
  • Submitted 100 Threads Medal icon

Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • 4 Posts
  • 7mo Submitted

Attention Gamer! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Sound fun? Sign up now!

Already a Bananite? Login

WiPs by Submitter tracking pixel