Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

half life 2 / source engine shadowS?

4: Adsense

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   

240
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

#2 bioglaze   Members   

1586
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 deftware   Prime Members   

1778
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.