Ahiru Posted September 11, 2015 Share Posted September 11, 2015 1. What exactly is the 4th value in scene.clearColor for, since it expects a color4 value - there seems to be no difference in changing the last number? http://www.babylonjs-playground.com/#1O9MWE 2. How do I get scene.ambientColor to work, because it seems not to have any effect at all? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 11, 2015 Share Posted September 11, 2015 Hi, 1. It has an effect if your canvas is above an HTML page, the last parameter is the transparency. Set it to 0 to have a transparent canvas. 2. The scene ambient color is used for other material colors (ambientColor - cf my book page 69/70 ) Ahiru 1 Quote Link to comment Share on other sites More sharing options...
Ahiru Posted September 11, 2015 Author Share Posted September 11, 2015 Thanks - I thought it was transparency, but did not think about the laying over another HTML-Element. Ok, to the second part I'm coming later then. Quote Link to comment Share on other sites More sharing options...
Ahiru Posted September 11, 2015 Author Share Posted September 11, 2015 Hmm - but the ambient color does not show any effect - did like you described: http://www.babylonjs-playground.com/#1O9MWE#1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 11, 2015 Share Posted September 11, 2015 You forgot to attach the material to the box Quote Link to comment Share on other sites More sharing options...
Ahiru Posted September 11, 2015 Author Share Posted September 11, 2015 - I am missing a "head-on-table" smily Temechon 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.