Jump to content

  • Log In with Google      Sign In   
  • Create Account


half life 2 / source engine shadowS?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 fread   Members   -  Reputation: 232

Like
0Likes
Like

Posted 17 June 2014 - 07:01 AM

Hi guys i've been wondering how to do source engine - like shadows in opengl? I mean, they are always showing a single shadow map style shadow for each character, even if there several lights in the scene. How are they creating it? I've tried to limit my character shadow only to nearest light, but it's "jumping" in a very annoying way. Are they using some kind of interpolation? how do they determine the light/shadow view pos/projection? anyone have any ideas? thanks in advance

Sponsor:

#2 bioglaze   Members   -  Reputation: 501

Like
0Likes
Like

Posted 17 June 2014 - 07:42 AM

If the shadow edge is jumping, you should move the shadow casting light in texel-size increments. See the following link, especially chapter Moving the Light in Texel-Sized Increments:

Common Techniques to Improve Shadow Depth Maps



#3 radioteeth   Prime Members   -  Reputation: 985

Like
0Likes
Like

Posted 17 June 2014 - 10:12 AM

I think they just cast a shadow in a fixed direction at all times, regardless of light positions. I'm not entirely sure, but that's what it seemed like to me.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS