Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to simulate a "Bilateral blur"? #4656

Open
F-Burning opened this issue Dec 16, 2022 · 2 comments
Open

Is there a way to simulate a "Bilateral blur"? #4656

F-Burning opened this issue Dec 16, 2022 · 2 comments
Labels

Comments

@F-Burning
Copy link

Ask a question related to OpenToonz

Adobe has a type of blur called bilateral blur, which allows you to soften the areas of an image, but respecting the edges, giving a result like watercolor, like in this example:

04_00000

Here is the picture without the effect:

001_00000

If I'm not mistaken, this type of blur is not found in the program, and I was wondering if there was a way to emulate it.

@Bracket-H
Copy link

Bracket-H commented Dec 18, 2022

There are many shortcomings in the compositing it seems...perhaps OT, now that it is not confined to its original venue of application anymore, should perhaps outsource these things elsewhere.

Like Blender, or Natron, etc.
I am of the opinion that there lays one of the biggest strength of free and open source software.
There should be no fear of outsourcing an aspect to a dedicated tool since it's ...well, free, libre, etc.

Now, this leaves the question of 'animated columns' but...that is resolved in the output.
Like, if you have a level that is larger than the viewport, and you have an animated camera in there that pans or zooms along that level.
Then, well, the rendered output file will be correctly cropped because the viewport is constricted, and would be cropped in the output of OT as well, at the end of the pipeline.

So you could still render an entire cut with OT, but simply without effects, but exported as a compositor friendly format, either exported in dedicated layers, or as an exr file.

But ...perhaps that is something that DWANGO or Ghibli won't want.
Would be nice, though, to have OT file format support in other toolkits.

Natron for example integrates with GMIC easily, and it would perhaps give Natron some attention, too.

Ah well. Not up to me I suppose, unless I'd fork it but I do not have the skills to maintain such a project.

As for your actual question, well, you could do what I just suggested, but yourself.
Render the stuff you need adjusted, and apply the effect in another program, and then reimport the footage into OT.

An example (I have not fully vetted...so, yeah, but he probably has the parralel render tasks set to high, choking the computer, it should not be this slow)
https://www.youtube.com/watch?v=AfCbjk3h3cw

@RodneyBaker
Copy link
Collaborator

It might be pretty direct to implement a bilateral (blur) shader.
One example here: https://www.shadertoy.com/view/4dfGDH

Interactive example: http://vcg.isti.cnr.it/Publications/2012/BCCS12/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants