Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
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 artifacts on plane parallel to light

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 nikitablack   Members   

1101
Like
0Likes
Like

Posted 31 March 2014 - 09:28 AM

Hello. I'm using directional light. And on parallel to light direction plane I have flickering artifacts (in the picture the side of cube is shaded and actually it blinks every frame, so if I move camera a little - different faces shaded differently). I don't want to use any other lightning (lambertian etc) - only pure color + shadows. And to be honest, I can't understand why there're such artifacts. And is there any way to remove shadow aliasing on sphere? I'm working with mobile so I can't afford myself bluring or even pcf.



#2 kalle_h   Members   

2463
Like
0Likes
Like

Posted 31 March 2014 - 01:53 PM

Use binary light model so all bakcfaces get full shadow always. color = dot(n, l) > 0 ? color * shadow : 0;



#3 L. Spiro   Members   

25456
Like
0Likes
Like

Posted 31 March 2014 - 05:13 PM

And is there any way to remove shadow aliasing on sphere?

You may need to provide an image of what is happening but you should be adding a small offset to the shadow-map test so that the shadow is slightly further back than it actually is.


L. Spiro

#4 nikitablack   Members   

1101
Like
0Likes
Like

Posted 01 April 2014 - 01:32 AM

Oh, sorry, I forgot to attach a picture.

https://dl.dropboxusercontent.com/u/77219109/shadows.png

 

This aliasing on the sphere... I tried different bias values but it still there.

 

@kalle_h, thank you, good approach.


Edited by Volgogradetzzz, 01 April 2014 - 01:32 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.