Martin Posted March 9, 2014 Share Posted March 9, 2014 Hello, I tryed shadowGenerator but somehow the shadow is edgy. How can I improve it to make shadow more realistic or how to make the steps less obvious ? :-) thanks Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 9, 2014 Share Posted March 9, 2014 Hello Martin, Did you set the parameter shadowGenerator.useVarianceShadowMap to false ? Maybe it is the issue. Delete this line or set it to true (it is true by default). If not, try to increase the size of your shadow map (first parameter) : var shadowGenerator = new BABYLON.ShadowGenerator(1024, light); Cheers, Quote Link to comment Share on other sites More sharing options...
Martin Posted March 10, 2014 Author Share Posted March 10, 2014 Hi, I tryed both settings and after increasing the shadow map size it's better - not perfect ;-) At some light positions looks alright https://dl.dropboxusercontent.com/u/43373092/babylon/loading/index.html Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 10, 2014 Share Posted March 10, 2014 Here what I have by setting the parameter useVarianceShadowMap = true : http://i.imgur.com/vM9kIX7.png I don't think it is possible to go further... Maybe Deltakosh can give you some more hints. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 10, 2014 Share Posted March 10, 2014 Alas no, the shadow map technique has some limitations and edgy shadows are one of them. You should do what you already did: increase size and use variance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.