Author Topic: AgX in Corona  (Read 7163 times)

2023-09-13, 12:36:19

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
https://github.com/sobotka/AgX/discussions/3

edit: more complete set of AgX luts for Corona in post #8.


« Last Edit: 2023-09-21, 10:55:48 by piotrus3333 »
Marcin Piotrowski
youtube

2023-09-13, 13:24:38
Reply #1

Tom

  • Active Users
  • **
  • Posts: 236
    • View Profile
    • www
Great setup thanks. Works really nicely to achieve soft renders. I found that adding a Tone Curve is useful to bring back some contrast.

2023-09-13, 21:46:10
Reply #2

arqrenderz

  • Active Users
  • **
  • Posts: 996
  • https://www.behance.net/Arqrenderz1
    • View Profile
    • arqrenderz
Saw it on a blender video, will try those luts ! Thx!

2023-09-15, 10:02:58
Reply #3

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
quick look at ACESOT vs AgX punchy luts:

sample used - env map by Greg Zaal
https://polyhaven.com/a/shanghai_bund
Marcin Piotrowski
youtube

2023-09-15, 10:07:30
Reply #4

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
or maybe compare this with AgX for more fair comparison (update to aces1.3):

sample used - env map by Greg Zaal
https://polyhaven.com/a/shanghai_bund
Marcin Piotrowski
youtube

2023-09-15, 10:21:03
Reply #5

James Vella

  • Active Users
  • **
  • Posts: 540
    • View Profile
While they both have issues with blowout areas, from my perspective I like the AcesOT more than the AGXLuts. The AGX looks washed out to me, losing a lot of contrast. Maybe I'm just used to how modern phones adjust photos to look nice and punchy.

2023-09-15, 11:40:25
Reply #6

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
While they both have issues with blowout areas, from my perspective I like the AcesOT more than the AGXLuts. The AGX looks washed out to me, losing a lot of contrast. Maybe I'm just used to how modern phones adjust photos to look nice and punchy.

contrast is a secondary element here. AgX Appearance Punchy is just one of demo looks supplied by the author. you can make it as contrasty as you need it to be.

it is all about handling of hot saturated colours (Corona didn't even bother with updating acesot but I guess it's a different discussion)

acesot vs agx with matched contrast attached:

edit:
sample used - env map by Greg Zaal
https://polyhaven.com/a/shanghai_bund
« Last Edit: 2023-09-15, 11:54:45 by piotrus3333 »
Marcin Piotrowski
youtube

2023-09-19, 09:47:15
Reply #7

muoto

  • Active Users
  • **
  • Posts: 70
    • View Profile
Interesting results with AGX. Could you export the lut's for the other contrasts looks as well ?

thanks!

2023-09-19, 11:26:51
Reply #8

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
mP_Corona_AgX.zip

edit:
looks punchy and golden are based on AgX Base with power, slope, offset and saturation transforms. Base is created from logarithmic encoding Kraken with 1D lut supplied with original AgX ocio config: https://github.com/sobotka/AgX
« Last Edit: 2023-09-19, 11:35:46 by piotrus3333 »
Marcin Piotrowski
youtube

2023-09-19, 11:29:15
Reply #9

muoto

  • Active Users
  • **
  • Posts: 70
    • View Profile
actually, would even be better to have OCIO in corona, no ?...

2023-09-19, 12:07:05
Reply #10

burnin

  • Active Users
  • **
  • Posts: 1535
    • View Profile
^^Yes... more on & in-depth. 

2023-10-11, 00:08:43
Reply #11

sebastian___

  • Active Users
  • **
  • Posts: 197
    • View Profile
AgX Appearance Punchy is just one of demo looks supplied by the author. you can make it as contrasty as you need it to be.

I found out about Agx a few weeks ago and I tried to modify or make new looks to better approximate the contrast of the default sRGB. I tried it in blender, even though I don't use blender but it was easier to test it there.

And the more I increased the contrast, the more I feel like I was "breaking" the Agx. But at the same time there are many ways you can manipulate the image in OCIO so maybe I did it wrong ?


