Hi,
Our team (we are licensed customers) is experiencing some challenges when it comes to saving images during progressive rendering in Octane through Lua scripting, especially when attempting to vary the Samples Per Pixel (spp).
The Problem:
# When we render images with progressive rendering enabled, we're having difficulty saving examples with different spp settings. It seems like Octane isn't able to save various spp configurations as expected. We've explored the Octane Lua scripting, but we're still facing issues.
Our Goal:
# Our ultimate goal is to generate a sequence of images with varying spp values to analyze the trade-offs between rendering time and image quality.
What We've Tried So Far:
# We've looked into the Octane documentation for Lua scripting but haven't found a straightforward solution. We have tried to pause() the Octane renderer from Lua, update the samples configuration, then continue()
nodeRenderTarget:getInputNode(octane.P_KERNEL):setPinValue(octane.P_MAX_SAMPLES, 4)
local result = octane.render.start(propsRenderStart)
SaveRender(nodeRenderTarget:getInputNode(octane.P_KERNEL):getPinValue(octane.P_MAX_SAMPLES))
nodeRenderTarget:getInputNode(octane.P_KERNEL):setPinValue(octane.P_MAX_SAMPLES, 8)
octane.render.continue()
SaveRender(nodeRenderTarget:getInputNode(octane.P_KERNEL):getPinValue(octane.P_MAX_SAMPLES))
# We've attempted to use a render callback in a Lua script, but this doesn't seem to save the images as expected, skipping certain spp values. E.g. we would like to save 8,16,32,256,1024 but 32 is skiped ^^
local propsRenderStart = {
callback = renderCallback,
doUpdate = true,
maxRenderTime = 86400,
renderTargetNode = nodeRenderTarget,
restart = true,
statisticsCallback = statisticsCallback
}
Any help with Lua scripting would be greatly appreciated.
Thanks in advance for your assistance and support. We look forward to your responses.
Best regards,
jalley
http://www.jalley.com