roman_44 Posted November 17, 2015 Share Posted November 17, 2015 Hi, Babylon.JS Fellows I want to make image vignetting and animation with help of SpotLight.I have been playing a lot with Babylon spot light and cannot avoid sharp inner circle where light begin decrease.Check this out: http://www.babylonjs-playground.com/#1IC7R#1Light falls off to the dark very smooth, but starts falling off with sharp line. I tried to play with properties, but cannot get result of smooth beginning of falling off. When I use this light in animation, I can clearly see this sharp line, where lite begins to decrease, and it is bad. Maybe someone know what can I do with it. changing of position, exponent, angle, intensity properties does not resolve this strange behavior.Thank you! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 18, 2015 Share Posted November 18, 2015 Hello and welcome! can you explain more precisely the problem? Or perhaps a picture can help us understand what is not working for you? Quote Link to comment Share on other sites More sharing options...
roman_44 Posted November 18, 2015 Author Share Posted November 18, 2015 Ok, here is how spot light looks like in Three.js: Here how it is looks like on Babylon.js: Here how my animation looks like in blender with SpotLight: And here how it is looks like in Browser with Babylon.JS SpotLight: See difference? I'm playing with light here and cannot remove this sharp line:http://www.babylonjs-playground.com/#1IC7R#1 Wingnut 1 Quote Link to comment Share on other sites More sharing options...
roman_44 Posted November 18, 2015 Author Share Posted November 18, 2015 Also I found example on babylon.js main page, it named V8 Engine. The lighting there is exactly what I'm looking for, but cannot find it in source files, it is insane 15mb of text So looks like it is possible to resolve my issue. Appreciate your help guys. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 18, 2015 Share Posted November 18, 2015 WOOOOT! this was a bug..(Exponent was just almost ignored)now fixed: http://www.babylonjs-playground.com/#1IC7R#4 RaananW, JBlack_UTD, Wingnut and 1 other 4 Quote Link to comment Share on other sites More sharing options...
roman_44 Posted November 18, 2015 Author Share Posted November 18, 2015 Yeah! It is working now! Thank you man! 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.