- !<Look>
    name: Punchy
    process_space: AgX Base
    description: .......
    transform: !<CDLTransform> { power: [ 1.3, 1.3, 1.3 ], sat: 1.2 }

  - !<Look>
    name: Punchy Full
    process_space: AgX Base
    description: Trying to increase the contrast, this one seems ok
    transform: !<CDLTransform> { power: [ 1.35, 1.35, 1.35 ], sat: 1.4 }
   
 punchy double : this one is more contrasty but in certain situation maybe negates a bit of the AGX advantages ??

  - !<Look>
    name: Punchy Double
    process_space: AgX Base
    transform: !<GroupTransform>
      children:
        - !<CDLTransform> { power: [ 1.35, 1.35, 1.35 ], sat: 1.2 }         
        - !<CDLTransform> { slope: [1.1, 1.1, 1.1], power: [ 1.1, 1.1, 1.1 ], sat: 1.2 }         
        - !<ExponentTransform> {value: [1.1, 1.1, 1.1, 1]}      

2023-10-11, 01:12:45
Reply #12

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
AgX Appearance Punchy is just one of demo looks supplied by the author. you can make it as contrasty as you need it to be.

I found out about Agx a few weeks ago and I tried to modify or make new looks to better approximate the contrast of the default sRGB. I tried it in blender, even though I don't use blender but it was easier to test it there.

And the more I increased the contrast, the more I feel like I was "breaking" the Agx. But at the same time there are many ways you can manipulate the image in OCIO so maybe I did it wrong ?


- !<Look>
    name: Punchy
    process_space: AgX Base
    description: .......
    transform: !<CDLTransform> { power: [ 1.3, 1.3, 1.3 ], sat: 1.2 }

  - !<Look>
    name: Punchy Full
    process_space: AgX Base
    description: Trying to increase the contrast, this one seems ok
    transform: !<CDLTransform> { power: [ 1.35, 1.35, 1.35 ], sat: 1.4 }
   
 punchy double : this one is more contrasty but in certain situation maybe negates a bit of the AGX advantages ??

  - !<Look>
    name: Punchy Double
    process_space: AgX Base
    transform: !<GroupTransform>
      children:
        - !<CDLTransform> { power: [ 1.35, 1.35, 1.35 ], sat: 1.2 }         
        - !<CDLTransform> { slope: [1.1, 1.1, 1.1], power: [ 1.1, 1.1, 1.1 ], sat: 1.2 }         
        - !<ExponentTransform> {value: [1.1, 1.1, 1.1, 1]}

- !<ColorSpace>
    name: mP aces contrast
    family: Imagery
    equalitygroup: ""
    bitdepth: unknown
    description: mP aces contrast
    isdata: false
    allocation: uniform
    from_scene_reference: !<GroupTransform>
      children:
        - !<ColorSpaceTransform> {src: Linear BT.709, dst: AgX Log (Kraken)}
        - !<FileTransform> {src: AgX_Default_Contrast.spi1d}
        - !<FileTransform> {src: mP_aces_contrast_2.3dl}

lut would be a better way to add your look. this is simple way to do that (with just additional lut on top). one spi1d lut would be more precise.
Marcin Piotrowski
youtube

2023-10-12, 12:55:41
Reply #13

joelRVC

  • Users
  • *
  • Posts: 1
    • View Profile
Hi. You could try this https://github.com/EaryChow/AgX
It is a version of AgX that has some additions: Includes and handles wide color space gamuts, preserves hue better across the range of intensities, has contrast looks made specifically for AgX

2023-10-12, 16:32:40
Reply #14

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
Thank you Piotrus.
I like Kraken.
What's good about ACESOT that this one doesn't seem to help with is with highlights and the color shift in the hue of highlight gradients.
Good to have though.

2023-10-12, 17:34:58
Reply #15

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Thank you Piotrus.
I like Kraken.
What's good about ACESOT that this one doesn't seem to help with is with highlights and the color shift in the hue of highlight gradients.
Good to have though.

sounds like something is not right with the setup.
screenshoot?
Marcin Piotrowski
youtube

2023-10-12, 17:43:43
Reply #16

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
Here you go.
The higher I go with AgX the more pinkish hues I get.

EDIT: with Kraken it's better than with base.

2023-10-12, 17:44:59
Reply #17

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Thank you Piotrus.
I like Kraken.
What's good about ACESOT that this one doesn't seem to help with is with highlights and the color shift in the hue of highlight gradients.
Good to have though.

also - is this what is good about ACES OT ??:
https://forum.corona-renderer.com/index.php?action=dlattach;topic=40952.0;attach=188097
Marcin Piotrowski
youtube

2023-10-12, 17:48:16
Reply #18

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Here you go.
The higher I go with AgX the more pinkish hues I get.

EDIT: with Kraken it's better than with base.

you need 2 luts: A and B. B needs “logarythmic” option on. edit: both at 1.0 opacity:
https://forum.corona-renderer.com/index.php?action=dlattach;topic=40952.0;attach=188022
Marcin Piotrowski
youtube

