Author Topic: Cryptomatte playground!  (Read 9704 times)

2022-02-11, 15:29:32
Reply #15

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5434
    • View Profile
You can see how Photpshop handles the Cryptomatte masks iwith the aid of the Exr-IO in this V-ray tutorial: https://vrayschool.com/vray-cryptomatte-exr-in-photoshop/

Yep, good one! This is also what to expect from Corona from what I've seen, and how to work with it.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2022-02-11, 15:56:36
Reply #16

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8781
  • Let's move this topic, shall we?
    • View Profile
    • My Models
As nice and cool cryptomatte is, it would not make me get back to photoshop. Nope, thank you :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-02-11, 16:03:04
Reply #17

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5434
    • View Profile
You may want to send a feature request to Affinity ;)

Software that can handle cryptomatte is listed as Autodesk Flame, After Effects, Nuke, Blender (Compositing Nodes), Houdini (COP), V-Ray (which can handle them in the V-Ray frame buffer itself), and Photoshop with Exr-IO 2. If anyone knows of more, feel free to comment!
Tom Grimes | chaos-corona.com
Product Manager | contact us

2022-02-11, 16:56:29
Reply #18

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8781
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You may want to send a feature request to Affinity ;)

I will. I already saw some similar requests on their forum, but they are surprisingly very few - i guess not many 3D designers use Affinity products.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-09-17, 17:19:17
Reply #19

mlon

  • Active Users
  • **
  • Posts: 36
    • View Profile
Hey there, is it possible to have cryptomatte work without shading enabled?
If i disable shading in render overrides settings it gives no alpha masks in the crx.
ID for instance does work when shading is disabled. This saves allot of time.

mlon

2023-09-18, 16:46:36
Reply #20

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12714
  • Marcin
    • View Profile
Cryptomatte relies on shading (things like reflections, refractions, etc). So I don't think this is possible. If you need "simpler" masking with no shading, then using the other masking elements sounds like a better approach: https://docs.chaos.com/display/CRMAX/Render+Elements#heading-CMasking
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2023-09-18, 17:43:53
Reply #21

Ink Visual

  • Active Users
  • **
  • Posts: 159
    • View Profile
Is there any way to reduce the number of information that is stored in CXR, and limit it to only elements crucial for Cryptomatte to work?
The main cxr file output often results in extremely large file size. This makes it unusubale for VFX, (I mean try to manage hundreads of frames of 10GB size each).

For most projects we only save the main pass as .CXR, and all the other render elements are saved as JPEGs (with help of Pulze SM).
Cryptomatte element can also be saved as .CXR (keeping everything else as JPEGs), but as I understand, by curent design, this doesn't matter, becaouse in order to use Cryptomatte we still have to use main .cxr pass anyways. Can that be changed, so that if cryptomatte element is set with .CXR extension, it contains all the data (and only that data) that is needed for it to work?

I'm just not sure what contributes to .CXR file size, maybe there's some other way to reduce it for cryptomatte use?
« Last Edit: 2023-09-18, 17:53:07 by Ink Visual »

2023-09-19, 08:51:53
Reply #22

marchik

  • Active Users
  • **
  • Posts: 256
    • View Profile
Is there any way to reduce the number of information that is stored in CXR, and limit it to only elements crucial for Cryptomatte to work?
The main cxr file output often results in extremely large file size. This makes it unusubale for VFX, (I mean try to manage hundreads of frames of 10GB size each).

For most projects we only save the main pass as .CXR, and all the other render elements are saved as JPEGs (with help of Pulze SM).
Cryptomatte element can also be saved as .CXR (keeping everything else as JPEGs), but as I understand, by curent design, this doesn't matter, becaouse in order to use Cryptomatte we still have to use main .cxr pass anyways. Can that be changed, so that if cryptomatte element is set with .CXR extension, it contains all the data (and only that data) that is needed for it to work?

I'm just not sure what contributes to .CXR file size, maybe there's some other way to reduce it for cryptomatte use?

+1
 I was glad to see cryptomatte support, but due to the need to store huge CXRs for sequences, I just stopped using it

2023-09-19, 11:45:27
Reply #23

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12714
  • Marcin
    • View Profile
CXR stores all information used by Corona for rendering, so it can sometimes get pretty huge, yes. The size comes from:
- All render elements including LightMix (if enabled)
- The hidden denoising elements (they are not visible in the VFB but they are used by denoisers - this way you can, for example, open a CXR in CIE and denoise it there)
- Internal elements used by Corona for the "resume from file" feature (importance, weights) - these should not be heavy though

Going back to the original issue, I think we can consider two separate things here:
- CXR files can get huge, maybe we could improve this. Maybe a new file format with only the cryptomatte content without the extra stuff? Maybe CXR but user can choose what exactly to store in it?*
- The way Cryptomatte is saved is currently not ideal. Maybe we could make it save as a regular render element? Optimize the process some other way?*

* Please do not treat these as any kind of promises. Just thinking out loud. :)

Anyway, we now have this logged in our internal systems:
CXR files are huge: (Internal ID=1204935321)
Cryptomatte saving improvements: (Internal ID=949161620)
 
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2023-09-20, 03:52:34
Reply #24

marchik

  • Active Users
  • **
  • Posts: 256
    • View Profile

- The way Cryptomatte is saved is currently not ideal. Maybe we could make it save as a regular render element? Optimize the process some other way?*


Yes, in my case, I usually render more complex sequences (where post-processing using cryptomatte may be needed) on render farms, and even the banal transfer of 1000 .cxr files via the Internet to my computer can be painful.

 It would be cool if we could save a separate, not so heavy rendering element of the cryptomatte and then, say, in Fusion, do a channel merge and use it as usual.

2023-09-20, 09:02:54
Reply #25

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
Still +1 (ever since Cryptomatte has been implemented). It's on top of my list of Corona's

"Missing/lost or unusable features (with the possible exception of a developers teapot scene)"


Good Luck


Never underestimate the power of a well placed level one spell.

2023-09-21, 09:43:45
Reply #26

Place

  • Active Users
  • **
  • Posts: 43
    • View Profile

2023-09-29, 10:26:34
Reply #27

busseynova

  • Active Users
  • **
  • Posts: 21
    • View Profile
Any plans to add cryptomatte by material to the options?

I used this all the time in VRay and I'm struggling without it!

2023-09-29, 12:18:33
Reply #28

dj_buckley

  • Active Users
  • **
  • Posts: 872
    • View Profile
Any plans to add cryptomatte by material to the options?

I used this all the time in VRay and I'm struggling without it!

+1 always do my masks 'By Material'