Jump to: Board index » General » Fusion

can i put a hard limit on channel values?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

podaliac

  • Posts: 21
  • Joined: Mon Jul 15, 2019 5:17 pm
  • Real Name: bill borschtwrighthe

can i put a hard limit on channel values?

PostSun Oct 10, 2021 1:42 pm

[hello and thank you]

situation: the exr pass from c4d that i am using in fusion has pixel rgb values that go wayyy beyond white. like, R 3.232123 G 2.94234 B 3.14192 or something.

what i'd like to do: limit each of those channels to 0.95, or even just 1.0

is that possible? perhaps with an expression? maybe this has to be done in the c4d rendering?
but it would be soooo useful making masks from my various passes, subtracting one pass from another, etc.

thanks
Offline
User avatar

TheBloke

  • Posts: 1905
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Location: UK
  • Real Name: Tom Jobbins

Re: can i put a hard limit on channel values?

PostSun Oct 10, 2021 1:55 pm

You can easily clip values to 0..1 by adding a Brightness/Contrast node after the Loader/MediaIn, and ticking "Clip White" and/or "Clip Black". That will cut off higher/lower values, eg values of 2, 35 and 50 would all be changed to 1.0 and -15, -50 and -200 would all be 0.0.

If you want to normalise the values instead, like if the value range is -50.0 .. 35.0 and you want to remap it so that 35 becomes 1.0 and -50 becomes 0.0, and every value in-between is adjusted proportionally, you can do that with the CopyAux node, set up something like this:
Image

As you can see there's a Detect Range button to try and find the correct values for Min/Max. However when I tested it it didn't seem good at detecting both negative and positive ranges at once, eg when the lowest value was -45 and the highest 50 it gave 0..50 so I had to enter -45 manually as the min.
Resolve Studio 17.4.3 and Fusion Studio 17.4.3 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline

podaliac

  • Posts: 21
  • Joined: Mon Jul 15, 2019 5:17 pm
  • Real Name: bill borschtwrighthe

Re: can i put a hard limit on channel values?

PostSun Oct 10, 2021 2:11 pm

thank you tom.
so often there's a simple answer in a node i just never use. [because it had seemed that color correct node covered brightness/contrast just fine]
the normalization info will come in handy too, i'm sure.
much appreciation.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 31 guests