Commit 52c06b7c authored by Carson Brownlee's avatar Carson Brownlee

adding roulette depth for ospray pt volume renderer

parent bd2a64ac
......@@ -3201,6 +3201,28 @@ int vtkPVRenderView::GetAmbientOcclusionSamples()
#endif
}
//----------------------------------------------------------------------------
void vtkPVRenderView::SetRouletteDepth(int v)
{
#if VTK_MODULE_ENABLE_VTK_RenderingRayTracing
vtkRenderer* ren = this->GetRenderer();
vtkOSPRayRendererNode::SetRouletteDepth(v, ren);
#else
(void)v;
#endif
}
//----------------------------------------------------------------------------
int vtkPVRenderView::GetRouletteDepth()
{
#if VTK_MODULE_ENABLE_VTK_RenderingRayTracing
vtkRenderer* ren = this->GetRenderer();
return vtkOSPRayRendererNode::GetRouletteDepth(ren);
#else
return 0;
#endif
}
//----------------------------------------------------------------------------
void vtkPVRenderView::SetSamplesPerPixel(int v)
{
......
......@@ -848,6 +848,13 @@ public:
int GetAmbientOcclusionSamples();
//@}
//@{
/**
* Sets the depth of monte carlo samples on the path tracer
*/
void SetRouletteDepth(int);
int GetRouletteDepth();
//@}
//@{
/**
* Set the number of primary rays that OSPRay shoots per pixel.
*/
......
......@@ -2730,6 +2730,25 @@
values="1" />
</Hints>
</IntVectorProperty>
<IntVectorProperty
name="RouletteDepth"
command="SetRouletteDepth"
default_values="5"
animateable="0"
number_of_elements="1">
<IntRangeDomain
min="0"
name="range"/>
<Documentation>Sets the number of occlusion query rays that
OSPRay sends at each intersection.</Documentation>
<Hints>
<PropertyWidgetDecorator type="OSPRayHidingDecorator" />
<PropertyWidgetDecorator type="GenericDecorator"
mode="visibility"
property="EnableOSPRay"
values="1" />
</Hints>
</IntVectorProperty>
<IntVectorProperty
name="MaxFrames"
label="Progressive Passes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment