8Observer8 Posted January 20, 2017 Share Posted January 20, 2017 Hello I don't understand how to set correct shadows for my objects. For example, receiving shadows for all legs of my table: https://jsfiddle.net/8Observer8/q1k3wLd0/1/ Another little question, I cannot transport my code from jsfiddle to PlayGround Compilation error Line 14:21060 - this.updateSideOrientation is not a function http://www.babylonjs-playground.com/#1Y7YMG#0 Thank you in advance Quote Link to comment Share on other sites More sharing options...
Sebavan Posted January 20, 2017 Share Posted January 20, 2017 A known issue with VSM is that self shadow are not working well so changing to PCF can help here: https://jsfiddle.net/q1k3wLd0/2/ Concerning the other issue, it is a bug coming from the migration of the typescript version I just fixed and should be in the pg soon. 8Observer8 1 Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted January 21, 2017 Author Share Posted January 21, 2017 How to solve a problem with moving ball? https://jsfiddle.net/8Observer8/q1k3wLd0/3/ Must I create another shadowGenerator? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted January 21, 2017 Share Posted January 21, 2017 You need to remove the line preventing the shadowmap to refresh (refresh rate to 0): https://jsfiddle.net/q1k3wLd0/4/ 8Observer8 1 Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted January 21, 2017 Author Share Posted January 21, 2017 Thank you! Is it possible to use baked shadows (with rate = 0 ) for static objects and a dynamic shadow for the ball? Or is it too difficult? Quote Link to comment Share on other sites More sharing options...
adam Posted January 21, 2017 Share Posted January 21, 2017 4 hours ago, 8Observer8 said: Thank you! Is it possible to use baked shadows (with rate = 0 ) for static objects and a dynamic shadow for the ball? Or is it too difficult? 8Observer8 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted January 22, 2017 Share Posted January 22, 2017 You could also mix two lights with same setup + different generators if needed: https://jsfiddle.net/q1k3wLd0/5/ 8Observer8 1 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.