AOV Output presets - (Open AI denoiser, ...)

Forums: AOV Output presets - (Open AI denoiser, ...)
3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here viewforum.php?f=18

AOV Output presets - (Open AI denoiser, ...)

Postby neonZorglub » Mon Mar 18, 2024 9:09 pm

neonZorglub Mon Mar 18, 2024 9:09 pm
AOV Output presets - (Open AI denoiser, ...)
(from version 2023.1.2-14.11 and 2024.1 Alpha 3 - 15.05)

A new button has been added to the Output AOV group texture, to create some preset AOV outputs automatically.

There are currently only a few build-in presets, more can be added in the future.
User-created preset can be added. see bellow.

A first typical usage is to use the new OpenAI denoiser to denoise any render pass or AOV layer. (only available in 2024.1 Alpha3)
(and automatically set the denoiser Albedo and Normal, that improve the denoiser quality)

AOV output Presets.png


Reminder:
To create the main AOV group texture, open the AOV Scene settings dialog (from Render Setup / Kernel tab / Render settings : AOV Settings button)
Create an AOV Group texture, and drag and drop it to the material editor.
See more details about the AOV settings here: New AOV system - Step by Step tutorial (2023.1 Beta3) viewtopic.php?f=27&t=82109


In the Output AOV group dialog, press the "Add Preset output..." button, and select one of the options.

The currently available presets are as follow:

"Ai Denoise Beauty" (AiDenoise_Beauty.ms)
"Ai Denoise Reflection" (AiDenoise_Reflection.ms)
"Ai Denoise Diffuse Indirect" (AiDenoise_DiffuseIndirect.ms)
Those 3 presets are basically the same, only changing the Render AOV (pass) to be denoised.
This uses the Open AI denoiser AOV

"Ai Denoise Light Mixer" (AiDenoise_LightMixer.ms)
This uses the Open AI denoiser with the Light Mixer AOV layer (AOL)

Sample_Beauty_Hue80.ms
This the most simple sample to illustrate the use of 2 AOV layers.

(The AiDenoiser presets are only available in 2024.1 Alpha3)

After the new Aov output is created, you can select it in the Octane Viewport, or add it as a Render element for normal rendering.




Customisation - Adding new preset using MaxScript
Those preset are simple Maxscript files, so it's easy to customize and create new ones to match your needs.

Before editing those files, make sure the location is convenient for you:
Open Octane Preferences, Material tab:
Check or set the Preset Material Location type and Preset Material User Folder.
Preset Location setting.png


When pressing the the "Add Preset output..." button, you can select the 'Explore folder' to view and edit the MaxScript files

Note the use of 2 Octane helper functions:

GetExchangeTexmap
grp = OctaneMaxFPI.GetExchangeTexmap 1 -- get the currently edited 'Output AOV group'
The current 'Output AOV group' texmap is set internally to this 'Exchange' texmap before calling the script.

VPPassIdFromName
layer1.input = OctaneMaxFPI.VPPassIdFromName "Reflection" -- Beauty is set as default
The octane render passes are coded as an integer, this functions get the integer corresponding to a pass name.

See more detail on MaxScript usage with Octane: viewtopic.php?f=27&t=62173

Also note that those 5 build-in preset .ms files are embedded inside the Octane plugin, and decompressed to the selected location, when the files do not exist.
(If they are renamed or deleted, new ones will be re-created)
neonZorglub
OctaneRender Team
OctaneRender Team
 
Posts: 899
Joined: Sun Jul 31, 2016 10:08 pm

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 25 guests

Sat Apr 27, 2024 3:18 pm [ UTC ]