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.


32 flashlights + shadow maps


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
3 replies to this topic

#1 polyfrag   Crossbones+   -  Reputation: 1868

Like
0Likes
Like

Posted 25 August 2013 - 08:05 AM

I want to give each of 32 or more players a flashlight that can cast shadows. I'd probably run off the multitexture limit with that many shadow maps plus specular and normal map. How do Left 4 Dead or Counter-Strike: Source deal with this?

Sponsor:

#2 Vilem Otte   Crossbones+   -  Reputation: 1464

Like
0Likes
Like

Posted 25 August 2013 - 12:25 PM

My appologize for just short answer:

 

Deferred shading + shadow maps works. Although you won't have 32 shadows simuateously visible, you just render what you need (which is detectible).

 

For forward renderers you probably need multi pass lighting. Although it's still possible.


My current blog on programming, linux and stuff - http://gameprogrammerdiary.blogspot.com


#3 kalle_h   Members   -  Reputation: 1471

Like
0Likes
Like

Posted 25 August 2013 - 12:28 PM

Shadow texture atlas.



#4 phantom   Moderators   -  Reputation: 7395

Like
1Likes
Like

Posted 25 August 2013 - 12:43 PM

How do Left 4 Dead or Counter-Strike: Source deal with this?


I'm pretty sure they just blend a texture over the scene to add light to where you are looking so they aren't real lights.




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