Jump to content
  • Advertisement
Sign in to follow this  
youkisun

Cubic Shadow Mapping Problem

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

Now I realized Cubic Shadow Mapping(http://www.gamedev.net/reference/articles/article2457.asp) and there are 2 problems occured.

1. In the sample, I change the position of the light, x=0 y=0 into x=0, y=50, z=0 then, the shadow is shown on all over the screen.

I think if the location of the light is top, it is natural that the shadow is almost not shown.

2. Changing the resolution of Cube Texture 512 into 1024, again the shadow is all over the screen.

Please let me know what the problems are and thank you in advance.

[Edited by - youkisun on October 20, 2010 11:13:32 PM]

Share this post


Link to post
Share on other sites
Advertisement
Hm... seems to me like that you might forgot to translate to x=0 y=50 z=0 point, from where you're rendering shadow map, check this.

Also check the other case (that you might forgot translate not the point when you're generating shadows, but when you're comparing depths to get shadows).

As for resolution change, you have to use Frame buffer objects (in GL) or Render targets (in D3D) to use larger resolution than your backbuffer is (e.g. buffer you're outputting to screen).

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!