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.


  • 4mo
    ficool2 avatar
    ficool2 Joined 3y ago
    4,582 points Ranked 1056th
    18 medals 1 legendary 3 rare
    • 2017 Top Contributor Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Reached 50 subscribers Medal icon
    • One month a member Medal icon
    • 6 months a member 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.


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


KonataHamster avatar
KonataHamster Joined 7y ago
17,244 points Ranked 252nd
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
  • 4mo 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.

Interested? Sign up now!

Already a Bananite? Login

WiPs by Submitter tracking pixel