Dad72 Posted June 12, 2017 Share Posted June 12, 2017 I had not paid attention to this, but it would seem ambientColor no longer works. On this PG I put a green atmosphere, but it does nothing. http://www.babylonjs-playground.com/#1SLLOJ#296 By cons if I remove the sky, it works. the scene is in a green atmosphere as can be seen see on this PG http://www.babylonjs-playground.com/#1SLLOJ#297 Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 12, 2017 Share Posted June 12, 2017 It seems you need to set ambientColor for mesh as well http://doc.babylonjs.com/tutorials/environment#changing-the-ambient-color-sceneambientcolor However on mobile so cannot add to your PG adam 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 12, 2017 Author Share Posted June 12, 2017 I'm not sure I understand. On the Site demo on instances (the forest with a green atmosphere), I see only ambient color on the stage. Previously, when I did that, the whole scene took the color of atmosphere that was given. his should change the ambient lighting, but that does not change. Quote scene.ambientColor - changes the color used in several effects, including ambient lighting. http://www.babylonjs.com/demos/instances/instances.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 12, 2017 Share Posted June 12, 2017 I see no green on this version: http://www.babylonjs-playground.com/#1SLLOJ#297 (Only the background is green bue this is due to the clearColor) http://www.babylonjs-playground.com/#1SLLOJ#298 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 12, 2017 Author Share Posted June 12, 2017 In this PG it's good when I delete the skybox, but if I add the skybox, there is more ambient color. http://www.babylonjs-playground.com/#1SLLOJ#297 I think not understand this property Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 12, 2017 Share Posted June 12, 2017 I think it is an optical illusion With skybox: without: Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 12, 2017 Author Share Posted June 12, 2017 Oh yes, I think I had to empty the browser cache. 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.