Dong Posted July 5, 2018 Share Posted July 5, 2018 I love BABYLON , I encounter a troble about waterMaterial.It often appear some black edges at some angle of camera. I can't find what cause it. lights: there are two lights ,hem and point. but the waterMaterial still black when I adjust the lights camera: arcRotate,target is (0,0,0),and the bigger the beta ,the darker the water renderList:[skybox] Quote Link to comment Share on other sites More sharing options...
RaananW Posted July 5, 2018 Share Posted July 5, 2018 well, we love babylon being loved! Welcome to the forum Thou down at the moment, reproducing in the playground (playground.babylonjs.com) would be very helpful. we will be able to help much better Quote Link to comment Share on other sites More sharing options...
Dong Posted July 5, 2018 Author Share Posted July 5, 2018 41 minutes ago, RaananW said: well, we love babylon being loved! Welcome to the forum Thou down at the moment, reproducing in the playground (playground.babylonjs.com) would be very helpful. we will be able to help much better ehh... how can i import my .babylon to the playground?maybe this is stupid question... Quote Link to comment Share on other sites More sharing options...
max123 Posted July 5, 2018 Share Posted July 5, 2018 Had this problem. The solution is to play with scene.clearColor and/or scene.ambientColor. I think it's the former. RaananW and Dong 2 Quote Link to comment Share on other sites More sharing options...
RaananW Posted July 5, 2018 Share Posted July 5, 2018 not a stupid question, but maybe try reproducing the issue with a simpler scene, so we can focus on the basics. If not, you can upload the .babylon file to a server (or even a dropbox), and load it in the playground Quote Link to comment Share on other sites More sharing options...
Dong Posted July 5, 2018 Author Share Posted July 5, 2018 8 minutes ago, max123 said: Had this problem. The solution is to play with scene.clearColor and/or scene.ambientColor. I think it's the former. wow! scene.clearColor really work... but what was originally black is now clearColor, I really want to it look like water from any angle Quote Link to comment Share on other sites More sharing options...
max123 Posted July 5, 2018 Share Posted July 5, 2018 I raised an issue about ocean/water shader ages ago. Apparently, it's a tough bitch to crack - still no solution that I know of.. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted July 5, 2018 Share Posted July 5, 2018 You could try making the clearColor transparent i suppose.. In theory, it shouldn't give off any colour then. ? But ya never know before trying. Quote Link to comment Share on other sites More sharing options...
Dong Posted July 6, 2018 Author Share Posted July 6, 2018 @aWeirdo @max123 @RaananW Thank you for your help , I eventually expanded the volume of the outer skybox, add the ground to the renderList,and increased the diffuseTexture's level of ground'material, while the black edges still look a bit serious , but I tactfully set alpha to water, which made him look not so bad. RaananW 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.