YOUR ACCOUNT

Login or Register to post new topics or replies
jffe
Posts: 2869
Filters: 90
If I'm in the middle of a filter, wiring it up, and say I want only some of the blurred (we'll use *Blur* in this example question, but obviously it could be for any component) image created thus far going to a 2nd component, how can I do that using only 1 blur ? Yeah, I already know, but this to get you all to think, and to maybe help us find a better way even. Assuming anyone replies/guesses/etc., I will post what I have found works in a day or two. Consider this a fun challenge maybe ? I don't think it's been discussed much, or else sorry if I just missed if it has. smile:)

jffe
Filter Forger
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Quote
jffe wrote:
If I'm in the middle of a filter, wiring it up, and say I want only some of the blurred (..) image created thus far going to a 2nd component, how can I do that using only 1 blur ?


I'm not sure I understand what you're saying here.. blend the parts you want blurred and blur them? Assign the different sources to different channels, blur them and extract the channels (given its grayscale)?
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
Sphinx. wrote:
blend the parts you want blurred and blur them?


----That might work in some cases, but for the most part let's say that can't be done, the parts both need blur going into them, but they themselves can't just be blended.

Quote
Sphinx. wrote:
Assign the different sources to different channels, blur them and extract the channels (given its grayscale)?


----That might be a good though complicated way of doing it.





----To maybe further clarify the goal, in the picture (above), the idea is to only use one *Blur* component, and accomplish the same thing.

jffe
Filter Forger
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
ah I see.. you want different blur radii outputs...

Well, for rather simple inputs you could simply adjust the output using different curves. E.g. if the background is black, you could adjust the blackpoint and gamma..
This won't work for high frequency inputs though, as the features would melt together

consider a white circle on black background... you want blur radii outputs of 2.5 and 5.. you blur it using 5, and then adjust a copy output to blackpoint around 50... this contracts the visible range roughly to the half.
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
Sphinx. wrote:
consider a white circle on black background... you want blur radii outputs of 2.5 and 5.. you blur it using 5, and then adjust a copy output to blackpoint around 50... this contracts the visible range roughly to the half.


----That sounds like an intersting way to do it, that could be scaled as well to some degree at least.
----In case anyone is wondering, well, obviously the idea is to sort of cheat and save on render time, because using 2 blurs, even at lower radius settings still adds considerabley %-wise to render time.

jffe
Filter Forger
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
you could also re-map the blur output individually... use one blur into two components, but re-map each.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
Kraellin wrote:
use one blur into two components, but re-map each.


----Err, remap them how exactly ? Once the set amount of blurred output goes into the next component, the amount of blur is unchangable then no ?

jffe
Filter Forger
  Details E-Mail
ssamm
Posts: 364
Filters: 21
Assuming we want to have an image blurred at 5 radius and 2.5 radius, two possible ideas (which give maybe not exactly similar results to the image jffe used above, but fairly close) might be:

1 Chain two blurs each at 2.5, where the second blur would look very similar to a blur with 5 radius. (So the total blur radii calculations aren't 7.5, but just 5).

2. Use one blur at 5 radius, then for the 2.5 radius, blend the 5 radius blurred image over the source image at 50% opacity. (So the blur calculations still only add up to 5 radii, and you use a quick blend component -- which I'm guessing may be faster than calculating 7.5 blur radii.)


(I'm not sure I spent enough time trying to understand the question, but this is what I imagined so far...)


  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
ssamm wrote:
1 Chain two blurs each at 2.5, where the second blur would look very similar to a blur with 5 radius. (So the total blur radii calculations aren't 7.5, but just 5).


---That defeats the purpose of using just one blur, but is something I've done before for other things. smile;)

Quote
ssamm wrote:
2. Use one blur at 5 radius, then for the 2.5 radius, blend the 5 radius blurred image over the source image at 50% opacity. (So the blur calculations still only add up to 5 radii, and you use a quick blend component -- which I'm guessing may be faster than calculating 7.5 blur radii.)


----That would be approx. 2.5 blur radii, although blending the blur with itself might produce a 7.5 blur radii, hmm. See, I knew this was a good topic, new ideas. smile:D

----And since ssamm guessed it, my way was exactly his #2 suggestion, blend the blurred 5 with it's unblurred self, for an approx. 2.5 blur then going out to the 2nd component, thusly getting 2 *Blurs* for the price of one.

jffe
Filter Forger
  Details E-Mail
ssamm
Posts: 364
Filters: 21
jffe,

Quote
----And since ssamm guessed it, my way was exactly his #2 suggestion,

Yay!
I probably wouldn't have thought of it, if you hadn't posited it as a question, though. smile:)

I think it's a nice practice to try to see how we can reduce render times with filters -- since for me, long render times tend to turn me off from further experimenting with certain effects...
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
ssamm wrote:
Yay!
I probably wouldn't have thought of it, if you hadn't posited it as a question, though.


----It's a feature we requested back in the beta days if I recall, but FF pretty much said extensive "math" components wouldn't be implemented until V2 at the earliest. So I had all but forgotten ever wanting it (like many things in life, why bother daydreaming when it isn't anywhere near on it's way ha-ha), until the other night when I really wanted it again ha-ha. The blending trick works alright, and it can be scaled a bit, but it's surely an imperfect solution ultimately. But hey, meanwhile it can save ya 1%-10% render time in a filter pretty easily, unless you need a 100% control and pristine looks, then it's probably not gonna cut it.

jffe
Filter Forger
  Details E-Mail
Mousewrites
Not life size.

Posts: 192
Filters: 20
::blinks at this post, and then skulks back to her 'I use curves sometimes... I swear.' place, where she has cheerios. ::
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Quote
Mousewrites wrote:
::blinks at this post, and then skulks back to her 'I use curves sometimes... I swear.' place, where she has cheerios. ::


----It takes way too long to start thinking in FF terms, but once ya do, you start picking it apart, and looking for ways to subvert what exists ha-ha. smile:p

jffe
Filter Forger
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Quote
jffe wrote:
And since ssamm guessed it, my way was exactly his #2 suggestion, blend the blurred 5 with it's unblurred self, for an approx. 2.5 blur then going out to the 2nd component, thusly getting 2 *Blurs* for the price of one.


Hmm.. So you simply blend a blurred source with the unblurred source... I can understand how this would work for radii < 1.. but > 1 it seems like a rather far fetched approximation... think of radius = 50.. blending that 50% on the source doesn't give something that looks like 25.. it gives you a semitransparent blob smile:D

Let me try that tonal remapping approach I talked about.. I'll post a an example later..
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Allright.. here's a hardcoded white on black edition of the remap idea. It still needs alot of tweaking, and I didn't put much analytical brainwork into it - I know there is a specific relation between the brightness decrease and blur radius, which most probably can be compensated better than I do here... and remember this only works for simple inputs like a white frame on black background - plug in an image and you'll get extreme over exposure or something.

Faux Variblur - Tonal Variation.ffxml
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
after

  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
  Details E-Mail
jffe
Posts: 2869
Filters: 90
Very smooth, compared to the blend half & half method. Your method could definitely be used for something(s) and look much nicer. I was just trying to think and get people thinking about a fast & dirty way to get 1/2 or so of any output routed somewhere else without doubling that component and costing more render time and needing a 2nd control etc. If you ever brainstorm a way to do it as smoothly with any component and even using image input, that might very well become snippet of the year. smile:D

jffe
Filter Forger
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,736 Registered Users
+14 new in 30 days!

153,582 Posts
+5 new in 7 days!

15,355 Topics
+5 new in 30 days!

Create an Account

Online Users Last minute:

24 unregistered users.