I fooled around with the various options this evening and made a video:
the TLDR is most of the methods discussed in this thread are fine but all have shortcomings.
Also, this was a hasty test for blurring a CG-type element, so some things that underperformed here (ex4: convert to aces and blur) work very well in other contexts.
The setup is here (flame2024.2) for anyone interested. I suggest rendering out the particles before messing around.
also, also, because so much of the particle element was semi-transparent, I made a more opaque element and found I had a lot better control over all five options, whereas only the fully-linear version worked well when everything was small and mostly transparent.
hereâs a still of the results, with Linearized Fill finally pulling itâs weight:
Also, just for a little âscene linear sidebarâ here1, the reason linear gets blooming correct for free is due to the nature of scene linear images. They store real-world values, and anything that is bright is thus astronomically bright. Middle gray is around 0.12 (or 0.18, whatever) and white is up at 10. This means that anything thatâs white is going to bloom like crazy naturally while all less-bright colors arenât going to do much, which is what we see in real life when our cameras donât focus: big pingy circles where lights should be.
1. This isnât aimed at anyone and iâm probably only typing it due to my giant frustration a decade ago when no one could explain to me why âlinearâ was âlinearâ and why it was in any way better than video. Theyâd always say, âthe math worksâ but they really meant âadd worksâ. The real answer is that it mimics real-world values and thus gives more realistic results for various optical effects, chief among them the defocus. and also, the math works.
Y_LENS BLUR all the way. We are having great results with this. It defaults to a gain of 2 by default so I reset this to 1 and then work from there. You can set it to linear or r709 in the last tab. You can change the shapeof the bokeh to match anamorphic or spherical. It works well with depth mattes and if you prremult properly, you can even add chromatic aberrations (in small doses) without any complications.
I canât remember pushing this with bokeh so I must admit I could be slightly off point here.
When I realty want to push defocus and bokeh, I ask for cg to be broken up into layers and use saphire rack defocus comp.
This also has some simple and really effective controls and does bokeh really beautifully
Are you thinking y_lensblur by chance? I too use it all the time, but generally just for a really quick and simple dof where I need to generate a hacked depth matte.
I will add here to what Andyâs saying that it gets double frustrating when people get âlinear pilledâ and donât want to admit that some operations SHOULDNâT be done in linear space. Sharpening, resizing/ filtering, graphic work, are all either inferior in Linear space or just going to give you an endless headache. I do all my beauty work in log because high pass filtering in linear always gets icky. Thereâs a time and place for it. Blurs is the best time and youâll have the bestest time! You can always switch from ACEScg to ACEScc and back again as much as your color managed soul desires. Youâre not stuck in a color space ever, however, never ever convert into a more limited gamut of color space and then try to go back, thatâs destructive and a bad time.
Also a vote for y lens blur, which I turn to first for both stylistic/creative uses as well as more technical stuff. Itâs fast and has a lot of good controls.
You can use âPunchBack Transâ instead of âBlendâ to fix this issue. âPunchBackâ will do the same, but making the image transparent does strange stuff, hence the reason for âPunchBack Transâ
You can keep the defocus + bloom on the Fill, and copy that node and on the Matte, set the bloom = 0.
PunchBack Trans, will do the un-multiply correctly and any extra info outside the matte will be an additive.
I also use this for adding glows on CG or Graphics and the glows will show up nicely.
The extra bonus is you donât need an extra Action layer just for the glow since you baked it in upstream.
When I have a lot of CG elements in a spotâŚI will bake in glows and bloom on the Fill and bake in shadow mattes in the Alpha. So, instead of 3 layers in action, you only need 1.