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

how do I blur shadows? from shadow maps.

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
3 replies to this topic

#1 winsrp   Members   

277
Like
0Likes
Like

Posted 19 September 2012 - 08:36 AM

So I made shadows on my game, the terrain is not that large, and the shadows seem a little weird, I was thinking that I could blur them a little bit.

Tree test with shadow.png

How could I accomplish that ? any code snippet I can take a look at?

#2 winsrp   Members   

277
Like
0Likes
Like

Posted 20 September 2012 - 08:06 AM

come on guys, anyone? blurring a shadow on the egdes? I bet lots of guys here know how to do it, please, share a bit of your all mighty knowledge.

#3 Erik Rufelt   Members   

5901
Like
1Likes
Like

Posted 20 September 2012 - 08:15 AM

As for the strange lines in your map, I guess you have chosen a too small bias. You need to use a bias in the shadow map comparison to get around imprecision.

For blurring, try searching for PCF shadow maps, or try something like this: http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/soft-edged-shadows-r2193

#4 winsrp   Members   

277
Like
0Likes
Like

Posted 20 September 2012 - 12:50 PM

ah the knowledge has been shared, just what I was looking for!!

I do have chosen a small bias, I tried a larger one, but shadows started deattaching from tree bases, when the sun in move horizontal than vertical. the small lines is just the normals on the sides of my boxes (map is made out of cubes.)

Thanks a lot, I'll try to implement that.!!




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.