RGB Saturation Gamut Mapping Approach and a Comp/VFX Perspective

Hey @LarsB,

I’m assuming you found the functions. Here is a pack for the imagery:

Cheers,

Thomas

PS: Nuke script for the terrible blue sphere render :slight_smile:

set cut_paste_input [stack 0]
version 12.1 v1
Camera2 {
 inputs 0
 translate {0 1 2}
 focal 15
 name Camera2
 selected true
 xpos 1280
 ypos 1938
}
Light2 {
 inputs 0
 color {0 0 2}
 translate {0 3 4}
 cast_shadows true
 depthmap_slope_bias 0.01
 name Light3
 selected true
 xpos 1290
 ypos 1842
}
Light2 {
 inputs 0
 color {0 4 0}
 translate {-0.5 1 1}
 cast_shadows true
 depthmap_slope_bias 0.01
 name Light2
 selected true
 xpos 1510
 ypos 1794
}
Light2 {
 inputs 0
 color {4 0 0}
 translate {0.5 1 1}
 cast_shadows true
 depthmap_slope_bias 0.01
 name Light1
 selected true
 xpos 1510
 ypos 1914
}
Diffuse {
 inputs 0
 name Diffuse2
 selected true
 xpos 1390
 ypos 1695
}
Cube {
 translate {0 -50 0}
 scaling {100 100 100}
 name Cube2
 selected true
 xpos 1390
 ypos 1743
}
push $cut_paste_input
Diffuse {
 name Diffuse1
 selected true
 xpos 1280
 ypos 1695
}
Sphere {
 rows 256
 columns 256
 translate {0 1 0}
 name Sphere1
 selected true
 xpos 1280
 ypos 1743
}
Scene {
 inputs 5
 name Scene2
 selected true
 xpos 1400
 ypos 1842
}
push 0
ScanlineRender {
 inputs 3
 conservative_shader_sampling false
 motion_vectors_type distance
 name ScanlineRender3
 selected true
 xpos 1390
 ypos 1959
}
ColorMatrix {
 matrix {
     {1.451439316 -0.2365107469 -0.2149285693}
     {-0.0765537733 1.1762297 -0.0996759265}
     {0.0083161484 -0.0060324498 0.9977163014}
   }
 name ACES2065-1_to_ACEScg5
 selected true
 xpos 1390
 ypos 1983
}
EXPTool {
 mode Stops
 red 2
 green 2
 blue 2
 name Exposure3
 selected true
 xpos 1390
 ypos 2007
}

1 Like