Jump to content


Photo

Multistep Blur / Multistep Glow

Fuses Blur Gringo Macros

  • Please log in to reply
19 replies to this topic

Poll: Multistep Blur / Multistep Glow (40 member(s) have cast votes)

Do you want a similar MultistepGlow tool?

  1. Yes, I need it to make multistep glow faster using just 1 node (34 votes [85.00%])

    Percentage of vote: 85.00%

  2. No, I can easily add a Merge and a CC to make glow from the MultistepBlur tool (4 votes [10.00%])

    Percentage of vote: 10.00%

  3. No, I prefer connecting 16 Glow nodes to make the same effect (2 votes [5.00%])

    Percentage of vote: 5.00%

  4. No, I like the effect from a single original Glow tool (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 29 August 2008 - 12:15 PM

Meet a new MultistepBlur tool based on the FuseBlur.Fuse by Isaac Guenard!

It's extremely useful when you want to create realistic glow from an object of complicated shape.

Coding by Roman Fedotov.

Three pictures below show the result of applying a regular Glow with Glow Size = 20, with Glow Size = 200 and a MultistepBlur with BlurSize = 5..200 that is merged over the source picture in the additive mode.
You can see that the small sized Glow only makes shine the bolt itself and doesn't affect the environment.
The large sized Glow makes a rounded spot from the boldest parts of the bolt.
Whilst the MultistepBlur makes shining that begins from the bolt and smoothly decays far away from it.
Attached File  Glow20.jpg   15.15KB   416 downloadsAttached File  Glow200.jpg   15.87KB   470 downloadsAttached File  MultistepBlur200.jpg   19.09KB   499 downloadsBlur200.jpg]

Attached File  bzMultistepBlur.Fuse.txt   7.53KB   160 downloads
Attached File  MultistepBlur_Example.comp   9.96KB   124 downloads
Attached File  Lighting.jpg   23.85KB   372 downloads

#2 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 29 August 2008 - 03:37 PM

Thanks for that. Can't test it now but will try soon enough!

Cheers.

#3 ShadowMaker SdR

ShadowMaker SdR

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 674 posts

Posted 30 August 2008 - 01:56 PM

It looks beautiful. I'll be sure to add it to my tools!

#4 marvin

marvin

    Member Pig

  • Adv Members
  • PipPip
  • 24 posts

Posted 01 September 2008 - 03:51 AM

Very nice. I'll sure check this out, thanks! :)

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 09 October 2008 - 03:12 PM

A new version from Roman Fedotov.
Now it can tint the blur steps to a gradient.

Attached Files



#6 Drazen

Drazen

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 86 posts

Posted 09 October 2008 - 06:33 PM

very nice, can't wait to put it somewhere in my flow :)

#7 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 11 October 2008 - 02:47 PM

A full description at VFXPedia.com:
http://vfxpedia.com/...=Multistep_Blur

#8 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 10 June 2010 - 07:59 AM

Is there a version for Fusion 6? I have the feeling that it acts wanky sometimes in 6.

#9 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 10 June 2010 - 08:43 AM

Unfortunately, it doesn't perform very well in 6.x (sometimes it starts to accumulate brightness with no control).

The Man who made the programming part now works at a different studio.
Maybe, someone could adapt it. Would be really great.

#10 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 10 June 2010 - 09:38 AM

Good to know. Thanks.

#11 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 09 November 2010 - 07:15 PM

I think I have been able to hunt down the brightness problem. As mentioned in the "Fuse Quastions" thread, the result image that is created in the Process() function needs to be cleared to black. I'll upload the new version to Vfxpedia as well.

(remove .txt)


Attached Files



#12 robocop

robocop

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 485 posts

Posted 10 November 2010 - 01:25 AM

:o
Thank you Stefan for this!
Its little bit lol ) becouse reason for that (Fuse Quastions) thread were exact the same target - revamp the multiStepBlur :) and teaching Fuses at all by the way.
And literally - these days Gringo doing some tests of this new fuse :blush:

So, thing that you have mention about initializing (by manually clearing buffer) of tmp image - is a first idea that i come with.. But when i try that - it did not justify my expectations - becouse Alpha channel issue.
If you apply your fuse to the input with solid alpha = 1, (independently on min max blur values) for example, then you`ll see what a`m talking about.


I hope Gringo will posting here in these week new approved version .

#13 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 10 November 2010 - 03:16 AM

Ah, I see what you mean about the alpha thing.But that's not related to the brightness bug, it's how the Fuse combines its blur passes. They don't add up to the original brightness. If you have 2 steps, the first one will be multiplied by 50% and the second step will be mixed into that by another 50% resulting in only 75% brightness (if the alpha was 1 to begin with). It's like when you add Layers in Photoshop with 50% opacity each. They don't add up to 100%.

One could either change the way the passes are combined or you multiply the result to bring it up to 1 again (but maybe rounding errors make this impossible if you don't work in float).

Add these two lines before "result = img:BlendOf(result, blend)" at the end of the script:

local normalize = 1 / (1- ((1 - blendCoeff) ^ count))
result:Gain(normalize, normalize, normalize, normalize)


cheers
Stefan

#14 robocop

robocop

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 485 posts

Posted 10 November 2010 - 04:38 AM

by the way, Stefan, good idea with progress indiactor!

probably this fuse is good candidate for move to OpenCL (becouse very slow on cpu). and i place my head to OpenCL at free time :mf_krider:

#15 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 27 November 2010 - 03:58 PM

Thank you guys for the new version, it works fine in Fusion 6.x!

See the updated description page: http://vfxpedia.com/...=Multistep_Blur

Would be nice to make a MultistepGlow.Fuse as well, based on the MultistepBlur.Fuse and Glow.Fuse :)





Also tagged with one or more of these keywords: Fuses, Blur, Gringo, Macros

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users