Shadows are really important for you to make your scene realistic but sometimes it can make your application much slower, and there are 6 types of shadows available in verge 3d. And I know it will be hard for you to choose, So let's compare which shadow type is best for your next project.
1-Basic
This shadow is less performance hungry but it is not good because it doesn't provide soft shadows.
2-Billinear
It provides better results than basic but still not good because of sharp shadow.
3-PCF
As you can see PCF provides us blurry shadows which is not good.
4-PCF (Billinear)
PCD billinear provides us much better results.
5-PCF (Poisson disk)
PCF Poisson disk has the same results like PCF Billinear.
6-ESM
ESM provides you the best shadows but it will take a lot of performance.
Important Note: The results could be different, but these are the result of an archviz scene, I dropped down the original shadows size from 4096px to 2048px for getting the best performance.
If you face any problem or need any then my contact page
2 Comments
Nice Post. I think you left out one option....baking shadows. Shadows of any kind based on physical lights have limitations and you have to decided what you want to sacrifice. Physical lights also have a redraw performance cost. Baked shadows allow you to have the best shadows for non animated objects and don't require any light sources...so you end up with a high performance scene and great looking shadows in most cases.
ReplyDeleteYes you are right real-time shadows are performance hungry, baked shadow are best for configurator like shoes,car, or other's if they are static.
Delete