Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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: 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

Sponsor:

#2 bioglaze   Members   -  Reputation: 588

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: 1103

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