2023-10-12, 17:50:14
Reply #19

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
Here you go.
The higher I go with AgX the more pinkish hues I get.

EDIT: with Kraken it's better than with base.

you need 2 luts: A and B. B needs “logarythmic” option on. edit: both at 1.0 opacity:
https://forum.corona-renderer.com/index.php?action=dlattach;topic=40952.0;attach=188022

Sorry! I missed that screenshot. I went straight to your post #8. I'll try this setup.

2023-10-12, 18:25:07
Reply #20

lupaz

  • Active Users
  • **
  • Posts: 954
    • View Profile
It's great. Like the guy in the video said, it gives you something to work with. Definitely needs contrast and saturation, but as a starting point is very good.

Excellent video this one:

^^Yes... more on & in-depth. 

2023-10-14, 09:24:14
Reply #21

muoto

  • Active Users
  • **
  • Posts: 70
    • View Profile
actually, the trick of the two luts, one for the color matrix (especially for controling the "above 1" color values), one for the curve is pretty interesting.

i made a few of my own for the matrix and for the 1dlut curve, maybe less scientifically correct as the one of piotrus, but the results are nice !

thanks for the tip !

2023-10-14, 10:06:21
Reply #22

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
actually, the trick of the two luts, one for the color matrix (especially for controling the "above 1" color values), one for the curve is pretty interesting.

i made a few of my own for the matrix and for the 1dlut curve, maybe less scientifically correct as the one of piotrus, but the results are nice !

thanks for the tip !

unfortunately it's impossible to be really precise with luts in Corona:
https://forum.corona-renderer.com/index.php?topic=40988.0

- you can (probably, I have not tried) improve my matrix lut by creating one that will cover 0 - 16.something float range
- 1dlut as the second lut is the right way to go (in that case look lut can be the third one, again - probably - would be still precise enough)

edit: in general, considering ACES OT not being updated with important aces fixes from 2021, and post being done in CIE, AgX is great option for Corona users.
« Last Edit: 2023-10-14, 10:11:04 by piotrus3333 »
Marcin Piotrowski
youtube

2024-03-26, 13:43:56
Reply #23

zhao liang

  • Active Users
  • **
  • Posts: 10
    • View Profile
Hello, do you need to add OCIO configuration environment variables in the corona renderer?

2024-03-26, 13:48:47
Reply #24

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Hello, do you need to add OCIO configuration environment variables in the corona renderer?

Hi, sorry, but I am not sure what exactly you mean, and also there is no need to report your own posts to moderators. :)
Can you please explain what kind of help or answer you are seeking?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-03-26, 13:54:26
Reply #25

zhao liang

  • Active Users
  • **
  • Posts: 10
    • View Profile
Hello, I need the moderator's answer because in addition to adding lut, do I need to load the ocio environment variable of AGX when setting up AGX?

2024-03-26, 14:34:45
Reply #26

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Please note that you should only report posts if you need some help from forum moderators - for example if you posted your forum thread in a wrong forum section or if you would like to report spam.

Regarding the environment variable option - it is currently not supported. If you set Corona as your renderer and select the "OCIO - Environment Variable" you will see an error message from Corona.
See: https://support.chaos.com/hc/en-us/articles/20283060170257
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2024-03-26, 15:37:08
Reply #27

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Hello, do you need to add OCIO configuration environment variables in the corona renderer?

no, just luts.
created with legacy gamma setup in 3dsMax 2024 in mind.
Marcin Piotrowski
youtube

2024-03-26, 17:38:56
Reply #28

zhao liang

  • Active Users
  • **
  • Posts: 10
    • View Profile
Thank you for your answers! Is it useful to add ocio Vray renderer to environment variables?

2024-03-26, 18:51:14
Reply #29

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Thank you for your answers! Is it useful to add ocio Vray renderer to environment variables?
VRAY_VFB_OCIO - no.
OCIO - yes, if you are using only/mostly one ocio config.

Marcin Piotrowski
youtube

2024-03-27, 02:10:02
Reply #30

zhao liang

  • Active Users
  • **
  • Posts: 10
    • View Profile
Thank you for your answers!

2024-04-18, 11:24:12
Reply #31

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
More of AgX by Troy Sobotka - this time his Resolve version of it (quite different) married with a film look from Arri:
https://forum.corona-renderer.com/index.php?topic=41947.msg223544#msg223544

note: it does require a string option to turn off VFB's sRGB view lut so might be a bit more cumbersome to use.
Marcin Piotrowski
youtube