Skip to content

Commit 862cab5

Browse files
committed
denoiser start frame configurable
1 parent 4431409 commit 862cab5

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

examples/1_basics/6_denoising.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ def main():
5959

6060
# Denoiser blend allows for different mixing with the raw image. Its value
6161
# can be modified also during the ray tracing.
62-
# Note: denoising is applied when > 4 accumulation frames are completed.
6362
rt.set_float("denoiser_blend", 0.0)
6463

64+
# Denoising is applied by default after the 4th accumulation frames is completed.
65+
# You can change the starting frame with the following variable:
66+
rt.set_uint("denoiser_start", 12)
67+
6568
# Denoiser can use various inputs. By default it is raw RGB and surface
6669
# albedo, but not always it results with the optimal output quality.
6770
# Try one of the below settings and find best configuration for your scene.

examples/1_basics/7_panorama_viewer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import sys
88
import numpy as np
99
from plotoptix import TkOptiX
10-
from plotoptix.materials import m_plastic
1110

1211
def main():
1312

plotoptix/bin/RnD.SharpOptiX.dll

0 Bytes
Binary file not shown.

plotoptix/bin/rndSharpOptiX7.dll

1 KB
Binary file not shown.

plotoptix/enums.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@ class Postprocessing(Enum):
745745
- denoiser_blend, float, amount of original image mixed with denoiser output
746746
range: 0 (only denoiser output) to 1 (only original raytracing output)
747747
748+
- denoiser_start, uint, number of the accumulation frame after which denoiser is applied;
749+
default velue is 4.
750+
748751
- denoiser_kind, int value of :class:`plotoptix.enums.DenoiserKind`, decides
749752
which buffers are used as denoiser inputs
750753
@@ -753,6 +756,7 @@ class Postprocessing(Enum):
753756
>>> rt = TkOptiX()
754757
>>>
755758
>>> rt.set_float("denoiser_blend", 0.5)
759+
>>> rt.set_uint("denoiser_start", 12)
756760
>>> rt.set_int("denoiser_kind", DenoiserKind.Rgb.value)
757761
>>> rt.add_postproc("Denoiser")
758762
"""
@@ -767,6 +771,9 @@ class Postprocessing(Enum):
767771
- denoiser_blend, float, amount of original image mixed with denoiser output
768772
range: 0 (only denoiser output) to 1 (only original raytracing output)
769773
774+
- denoiser_start, uint, number of the accumulation frame after which denoiser is applied;
775+
default velue is 4.
776+
770777
- denoiser_kind, int value of :class:`plotoptix.enums.DenoiserKind`, decides
771778
which buffers are used as denoiser inputs
772779
@@ -775,6 +782,7 @@ class Postprocessing(Enum):
775782
>>> rt = TkOptiX()
776783
>>>
777784
>>> rt.set_float("denoiser_blend", 0.5)
785+
>>> rt.set_uint("denoiser_start", 12)
778786
>>> rt.set_int("denoiser_kind", DenoiserKind.Rgb.value)
779787
>>> rt.add_postproc("DenoiserHDR")
780788
"""
@@ -792,6 +800,9 @@ class Postprocessing(Enum):
792800
- denoiser_blend, float, amount of original image mixed with denoiser output
793801
range: 0 (only denoiser output) to 1 (only original raytracing output)
794802
803+
- denoiser_start, uint, number of the accumulation frame after which denoiser is applied;
804+
default velue is 4.
805+
795806
- denoiser_kind, int value of :class:`plotoptix.enums.DenoiserKind`, decides
796807
which buffers are used as denoiser inputs
797808
@@ -800,6 +811,7 @@ class Postprocessing(Enum):
800811
>>> rt = TkOptiX()
801812
>>>
802813
>>> rt.set_float("denoiser_blend", 0.0)
814+
>>> rt.set_uint("denoiser_start", 12)
803815
>>> rt.set_int("denoiser_kind", DenoiserKind.Rgb.value)
804816
>>> rt.add_postproc("DenoiserUp2x")
805817
"""

0 commit comments

Comments
 (0)