Page MenuHome

Update UI for Scrambling Distance Settings
ClosedPublic

Authored by Alaska (Alaska) on Oct 21 2021, 11:46 PM.

Details

Summary

Adjusts when the UI surrounding Scrambling Distance settings is greyed out to better reflect restrictions put in place by the adaptive sampling feature.

Diff Detail

Repository
rB Blender
Branch
scramble-distance-updated-ui-sobol (branched from master)
Build Status
Buildable 18254
Build 18254: arc lint + arc unit

Event Timeline

Alaska (Alaska) requested review of this revision.Oct 21 2021, 11:46 PM
Alaska (Alaska) created this revision.
Alaska (Alaska) added a comment.EditedOct 21 2021, 11:51 PM

The code changes in ui.py attempt to change the way the UI for the scrambling distance settings is grayed out.


The code change made in sync.cpp are taken from D12854: Cycles: Scrambling distance for the PMJ sampler. This code change is required to stop the rendered viewport from refreshing in situations it shouldn't.

Here is a image comparing the UI between the original patch and this patch:

William Leeson (leesonw) requested changes to this revision.Oct 27 2021, 10:21 AM

Looks good but the files have been renamed and moved so it needs to be updated. These change are similar to D12854 right? So I have updated that and you could take it from there.

This revision now requires changes to proceed.Oct 27 2021, 10:21 AM
  • Rebase on Master with Sobol Scramble Distance Code

You can find a version of this patch to apply on top of D12854: Cycles: Scrambling distance for the PMJ sampler here:

Alaska (Alaska) edited the summary of this revision. (Show Details)Oct 27 2021, 10:49 AM

Rebase on master with the latest PMJ code changes

This seems good and make more sense in my opinion.

This revision is now accepted and ready to land.Oct 27 2021, 2:34 PM
Alaska (Alaska) retitled this revision from Update UI for Scrambling Distance Patch to Update UI for Scrambling Distance Settings.Oct 27 2021, 2:35 PM
Alaska (Alaska) edited the summary of this revision. (Show Details)
William Leeson (leesonw) requested changes to this revision.Oct 27 2021, 2:40 PM

Sorry, I just noticed this. I think the logic needs to change if I have adaptive on the render settings then it still enables scrambling distance. I think it should be an or (||) for the first 2 active settings.

This revision now requires changes to proceed.Oct 27 2021, 2:40 PM
Alaska (Alaska) added a comment.EditedOct 27 2021, 2:46 PM

I think the logic needs to change if I have adaptive on the render settings then it still enables scrambling distance. I think it should be an or (||) for the first 2 active settings.

The issue with having the or logic is that when adpative sampling is enabled for the final render, but disabled for the viewport, then settings like Scrambling Distance Strength is greyed out when it is still relevant for viewport rendering.

A similar thing applies to the other way around. When adaptive sampling is on for the viewport, but off for the final render, settings like Scrambling Distance Strength are greyed out when it is still relevant to the final render.

Alaska (Alaska) edited the summary of this revision. (Show Details)Oct 27 2021, 3:24 PM
William Leeson (leesonw) accepted this revision.EditedOct 27 2021, 3:47 PM

You are correct that makes sense.

This revision is now accepted and ready to land.Oct 27 2021, 3:47 PM