How to properly add lens flare to lights

Hello! :smile:

Currently, I’m working on a map submission for the Roblox game, Randomizer. In this map, however, there are some lights that I feel look too meh.

Car - No Lense Flare
(some headlights without lens flare)

To fix this, I added a BillboardGui onto each of these headlights, containing a lens flare image.

Car - Lens Flare AlwaysOnTop On
(some headlights with added lens flare effect, AlwaysOnTop = True)

The thing is, if I turn off the AlwaysOnTop property, it looks a lot worse.


(some headlights with added lens flare effect, AlwaysOnTop = False)

Obviously, I can’t keep that property on. Since this is a map submission, though, I can’t use any scripts for a solution.

Is there some workaround that I don’t know of?

Some other things

It isn’t too necessary that I find a solution to this, as it’s only a very minor detail. I’d still appreciate it if somebody were to help.

I did a little looking around before making this post and I found these:
https://devforum.roblox.com/t/lens-flaring-for-multiple-objects/12337
How can I make a 'dynamic' headlight lens flare? - #10 by JamieBlakeston

The thing is though, I don’t know if any of the proposed solutions in any of these would work. (Using ParticleEmitters, plugins, beams, many images, etc)

btw, first time posting on devforum, sorry if i poorly explained this topic

:smiling_face:

2 Likes

Well, the way i like to do this is to set the len flare always on top then set the max distance accordingly to your liking. In your case, it maybe be 30 studs idk up to you to decide what best.

One way to fix this is by changing the StudsOffset variable to something like (0, 0, 0.5) or higher :>

Thanks, I hadn’t thought of using offset! Other than the fact that the image is slightly off-center, this works pretty well :smiley: (that’s literally what offset is meant to do, though, so I can’t argue)

2 Likes

Hey I’ve got a small issue with this same type of effect. The BilboardGUI turns with the camera like it should when you go around it as well.


I was wondering if there is a solution for this…(there probably is but I’m too dumb) I guess you know how to do this since you’ve got the same kind of set up.
Thanks in advance!

All I can think of is that you have the offset too high or that AlwaysOnTop is enabled‎‎‏‏‎ ‎:P
Can you send screenshots of the settings or possibly a place file with the train and BillboardGui?

I’ve got AlwaysOnTop Enabled because if not it looks weird, just like in this topic’s first post. These are my other settings:

AlwaysOnTop is the reason it’s acting weird. Set it to false then set LightInfluence to 0. This gives you a new option for Brightness

Yeah, but like I said, without the AlwaysOnTop property enabled it looks extremely awful… Just look at this:
image
Here’s how it looks with the AlwaysOnTop enabled:
RobloxScreenShot20231120_190223698

Maybe try adjusting the offset higher and turning up the brightness?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.