Sign in to follow this  
haykan648

2D Dynamic Shadows DirectX11 Raycasting

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this