Mailing List AE-List@media-motion.tv — Message #63981
From: Chris Zwar <AE-List@media-motion.tv>
Subject: Re: [AE] Inverse Square Law for glows
Date: Fri, 20 Apr 2018 15:41:50 +1000
To: After Effects Mail List <AE-List@media-motion.tv>
That’s a really cool tutorial, it’s basically the same way I’ve been doing glows except it never occurred to me to stack them all up on the one layer.  Thanks for the link.

However two things spring to mind.  Firstly, I make things glow A LOT and I usually find that different colours need different blur settings IF you want them to look the same.  Linking all the blurs for the same layer with an expression is clever and a great starting point, but I think that if you had elements that were all unique colours, you might want to manually adjust some of the numbers if you want the glow to look the same on them all.

Secondly - and I really don’t know, just thinking out loud - while multiple layers with different blur settings is undoubtedly more accurate and better looking than the default AE glow, I’m still not sure that it’s a true inverse square because the blur profile itself is gaussian.  So you are stacking up multiple bell-curves on top of each other.  Sure it looks good but I don’t think it’s 100% mathematically perfect.

-Chris

On 18 Apr 2018, at 4:47 pm, Mathias Möhl <AE-List@media-motion.tv> wrote:

Here is a great Ae tutorial about building your own glow preset based on inverse square law:

Cheers,
Mathias




mamoworld.com
simplify your cgi

Dr. Mathias Möhl
Marlow 52 , 18551 Sagard, Germany
Phone +49 (0)38302 - 88 75 61
info@mamoworld.com



On 18 Apr 2018, at 01:37, Chris Zwar <AE-List@media-motion.tv> wrote:

If you want to do it mathematically then it’s more complex than you think, as you need to consider the gamma of the workspace you’re using.

Making something glow by stacking up multiple layers with different blurs is faking it, but probably the best way to do it in 8 or 16 bit modes.  It’s the way i do it too, although I use the screen mode (not add), and I usually have a desaturated layer near the top set to classic colour dodge to adjust the “hotness”.  From a mathematical perspective, you’re not just looking at the blur profile but also the gamma of the workspace so this multiple layer approach is going to be difficult to calculate.

The alternative approach is to comp in 32 bit linear mode, where you don’t need to stack up multiple layers.  You just have your source layer and make the colour super hot.  Then you blur it and the blur naturally spreads out the light.  The falloff will depend on the type of blur you use.  I did ask a while ago (for exactly the same reason as you) if there’s a blur with an adjustable profile including inverse square, which would be very useful for comping glows in 32 bit float mode.  I can’t remember the answer, but there’s something for you to look at.

So basically - multiple layers using add/screen and blur is an 8/16 bit fudge for a gamma working space like sRGB/HDR.  A single, super hot layer with a single blur in 32 bit linear float is the more natural approach.

Or you can just use a plugin that does it, as lloyd suggests :-)


-Chris
On 18 Apr 2018, at 4:28 am, Byron Nash <AE-List@media-motion.tv> wrote:

So, if I were applying that to say, the blur of a layer, what would be the "distance" variable? I'm stacking several layers with Add transfer modes and variable amounts of blur.

On Tue, Apr 17, 2018 at 2:17 PM Walter Soyka <AE-List@media-motion.tv> wrote:
The inverse square law states that intensity is inversely proportional to the square of the distance from the source. Symbolically:
intensity = 1 / (distance^2)

Doing a little math, when the distance is 1, the intensity is 1. When the distance is 2, the intensity is 0.25. When the distance is 3, the intensity is 0.111. When the distance is 4, the intensity is 0.0625.

walter soyka â–Ľ keen live 

On Tue, Apr 17, 2018 at 1:46 PM, Byron Nash <AE-List@media-motion.tv> wrote:
Always the consummate salesman Lloyd! ;-) 

I think this was more of an experiment to see if I could do it myself and understand the math a bit better. 

On Tue, Apr 17, 2018 at 1:05 PM Lloyd Alvarez <AE-List@media-motion.tv> wrote:
Oooooorrrr you could just use Real Glow! ;-)

Cheers,
Lloyd

On Tue, Apr 17, 2018 at 12:16 PM, Byron Nash <AE-List@media-motion.tv> wrote:
I'm trying to roll my own setup for a better glow. If I'm trying to follow the inverse square law to do the math, would I half/double the amounts at each iteration? Or square root?






 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster