Jump to: Board index » General » Fusion

How to use cryptomatte to select objects in fusion

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

Marc Poirier

  • Posts: 62
  • Joined: Wed Jul 22, 2015 6:48 pm
  • Location: Toronto, Ontario

How to use cryptomatte to select objects in fusion

PostThu Jun 16, 2022 9:47 pm

Hello.. I'm starting to use cryptomatte in fusion.. very powerful feature, but, I'm stuck...

I have an hourglass that I need to make bluish and the sand needs to stay sand color..

I see my cryptomatte color differences, but if I move the cursor over the sand or a character inside the hourglass, it doesn't select that object, but rather the glass...

So how to I go about to isolate object inside a glass with my cryptomatte...

thx.

Marc.
Marc Poirier, Content Producer | Mach1 Studio
System info | AMD Ryzen 9 5950X 16 core | 64 Gigs Ram | RTX 3090 24gigs VRam | M.2 1TB System Drive | M.2 2TB video/cache drive | 8 TB USB C External Video Drive
Offline

bentheanimator

  • Posts: 454
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Re: How to use cryptomatte to select objects in fusion

PostSat Jun 18, 2022 7:44 am

It may not work because I've never tried to select an object behind another object, because that's technically what you're trying to do BUT Cryptomattes are bases on either a material name or an object name. So if you know the name of what it is you're trying to select, you can just type it in instead of using the eyedropper. You may be able to do it in this case because it's still visible? Otherwise I would suggest using puzzle mattes for those objects. It will give you options for allowing refractions.
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch
Offline
User avatar

Marc Poirier

  • Posts: 62
  • Joined: Wed Jul 22, 2015 6:48 pm
  • Location: Toronto, Ontario

Re: How to use cryptomatte to select objects in fusion

PostSat Jun 18, 2022 4:24 pm

Hello.. thx for the answer.. I did not try to select the object by name.. Will definitely try that..

And is "puzzle mattes" within Fusion? or it's something I need to export or setup in my 3D software.. (Using Blender and Cinema 4D).

thx.

Marc.
Marc Poirier, Content Producer | Mach1 Studio
System info | AMD Ryzen 9 5950X 16 core | 64 Gigs Ram | RTX 3090 24gigs VRam | M.2 1TB System Drive | M.2 2TB video/cache drive | 8 TB USB C External Video Drive
Offline

Sander de Regt

  • Posts: 3574
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: How to use cryptomatte to select objects in fusion

PostSat Jun 18, 2022 7:19 pm

You didn't mention if you were using the cryptomatte plugins for Fusion or if you were just loading cyrptomatte renders in a regular loader.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Marc Poirier

  • Posts: 62
  • Joined: Wed Jul 22, 2015 6:48 pm
  • Location: Toronto, Ontario

Re: How to use cryptomatte to select objects in fusion

PostSat Jun 18, 2022 10:07 pm

I’m using the reactor plugin indeed
Marc Poirier, Content Producer | Mach1 Studio
System info | AMD Ryzen 9 5950X 16 core | 64 Gigs Ram | RTX 3090 24gigs VRam | M.2 1TB System Drive | M.2 2TB video/cache drive | 8 TB USB C External Video Drive
Offline

Sander de Regt

  • Posts: 3574
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: How to use cryptomatte to select objects in fusion

PostSun Jun 19, 2022 9:09 am

Ah well, I was hoping that not using it was the magic source for a solution.

It might help to open this thread over on WSL since the Cryptomatte expertise over there is slightly higher.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

bentheanimator

  • Posts: 454
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Re: How to use cryptomatte to select objects in fusion

PostTue Jun 21, 2022 9:23 pm

So a puzzle matte is just a generic name for the red, green and blue matte you can generate from a 3D rendering set up. It was the standard before Cryptomattes came along gave us all back a bit of sanity. You assign an ID of 1, 2 or 3 to all the objects you want rendered in either red, green or blue. Then, in your compositor of choice, you'd select one of the three colors as a key and away you go. With all the sub pixel issues you can imagine.

The other trick with Cyptomattes is to assign an override color of black to you entire scene and turn off all your lights. The scene will render a beauty of black ultra fast and then output the Cryptomattes as normal since they are object based and not color based. Since your trying to get to something hidden by some glass, you can hide the glass object and render a specific Crypto pass with the intended objects visible.

The only trick becomes the refraction index of the glass and using the Crypto in the warpped reflections. This is where a puzzle pass with the colors reflected accurately will probably be a better choice?
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch
Offline
User avatar

Marc Poirier

  • Posts: 62
  • Joined: Wed Jul 22, 2015 6:48 pm
  • Location: Toronto, Ontario

Re: How to use cryptomatte to select objects in fusion

PostThu Jun 23, 2022 2:41 pm

I actually got it going by typing the object's name in the cryptomatte object name... Selected my character behind the glass, and I was able to color correct only that !!

Thanks for your help!!
Marc Poirier, Content Producer | Mach1 Studio
System info | AMD Ryzen 9 5950X 16 core | 64 Gigs Ram | RTX 3090 24gigs VRam | M.2 1TB System Drive | M.2 2TB video/cache drive | 8 TB USB C External Video Drive
Offline

bentheanimator

  • Posts: 454
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Re: How to use cryptomatte to select objects in fusion

PostWed Jun 29, 2022 4:44 am

Out of curiosity, did you use materials or objects to define the Cryptomattes? I wonder if using materials allows it to be selectable in reflections vs "object" that would have created a matte from the glass geometry.
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch
Offline

Hendrik Proosa

  • Posts: 3037
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: How to use cryptomatte to select objects in fusion

PostWed Jun 29, 2022 7:23 am

Material vs object would probably make no difference. How picking is implemented here I don’t know exactly but if it selects the id with biggest coverage per pixel you will still get glass, because material samples give same coverage as objects.
I do stuff
Offline
User avatar

Marc Poirier

  • Posts: 62
  • Joined: Wed Jul 22, 2015 6:48 pm
  • Location: Toronto, Ontario

Re: How to use cryptomatte to select objects in fusion

PostWed Jun 29, 2022 12:53 pm

bentheanimator wrote:Out of curiosity, did you use materials or objects to define the Cryptomattes? I wonder if using materials allows it to be selectable in reflections vs "object" that would have created a matte from the glass geometry.


I use both.. in case I needed to call all the same materials, that were not necessarily the same objects.

But for that case, I typed in the object name..

cheers
Marc Poirier, Content Producer | Mach1 Studio
System info | AMD Ryzen 9 5950X 16 core | 64 Gigs Ram | RTX 3090 24gigs VRam | M.2 1TB System Drive | M.2 2TB video/cache drive | 8 TB USB C External Video Drive

Return to Fusion

Who is online

Users browsing this forum: No registered users and 11 guests