Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Shadow Map problem

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
6 replies to this topic

#1 newtechnology   Members   

1765
Like
0Likes
Like

Posted 19 March 2014 - 01:18 AM

Even with high resolution like 2049 x 2049, there are aliasing effects.
I'm rendering a terrain with size 2049 x 2049 and with shadows.

HRhcEbi.png



#2 Tom KQT   Members   

1704
Like
2Likes
Like

Posted 19 March 2014 - 01:28 AM

The shadow map resolution is not the only important factor, equally important is how large area is the shadowmap covering. Even a shadowmap with 4096x4096 would have extremely huge aliasing if you used it for example for the whole Skyrim map.



#3 newtechnology   Members   

1765
Like
0Likes
Like

Posted 19 March 2014 - 01:40 AM

So what is the solution to this problem? should we blur shadow map?



#4 Hodgman   Moderators   

50629
Like
0Likes
Like

Posted 19 March 2014 - 02:18 AM

What kind of shadow map are you using? How is it generated? How do you sample it? How is it filtered?



#5 imoogiBG   Members   

3165
Like
0Likes
Like

Posted 19 March 2014 - 02:38 AM

As said above, probably your light is to far away from the view point.

 

Take a look at this. It is called parallel split shadow map:

http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html



#6 eppo   Members   

4763
Like
2Likes
Like

Posted 19 March 2014 - 06:00 AM

Are youe using a custom filtering kernel? seems to me you have a bug in the depth comparison method which causes results between neighbouring pixels in the map not to match up.



#7 newtechnology   Members   

1765
Like
0Likes
Like

Posted 20 March 2014 - 12:29 AM

Are youe using a custom filtering kernel? seems to me you have a bug in the depth comparison method which causes results between neighbouring pixels in the map not to match up.

This was the problem. I forgot to restore the rasterizerState after rendering the scene to shadow map.

 

Thank you everyone, now the problem is solved. You all are great. (the resolution used in this image for shadow map is 1024x1024 with 2049x2049 terrain.)

1911649_851963971496625_2008400309_n.jpg


Edited by newtechnology, 20 March 2014 - 12:55 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.