Announcement

Collapse
No announcement yet.

Cryptomattes - understand how they work!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cryptomattes - understand how they work!

    Hi. I wanted to understand how Vay assigns ids to make cryptomattes.

    We've had instances where we render a model and do post work using the masks, then render the model again (with a model change/material addition, not sure exactly on what was done) and all the masks have been re-id'd.

    I guess Im trying to understand what we can change and masks not be affected, and what will cause Vray to reorder and id?

    Thanks

  • #2
    HI, thanks for posting.
    then render the model again (with a model change/material addition, not sure exactly on what was done) and all the masks have been re-id'd
    This is how the cryptomatte works in general. We have no control over this. Please use the MultiMatteElement if you want to keep your masks consistent but it is more time consuming to set up a scene with multimatte.
    Vladimir Krastev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Hi Vladimir, So to confirm, been a long week - If any new objects or materials are added to a scene, then the ids assigned to the objects/materials depending on the crypto mask method chosen, will likely change all the masks?

      Comment


      • #4
        Further to that, just thinking more. If in Nuke you select via obj name, would that get round it Or as you have to select the obj via a colour picker, the colour could change and therefore break the mask as well? So many questions!

        Comment


        • #5
          Hi, actually it keeps the same colours for the previously existing objects/material as long as you don't change material/object names. It assigns colours based on the categories on the dropdown:
          Click image for larger version  Name:	3dsmax_2024-03-15_15-23-39.jpg Views:	0 Size:	22.1 KB ID:	1204608
          Objects need proper names. For instance if you add a new box and leave it with it's default name the cryptomatte won't catch it.
          I personally don't know of other way for masking with cryptomatte in Nuke other than using the colour picker.
          Vladimir Krastev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            Ok interesting so if you have it set to by node name, then you add some new geo in the scene, the old geo will keep the ids/mask colour, and the new geo will pick up new ids, so the masks shouldnt be damaged by adding new geo to a seen/render? Same if you use materials, once a material is made it gets an id and that doesnt change in new renders, even if a new material is made?

            Comment


            • #7
              Hi, this is true. As long as you use the corresponding category from the dropdown and don't change names midway you should be fine.
              For example if you use layer name all object that are in one layer will be one color but if you change the name of the layer the color will change.
              Vladimir Krastev | chaos.com
              Chaos Support Representative | contact us

              Comment


              • #8
                Bit of a mine field isnt it!!
                So it sounds like the id's/colours are being assigned by names, either geo/layer/material. And once assigned they should stay locked unless you change the name? So any new materials/layers/geo will get new id's and not break what has been made before?

                Comment


                • #9
                  Hi, the colors/masks are assigned based on the main categories in the dropdown (post #5). You can combine a few cryptomatte render elements and also combine with the multimatte (post #2).
                  Vladimir Krastev | chaos.com
                  Chaos Support Representative | contact us

                  Comment

                  Working...
                  X