Page 1 of 1

Render buffer Comparator

PostPosted: Mon Mar 18, 2024 9:14 pm
by neonZorglub
Render buffer Comparator
(from version 2023.1.2-14.11 and 2024.1 Alpha 3 - 15.05)

The Octane viewport has a new button (A|B) for the rendered image comparator.
The first time it is clicked, this will store the current rendered image in memory (history slot 1), and start the comparator mode.
This displays both the stored image and the current render side by side.
You can adjust the screen division by sliding the separator line.
When the comparator is active, a click on the 'A|B' button with stop the comparator mode.

CompareAB_1.png


For settings and use of more slots, use the context menu on this button.

-Store render to Image History (slot xx)
-Compare to Image History (slot xx)
-Stop Compare
-Clear History
-Left Right
-Up Down
-Swap A B

CompareAB.png



The 2 options Comparator type (left right / up down) and Swap AB are stored in the max scene file.
The default values (for new scenes and loading old scenes) can be set in the Preferences / Viewport tab.

CompareAB_upDown.png


Actions
There are several 'Actions' added to the Octane Actions.
You can use those actions to customize 3dsMax menus, keyboard shortcuts, etc..

new actions:
Store Render To History1
Store Render To History2
Store Render To History3
Store Render To History4
Compare Render To History1
Compare Render To History2
Compare Render To History3
Compare Render To History4
Compare: Stop
Compare: Left Right
Compare: Up Down
Compare: A B
Compare: B A

Maxscript

Note: you can get a list of all Octane Actions in Preferences / Info menu / List Octane Actions
The new actions can also be called by maxscript with the following syntax:
actionMan.executeAction 982383860 "6578" -- Octane: Store Render To History1
actionMan.executeAction 982383860 "6579" -- Octane: Store Render To History2
actionMan.executeAction 982383860 "6580" -- Octane: Store Render To History3
actionMan.executeAction 982383860 "6581" -- Octane: Store Render To History4
actionMan.executeAction 982383860 "6582" -- Octane: Compare Render To History1
actionMan.executeAction 982383860 "6583" -- Octane: Compare Render To History2
actionMan.executeAction 982383860 "6584" -- Octane: Compare Render To History3
actionMan.executeAction 982383860 "6585" -- Octane: Compare Render To History4
actionMan.executeAction 982383860 "6586" -- Octane: Compare: Stop
actionMan.executeAction 982383860 "6587" -- Octane: Compare: Left Right
actionMan.executeAction 982383860 "6588" -- Octane: Compare: Up Down
actionMan.executeAction 982383860 "6589" -- Octane: Compare: A B
actionMan.executeAction 982383860 "6590" -- Octane: Compare: B A

There are also new maxScript functions, that allow access to the 10 history slots:
<integer>CmpABStore <integer>iSlot
<integer>CmpABSetCompare <integer>iSlot
<integer>CmpABGetCompare()
<integer>CmpABClearHistory()

Usage sample:
OctaneMaxFPI.CmpABStore(1) -- store in one of the history slot (1 to 10)

renderers.current.viewcam_whiteBalance = color 255 0 0 -- change something..

OctaneMaxFPI.CmpABSetCompare(1) -- start comparing with history slot 1 to 10, (or -1 to stop compare mode)
i = OctaneMaxFPI.CmpABGetCompare() -- get current history slot displayed in compare mode (-1 if compare mode is stopped)
OctaneMaxFPI.CmpABClearHistory() -- clear the 10 history slots

The 2 new comparaison settings stored in the scene can be accessed as follow:
renderers.current.VPCompareType = 1 --1 for Left Right, 2 for Up Down
renderers.current.VPCompareSwapAB = true --true in Left Right mode means live image is on the Left

OctaneMaxFPI.CmpABSetCompare(-1) -- stop the compare mode

Re: Render buffer Comparator

PostPosted: Thu Mar 21, 2024 2:27 pm
by remKa
Super useful, thanks :)

Re: Render buffer Comparator

PostPosted: Fri Mar 22, 2024 10:09 am
by ramone163
Thank you. Very useful update.