Community
Arnold for 3ds Max Forum
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MAXtoA denoising aovs with noice

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
teamSP26J
673 Views, 8 Replies

MAXtoA denoising aovs with noice

Hi, I found this article https://arnoldsupport.com/2020/09/21/maxtoa-denoising-aovs-with-noice/ 
describing how to denoise AOVs. What I don't understand is if i still have to use the output denoising AOVs from the Denoiser render setup tab. Or that one is only for the beauty denoising. 
Thanks

8 REPLIES 8
Message 2 of 9
CiroCardoso3v
in reply to: teamSP26J

You can use my script to create those AOVS

 

https://github.com/CiroCardoso/CiroCardoso/tree/main/3dsMax/AOVWizzard

 

Basically, the way it works is that you create a mirrored version of the AOVs you want to denoise but you set the filter to Variance

CiroCardoso3v_0-1670245056399.png

So you have two files.

 

One EXR has the rendered AOVs the other EXR file has the information for each AOV to be denoised.

 

Then you go to this folder - C:\ProgramData\Autodesk\ApplicationPlugins\MAXtoA_2023

And a quick tip to  load the Command line is to select the path, type CMD and press enter

CiroCardoso3v_1-1670245210102.png

 

CiroCardoso3v_2-1670245224436.png

 

then in terms of the command line it works like this

C:\ProgramData\Autodesk\ApplicationPlugins\MAXtoA_2023\noice.exe
-ef 2 -sr 2 -pr 2 -v 0.5 (this are the noice settings)
-i %IMAGES%/AOVs0003.exr (this loads the EXR with the AOVs)
-i %IMAGES%/variance0003.exr (this loads the EXR with the variance info to denoise the AOVS)
-l diffuse -l specular (this is used to load the AVOs you want to denoise, like diffuse_indirect, etc)
-o %IMAGES%/denoised_AOVs0003.exr (and this to save the output to a specific location)

 

Another quick tip is if you drag and drop the exr file in the cmd window, it will automatically pick up the file's path.

Do not delete the N, Z and diffuse_albedo that my script creates, you need those AOVs for denoising.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 3 of 9
teamSP26J
in reply to: CiroCardoso3v

Thank you for this explanation. Few more questions. Should I denoise all the AOVs ? Even Z and cryptomatte so they match with the rest of the denoised passes?  
Also how does the command change when I want to use this for a sequence? 

Message 4 of 9
CiroCardoso3v
in reply to: teamSP26J

CiroCardoso3v_0-1670248757573.png

 

I believe you have to play around with the -f. The other thing is that the -ef is important so that you have temporal stability. Also, keep in mind that if you are rendering an animation you should have the Lock Sampling Pattern ticked.

 

CiroCardoso3v_1-1670249135431.png

 

No need to denoise cryptomatte, Z and or N. So anything that is DATA doesn't need to be denoised.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 5 of 9
teamSP26J
in reply to: CiroCardoso3v

thanks again, really helpfull 

Message 6 of 9
teamSP26J
in reply to: teamSP26J

So for denoising sequence of AOVs I did following. Rendered my sequence with all the AOVs I use and second sequence with AOVs and variance filters that I want to denoise (no need to denoise data AOVs). Look at how  CiroCardoso3v setup his. Then I ran these commands.

 

set IMAGES="path to my sequences"

set ARNOLD_BIN=C:\ProgramData\Autodesk\ApplicationPlugins\MAXtoA_2023 

%ARNOLD_BIN%\noice ^
-ef 2 -sr 9 -pr 3 -v 0.5 -f 100 ^
-i %IMAGES%\myImage_0000.exr ^
-i %IMAGES%\variance_0000.exr ^

-l diffuse ^
-l specular ^
-l transmission ^

-o %IMAGES%\myOutput_0000.exr


-f defines how many frames to process and _0000 in the -i name defines from which frame to start

so my understanding is that if you want to cancel denoising and then start again (50/100 rendered), you run it like this (-f 50 ; _0050)

 

%ARNOLD_BIN%\noice ^
-ef 2 -sr 9 -pr 3 -v 0.5 -f 50 ^
-i %IMAGES%\myImage_0050.exr ^
-i %IMAGES%\variance_0050.exr ^

-l diffuse ^
-l specular ^
-l transmission ^

-o %IMAGES%\myOutput_0050.exr

 

If you have any improvements on this workflow or I do something wrong, let me know. It takes 3 minutes on 12 core machine to denoise one frame with this setup. Wonder if it is too long. 

 

Message 7 of 9
CiroCardoso3v
in reply to: teamSP26J

3 minutes per frame sounds reasonable. Are you rendering HD?

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 8 of 9
teamSP26J
in reply to: CiroCardoso3v

yes, it is full HD

Message 9 of 9
CiroCardoso3v
in reply to: teamSP26J

Yeah, 3 minutes isn't too much. Now, is up to you if you want to increase the samples in the render and skip denoising or denoising just the AOVs with noise, which usually is the indirect AOVs.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report