Jump to content

SpotLight issue


roman_44
 Share

Recommended Posts

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#1

Light 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!

 

Link to comment
Share on other sites

Ok, here is how spot light looks like in Three.js:

Screen_Shot_2015_11_17_at_4_57_37_PM.png

 

 

Here how it is looks like on Babylon.js:

 

Screen_Shot_2015_11_17_at_5_00_22_PM.png

 

 

 

Here how my animation looks like in blender with SpotLight:

Screen_Shot_2015_11_17_at_5_04_41_PM.png

 

 

 

And here how it is looks like in Browser with Babylon.JS SpotLight:

Screen_Shot_2015_11_17_at_5_08_37_PM.png

 

See difference? I'm playing with light here and cannot remove this sharp line:

http://www.babylonjs-playground.com/#1IC7R#1

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...