Skip to content
Permalink
Browse files

Tweak adaptive sampler defaults

  • Loading branch information...
Mango-3 authored and dictoon committed May 14, 2019
1 parent adcb7f9 commit 2dc871b58cdf000ffd1d03446217894e44bea5c5
Showing with 4 additions and 4 deletions.
  1. +2 −2 scripts/appleseedMaya/renderGlobals.py
  2. +2 −2 src/appleseedmaya/renderglobalsnode.cpp
@@ -483,7 +483,7 @@ def create(self):
ui=pm.intSliderGrp(
label="Max Samples",
field=True,
value=256,
value=128,
columnWidth=(3, 160),
columnAttach=(1, "right", 4),
minValue=16,
@@ -518,7 +518,7 @@ def create(self):
minValue=0.0001,
fieldMinValue=0.0,
maxValue=2.0,
fieldMaxValue=10000.0,
fieldMaxValue=25.0,
enable=adaptiveSampling),
attrName="sampleNoiseThreshold")

@@ -225,7 +225,7 @@ MStatus RenderGlobalsNode::initialize()
CHECKED_ADD_ATTRIBUTE(m_passes, "passes")

// Adaptive sampling.
m_adaptiveSampling = numAttrFn.create("adaptiveSampling", "adaptiveSampling", MFnNumericData::kBoolean, true, &status);
m_adaptiveSampling = numAttrFn.create("adaptiveSampling", "adaptiveSampling", MFnNumericData::kBoolean, false, &status);
CHECKED_ADD_ATTRIBUTE(m_adaptiveSampling, "adaptiveSampling")


@@ -236,7 +236,7 @@ MStatus RenderGlobalsNode::initialize()
CHECKED_ADD_ATTRIBUTE(m_minPixelSamples, "minPixelSamples")

// Max pixel samples.
m_maxPixelSamples = numAttrFn.create("samples", "samples", MFnNumericData::kInt, 256, &status);
m_maxPixelSamples = numAttrFn.create("samples", "samples", MFnNumericData::kInt, 128, &status);
numAttrFn.setMin(0);
numAttrFn.setSoftMax(1024);
CHECKED_ADD_ATTRIBUTE(m_maxPixelSamples, "samples")

0 comments on commit 2dc871b

Please sign in to comment.
You can’t perform that action at this time.