Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
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

32 flashlights + shadow maps

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

#1 polyfrag   Members   

2479
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?

#2 Vilem Otte   GDNet+   

2871
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   

2463
Like
0Likes
Like

Posted 25 August 2013 - 12:28 PM

Shadow texture atlas.



#4 phantom   Members   

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