Sign in to follow this  
staticVoid2

Flare effect

Recommended Posts

staticVoid2    381

Hi there,

 

I recently implemented a basic headlight light flare effect into my game (similar to the image below) using simple billboarded sprites but was wondering what the technical name for this effect is so I could look into it a bit more. Every tutorial I've seen only tells you how to render this effect but does not go into any details of the theory behind it.

 

KLF-headlights.jpg

 

Any links to some more information on this would be great thanks.

Share this post


Link to post
Share on other sites
3TATUK2    714

i think "relativistic aberration", and if not - it's possibly even a form of lens flare happening on your eye

Edited by 3TATUK2

Share this post


Link to post
Share on other sites
Hodgman    51238
I've often seen this kind of lens flare effect referred to as a 'corona'. They usually are just billboard sprites, with some tricks, like usin some kind of occlusion test at the centre instead of the usual depth testing.

However 'corona' isn't a very useful search term... E.g. Searching "corona billboard" shows me pictures of beer advertisements!

Share this post


Link to post
Share on other sites
staticVoid2    381

It's not so much the lens flare but the initial flare effect which I believe can be witnessed without looking through a camera. If you look at a street lamp at night you will notice a distinctive flare around the light source. I'm not sure what to call this effect though.

Share this post


Link to post
Share on other sites
Hodgman    51238

It's not so much the lens flare but the initial flare effect which I believe can be witnessed without looking through a camera. If you look at a street lamp at night you will notice a distinctive flare around the light source. I'm not sure what to call this effect though.

There's two overlapping effects around a street lamp at night.

One is a lens flare -- in your original picture of the car, the radial lines, doughnut-shaped rings and the central glow are a lens flare.

 

This part of the effect will fade/shrink as you raise your hand and cover the street lamp / light-bulb from your view.

 

After covering the street-lamp with your hand / thumb, the first glow will disappear (as it's occurring in your eye/lens), but the second one will remain. This is a large halo around the light (not really present in your first picture), caused by particles in the air scattering the light. On humid/misty nights, or in polluted areas, this effect will be more pronounced as there will be more of these scattering particles.

Ideally, this would be rendered as a volumetric halo, or a regular point light affecting a volumetric fog.

Share this post


Link to post
Share on other sites
InvalidPointer    1842

Could you mean halo?

 

And specifically, lenticular halo phenomena?

 

EDIT: From what I recall, there's not a whole lot of theory on the subject because there's actually some controversy as to what is actually taking place in our eyes, but I don't know if that's still the case. I *do* know there's another successor paper to the linked that actually generates animated halos by way of a super-detailed simulation that tries to account for small particles floating around in the vitreous humor, but sadly I can't locate it with some basic Google searching :(

Edited by InvalidPointer

Share this post


Link to post
Share on other sites
LancerSolurus    630

It's real easy to create that effect in the real world. Squint your eyes, your eyelashes will cause it. If you wear glasses, wipe it with something with a little oil on it (your body oil on your shirt works fine), the streaks will be perpendicular to the direction of the wiping. A recently cleaned windshield that isn't fully clean will work just as good. It can be caused both by a fresnel effect and a reflection effect.

Edited by LancerSolurus

Share this post


Link to post
Share on other sites
Bacterius    13165

The physical name for the effect which accounts for at least the long streaks + the ring structure, is a diffraction pattern, caused by Fraunhofer diffraction as incident light waves diffract off the aperture of your eye system (i.e. glasses + contacts + eyebrows + cornea + any other foreign body such as dirt and whatnot) and bleed onto your retina.

 

I guess it probably goes by more trendy names in the photographic industry happy.png

Share this post


Link to post
Share on other sites
tonemgub    2008

http://en.wikipedia.org/wiki/Diffraction_spike

 

Here's a thorough article - not sure if it covers this specific effect: http://www.telescope-optics.net/eye_aberrations.htm

 

But in general, I guess any visual effect that is caused by the human eye is called an "eye aberration", so you can probably start with this term to find more specific names for what you're reffering to...

 

Also, thanks to JJ Abrams, the terms "anamorphic lens flare" or "anamorphic lens effect" have become famous recently. :)

Edited by tonemgub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this