• Advertisement
Sign in to follow this  

Shadow mapping

This topic is 2899 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

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
Advertisement
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:



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
Sign in to follow this  

  • Advertisement