threedb.controls.blender.denoiser

Denoise renderings. An example config file using this control can be found here: https://github.com/3db/3db/tree/main/examples/unit_tests/denoiser.yaml. (And of the other controls in the unit_tests folder, this files parent folder, use this control as well for more realistic renderings).

class threedb.controls.blender.denoiser.DenoiseControl(root_folder: str, *, continuous_dims: Optional[Dict[str, Tuple[float, float]]] = None, discrete_dims: Optional[Dict[str, List[Any]]] = None)

Bases: threedb.controls.base_control.PreProcessControl

Enable the built-in Denoise feature in blender

Note

This control enables the blender feature for denoising renderings. It has no parameters.

Example images

With denoising.

Example images

Without denoising.

apply(context: Dict[str, Any], control_args: Dict[str, Any])None

Enable OPENIMAGEDENOISE denoiser

Parameters

context (Dict[str, Any]) – The scene context

unapply(context: Dict[str, Any])None

Undo the modification on a scene

Note

Most of the time, recreating a scene is very expensive, therefore, controls are asked to implement a reverse operation to undo their changes. Controls that need to store state in order to undo their actions should add data to the target object they received.

Parameters

context (Dict[str, Any]) – The description of the scene to render

threedb.controls.blender.denoiser.Control

alias of threedb.controls.blender.denoiser.DenoiseControl