• Advertisement
Sign in to follow this  

2D Dynamic Shadows DirectX11 Raycasting

This topic is 633 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a simple project with my friend which I have to implement 2D Dynamic Shadows.

 

I've already gone through http://www.redblobgames.com/articles/visibility/ and Sight And Light 

 

I've read most of this too but didn't understand most parts of it.

 

I'm looking for an approach that is efficient, So the simplest and first thing that came to my mind was raycasting,

Since I'm a kind of a beginner in DirectX there were questions : 

 

- How can a ray detect i it hit something in the way to it's final point ?

 

Iterating through every object ? , It can easily be noticed by anyone that it is not efficient.

 

The lighting algorithms are easy, I'll appreciate it if anyone could help me with raycasting Or suggest a better way for 2D Lights.

Edited by Levent Cpp

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement