Sign in to follow this  
themadme

Shadow mapping

Recommended Posts

themadme    122
Hi everyone, I have a curious question which is, when creating a shadow map in a scene, do you need to build a shadow map containing every object including a float floor plane? Reason for this questions is that i have been messing around with the frank luna shadow map example as well as the directx sdk one. For both scenes, I remove the code that renders the "floor" when building a shadow map. By doing this, it causes the shadows of the objects in the scene not be rendered. Why does this happen? Has anyone done this before and knows the answer? Kind regards, Lee

Share this post


Link to post
Share on other sites
themadme    122
This is before:

http://smg.photobucket.com/albums/v317/the_mad_me/?action=view¤t=Before.jpg

and this is after:

http://smg.photobucket.com/albums/v317/the_mad_me/?action=view¤t=After.jpg

I have the same situation with my directx application, it only renders the shadows if the floor is casting a shdaow?

In my XNA applcaiton i did not need to have the floor or rooms to cast a shadow, as you can see:

http://www.youtube.com/watch?v=cKy--FULN7s

So why in directx do i need to have the floor to cast a shadow to work but not in xna?

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