Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Getting Cryptomatte for SitoA working.

0 ANTWORTEN 0
Antworten
Nachricht 1 von 1
Anonymous
540 Aufrufe, 0 Antworten

Getting Cryptomatte for SitoA working.

Hi
Someone has asked for Cryptomatte for Sitoa
Here is the solution:
First download cryptomatte from:https://github.com/anderslanglands/alShaders2/releases
add theses variabeles to your OS:
ARNOLD_PLUGIN_PATH = C:\Cryptomatte\bin
MAYA_CUSTOM_TEMPLATE_PATH = C:\Cryptomatte\aexml
MTOA_TEMPLATES_PATH = C:\Cryptomatte\ae

You have to edit 03 files located in Addons\SItoA\Application\Plugins\..
("ArnoldShaderDef.js" ,"ArnoldScenePreferences.js","ArnoldMenu.js")

after line 117, add theses lines to ArnoldShaderDef.js
in_reg.RegisterShader("Crypto_Asset", 1, 0);
in_reg.RegisterShader("Crypto_Object", 1, 0);
in_reg.RegisterShader("Crypto_Material", 1, 0);

after line 153, add these line to ArnoldScenePreferences.js
// Cryptomatte
aov_array.push({ name: "Crypto_Asset", type: siRenderChannelColorType });
aov_array.push({ name: "Crypto_Object", type: siRenderChannelColorType });
aov_array.push({ name: "Crypto_Material", type: siRenderChannelColorType });

after line 234, add this line to ArnoldMenu.js
in_menu.AddCallbackItem("Cryptomatte", "OnShadersMenu");

start Xsi
You will find Cryptomatte under Shaders/Cryptomatte use this one (do not use Cryptomatte that are under DLL Shaders, it won't work!)
make a test scene:
- Select all you objects and create your Cryptomatte, pin the attribute you will need it.
- Go to Scene Options and add crypto_asset, crypto_object, crypto_material, you will find these in Render Channel Output later
- Open Render Manger and add crypto_asset, crypto_object, crypto_material, change format to exr, and Render Current Frame
limitation: Only P, Z, N worked with cryptomatte when merged to one single exr file (the rest are all rendered black, the beauty Pass are renderded as mask)
Hopr this help

520-setup-1.jpg

521-setup-2.jpg

522-cryptomatte.jpg

523-beauty-mask.jpg

Tags (1)
Beschriftungen (1)
0 ANTWORTEN 0

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report