DylanD Posted August 2, 2018 Share Posted August 2, 2018 Hello, I was wondering if there is any way to edit the spotlights cone to make it a square or, rectangle. http://www.babylonjs-playground.com/#20OAV9#204 This is the spotlight I found. But I want it to be a rectangle. Maybe a way to stretch the cone width wise? Idk any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2018 Share Posted August 2, 2018 The cone light is a physical optic equation and it can't be changed (unless you want to change all the maths) Perhaps you can try to use volumetric light instead? http://doc.babylonjs.com/how_to/using_standard_rendering_pipeline#setting-up-volumetric-lights Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 2, 2018 Author Share Posted August 2, 2018 8 minutes ago, Deltakosh said: The cone light is a physical optic equation and it can't be changed (unless you want to change all the maths) Perhaps you can try to use volumetric light instead? http://doc.babylonjs.com/how_to/using_standard_rendering_pipeline#setting-up-volumetric-lights Darn... Maybe I could achieve the effect I want with multiple lights... Thanks Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 2, 2018 Author Share Posted August 2, 2018 Hey I can't figure out how to get the spotlight to be really wide(like the cone spread I guess?). When I make the angle larger it just makes it fade as it goes farther: http://www.babylonjs-playground.com/#20OAV9#207 Even if the exponent is at 0. Any ideas how I could keep it the same fadeless throughout the whole spot? Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 3, 2018 Share Posted August 3, 2018 On 8/2/2018 at 3:58 PM, DylanD said: spotlights cone to make it a square or, rectangle Bit of a cheat and the light still gives a circular spread but you do get a rectangle of light http://www.babylonjs-playground.com/#20OAV9#208 Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 3, 2018 Author Share Posted August 3, 2018 4 hours ago, JohnK said: Bit of a heat and the light still gives a circular spread but you do get a rectangle of light http://www.babylonjs-playground.com/#20OAV9#208 close but I would need it to work with a wide range of objects thanks though Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 3, 2018 Author Share Posted August 3, 2018 Heres a cool effect: http://www.babylonjs-playground.com/#20OAV9#209 http://www.babylonjs-playground.com/#20OAV9#210 http://www.babylonjs-playground.com/#20OAV9#212 The last one is so close to what I want, the only problem is the bar in the middle is way too bright, and it does not fade well into the rest of the light. I wish I could make the bar smaller that way I could just use the two side that make that great effect! NRA 1 Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 3, 2018 Author Share Posted August 3, 2018 http://www.babylonjs-playground.com/#20OAV9#213 If I could like isolate the left side of this it would make another great effect 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.