|
35 | 35 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
36 | 36 | *no description available*
|
37 | 37 |
|
38 |
| - Parameter ``seed`` (int): |
| 38 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
39 | 39 | *no description available*
|
40 | 40 |
|
41 | 41 | Parameter ``spp`` (int):
|
|
55 | 55 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
56 | 56 | *no description available*
|
57 | 57 |
|
58 |
| - Parameter ``seed`` (int): |
| 58 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
59 | 59 | *no description available*
|
60 | 60 |
|
61 | 61 | Parameter ``spp`` (int):
|
|
2736 | 2736 |
|
2737 | 2737 | .. py:data:: mitsuba.DEBUG
|
2738 | 2738 | :type: bool
|
2739 |
| - :value: False |
| 2739 | + :value: True |
2740 | 2740 |
|
2741 | 2741 | .. py:class:: mitsuba.DefaultFormatter
|
2742 | 2742 |
|
|
5166 | 5166 |
|
5167 | 5167 | Overloaded function.
|
5168 | 5168 |
|
5169 |
| - 1. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: :py:obj:`mitsuba.Sensor`, seed: int = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
| 5169 | + 1. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: :py:obj:`mitsuba.Sensor`, seed: drjit.llvm.ad.UInt = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
5170 | 5170 |
|
5171 | 5171 | Render the scene
|
5172 | 5172 |
|
5173 | 5173 | This function renders the scene from the viewpoint of ``sensor``. All
|
5174 | 5174 | other parameters are optional and control different aspects of the
|
5175 | 5175 | rendering process. In particular:
|
5176 | 5176 |
|
5177 |
| - Parameter ``seed`` (int): |
| 5177 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
5178 | 5178 | This parameter controls the initialization of the random number
|
5179 | 5179 | generator. It is crucial that you specify different seeds (e.g.,
|
5180 | 5180 | an increasing sequence) if subsequent ``render``() calls should
|
|
5200 | 5200 | (``develop=true``) or modified film (``develop=false``) represent
|
5201 | 5201 | the rendering task as an unevaluated computation graph.
|
5202 | 5202 |
|
5203 |
| - 2. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: int = 0, seed: int = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
| 5203 | + 2. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: int = 0, seed: drjit.llvm.ad.UInt = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
5204 | 5204 |
|
5205 | 5205 | Render the scene
|
5206 | 5206 |
|
|
5744 | 5744 |
|
5745 | 5745 | .. py:data:: mitsuba.MI_VERSION
|
5746 | 5746 | :type: str
|
5747 |
| - :value: 3.6.2 |
| 5747 | + :value: 3.6.4 |
5748 | 5748 |
|
5749 | 5749 | .. py:data:: mitsuba.MI_VERSION_MAJOR
|
5750 | 5750 | :type: int
|
|
5756 | 5756 |
|
5757 | 5757 | .. py:data:: mitsuba.MI_VERSION_PATCH
|
5758 | 5758 | :type: int
|
5759 |
| - :value: 2 |
| 5759 | + :value: 4 |
5760 | 5760 |
|
5761 | 5761 | .. py:data:: mitsuba.MI_YEAR
|
5762 | 5762 | :type: str
|
|
7394 | 7394 | Parameter ``other`` (:py:obj:`mitsuba.Mesh`):
|
7395 | 7395 | *no description available*
|
7396 | 7396 |
|
7397 |
| - Returns → ref<mitsuba::Mesh<drjit::DiffArray<(JitBackend)2, float>, mitsuba::Color<drjit::DiffArray<(JitBackend)2, float>, 3ul>>>: |
| 7397 | + Returns → ref<mitsuba::Mesh<drjit::DiffArray<(JitBackend)2, float>, mitsuba::Color<drjit::DiffArray<(JitBackend)2, float>, 3ul> > >: |
7398 | 7398 | *no description available*
|
7399 | 7399 |
|
7400 | 7400 | .. py:method:: mitsuba.Mesh.opposite_dedge(self, index, active=True)
|
|
7435 | 7435 | Returns → None:
|
7436 | 7436 | *no description available*
|
7437 | 7437 |
|
| 7438 | + .. py:method:: mitsuba.Mesh.remove_attribute(self, name) |
| 7439 | + |
| 7440 | + Remove an attribute with the given ``name``. |
| 7441 | + |
| 7442 | + Affects both mesh and texture attributes. |
| 7443 | + |
| 7444 | + Throws an exception if the attribute was not previously registered. |
| 7445 | + |
| 7446 | + Parameter ``name`` (str): |
| 7447 | + *no description available* |
| 7448 | + |
| 7449 | + Returns → None: |
| 7450 | + *no description available* |
| 7451 | + |
7438 | 7452 | .. py:method:: mitsuba.Mesh.vertex_count()
|
7439 | 7453 |
|
7440 | 7454 | Return the total number of vertices
|
|
8026 | 8040 | filter that spans multiple pixels, the denoiser might identify some
|
8027 | 8041 | local variance as a feature of the scene and will not denoise it.
|
8028 | 8042 |
|
8029 |
| - .. py:method:: __init__(self, input_size, albedo=False, normals=False, temporal=False) |
| 8043 | + .. py:method:: __init__(self, input_size, albedo=False, normals=False, temporal=False, denoise_alpha=False) |
8030 | 8044 |
|
8031 | 8045 | Constructs an OptiX denoiser
|
8032 | 8046 |
|
|
8035 | 8049 |
|
8036 | 8050 | Parameter ``albedo`` (bool):
|
8037 | 8051 | Whether or not albedo information will also be given to the
|
8038 |
| - denoiser. |
| 8052 | + denoiser. This parameter is optional, by default it is false. |
8039 | 8053 |
|
8040 | 8054 | Parameter ``normals`` (bool):
|
8041 | 8055 | Whether or not shading normals information will also be given to
|
8042 |
| - the Denoiser. |
| 8056 | + the denoiser. This parameter is optional, by default it is false. |
| 8057 | + |
| 8058 | + Parameter ``temporal`` (bool): |
| 8059 | + Whether or not temporal information will also be given to the |
| 8060 | + denoiser. This parameter is optional, by default it is false. |
| 8061 | + |
| 8062 | + Parameter ``denoise_alpha`` (bool): |
| 8063 | + Whether or not the alpha channel (if specified in the noisy input) |
| 8064 | + should be denoised too. This parameter is optional, by default it |
| 8065 | + is false. |
8043 | 8066 |
|
8044 | 8067 | Returns:
|
8045 | 8068 | A callable object which will apply the OptiX denoiser.
|
8046 | 8069 |
|
8047 |
| - Parameter ``temporal`` (bool): |
8048 |
| - *no description available* |
8049 |
| - |
8050 | 8070 |
|
8051 |
| - .. py:method:: mitsuba.OptixDenoiser.__call__(self, noisy, denoise_alpha=True, albedo, normals, to_sensor=None, flow, previous_denoised) |
| 8071 | + .. py:method:: mitsuba.OptixDenoiser.__call__(self, noisy, albedo, normals, to_sensor=None, flow, previous_denoised) |
8052 | 8072 |
|
8053 | 8073 | Overloaded function.
|
8054 | 8074 |
|
8055 |
| - 1. ``__call__(self, noisy: drjit.llvm.ad.TensorXf, denoise_alpha: bool = True, albedo: drjit.llvm.ad.TensorXf, normals: drjit.llvm.ad.TensorXf, to_sensor: object | None = None, flow: drjit.llvm.ad.TensorXf, previous_denoised: drjit.llvm.ad.TensorXf) -> drjit.llvm.ad.TensorXf`` |
| 8075 | + 1. ``__call__(self, noisy: drjit.llvm.ad.TensorXf, albedo: drjit.llvm.ad.TensorXf, normals: drjit.llvm.ad.TensorXf, to_sensor: object | None = None, flow: drjit.llvm.ad.TensorXf, previous_denoised: drjit.llvm.ad.TensorXf) -> drjit.llvm.ad.TensorXf`` |
8056 | 8076 |
|
8057 | 8077 | Apply denoiser on inputs which are TensorXf objects.
|
8058 | 8078 |
|
8059 | 8079 | Parameter ``noisy`` (drjit.llvm.ad.TensorXf):
|
8060 | 8080 | The noisy input. (tensor shape: (width, height, 3 | 4))
|
8061 | 8081 |
|
8062 |
| - Parameter ``denoise_alpha`` (bool): |
8063 |
| - Whether or not the alpha channel (if specified in the noisy input) |
8064 |
| - should be denoised too. This parameter is optional, by default it |
8065 |
| - is true. |
8066 |
| - |
8067 | 8082 | Parameter ``albedo`` (drjit.llvm.ad.TensorXf):
|
8068 | 8083 | Albedo information of the noisy rendering. This parameter is
|
8069 | 8084 | optional unless the OptixDenoiser was built with albedo support.
|
|
8101 | 8116 | Returns → drjit.llvm.ad.TensorXf:
|
8102 | 8117 | The denoised input.
|
8103 | 8118 |
|
8104 |
| - 2. ``__call__(self, noisy: :py:obj:`mitsuba.Bitmap`, denoise_alpha: bool = True, albedo_ch: str = '', normals_ch: str = '', to_sensor: object | None = None, flow_ch: str = '', previous_denoised_ch: str = '', noisy_ch: str = '<root>') -> :py:obj:`mitsuba.Bitmap``` |
| 8119 | + 2. ``__call__(self, noisy: :py:obj:`mitsuba.Bitmap`, albedo_ch: str = '', normals_ch: str = '', to_sensor: object | None = None, flow_ch: str = '', previous_denoised_ch: str = '', noisy_ch: str = '<root>') -> :py:obj:`mitsuba.Bitmap``` |
8105 | 8120 |
|
8106 | 8121 | Apply denoiser on inputs which are Bitmap objects.
|
8107 | 8122 |
|
|
8110 | 8125 | or normals to the denoiser, this Bitmap object must be a
|
8111 | 8126 | MultiChannel bitmap.
|
8112 | 8127 |
|
8113 |
| - Parameter ``denoise_alpha`` (bool): |
8114 |
| - Whether or not the alpha channel (if specified in the noisy input) |
8115 |
| - should be denoised too. This parameter is optional, by default it |
8116 |
| - is true. |
8117 |
| - |
8118 | 8128 | Parameter ``albedo_ch``:
|
8119 | 8129 | The name of the channel in the ``noisy`` parameter which contains
|
8120 | 8130 | the albedo information of the noisy rendering. This parameter is
|
|
9988 | 9998 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
9989 | 9999 | *no description available*
|
9990 | 10000 |
|
9991 |
| - Parameter ``seed`` (int): |
| 10001 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
9992 | 10002 | *no description available*
|
9993 | 10003 |
|
9994 | 10004 | Parameter ``spp`` (int):
|
|
10008 | 10018 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
10009 | 10019 | *no description available*
|
10010 | 10020 |
|
10011 |
| - Parameter ``seed`` (int): |
| 10021 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
10012 | 10022 | *no description available*
|
10013 | 10023 |
|
10014 | 10024 | Parameter ``spp`` (int):
|
|
12713 | 12723 |
|
12714 | 12724 | Forward declaration for `SilhouetteSample`
|
12715 | 12725 |
|
| 12726 | + .. py:method:: mitsuba.Shape.add_texture_attribute(self, name, texture) |
| 12727 | + |
| 12728 | + Add a texture attribute with the given ``name``. |
| 12729 | + |
| 12730 | + If an attribute with the same name already exists, it is replaced. |
| 12731 | + |
| 12732 | + Note that ``Mesh`` shapes can additionally handle per-vertex and per- |
| 12733 | + face attributes via the ``Mesh::add_attribute`` method. |
| 12734 | + |
| 12735 | + Parameter ``name`` (str): |
| 12736 | + Name of the attribute |
| 12737 | + |
| 12738 | + Parameter ``texture`` (:py:obj:`mitsuba.Texture`): |
| 12739 | + Texture to store. The dimensionality of the attribute is simply |
| 12740 | + the channel count of the texture. |
| 12741 | + |
| 12742 | + Returns → None: |
| 12743 | + *no description available* |
| 12744 | + |
12716 | 12745 | .. py:method:: mitsuba.Shape.bbox()
|
12717 | 12746 |
|
12718 | 12747 | Overloaded function.
|
|
13186 | 13215 | Returns → drjit.llvm.ad.Bool:
|
13187 | 13216 | *no description available*
|
13188 | 13217 |
|
| 13218 | + .. py:method:: mitsuba.Shape.remove_attribute(self, name) |
| 13219 | + |
| 13220 | + Remove a texture texture with the given ``name``. |
| 13221 | + |
| 13222 | + Throws an exception if the attribute was not registered. |
| 13223 | + |
| 13224 | + Parameter ``name`` (str): |
| 13225 | + *no description available* |
| 13226 | + |
| 13227 | + Returns → None: |
| 13228 | + *no description available* |
| 13229 | + |
13189 | 13230 | .. py:method:: mitsuba.Shape.sample_direction(self, it, sample, active=True)
|
13190 | 13231 |
|
13191 | 13232 | Sample a direction towards this shape with respect to solid angles
|
|
13294 | 13335 | Returns → :py:obj:`mitsuba.Sensor`:
|
13295 | 13336 | *no description available*
|
13296 | 13337 |
|
| 13338 | + .. py:method:: mitsuba.Shape.set_bsdf(self, bsdf) |
| 13339 | + |
| 13340 | + Set the shape's BSDF |
| 13341 | + |
| 13342 | + Parameter ``bsdf`` (:py:obj:`mitsuba.BSDF`): |
| 13343 | + *no description available* |
| 13344 | + |
| 13345 | + Returns → None: |
| 13346 | + *no description available* |
| 13347 | + |
13297 | 13348 | .. py:method:: mitsuba.Shape.shape_type()
|
13298 | 13349 |
|
13299 | 13350 | Returns the shape type ShapeType of this shape
|
|
13327 | 13378 | Returns → drjit.llvm.ad.Float:
|
13328 | 13379 | *no description available*
|
13329 | 13380 |
|
| 13381 | + .. py:method:: mitsuba.Shape.texture_attribute(self, name) |
| 13382 | + |
| 13383 | + Return the texture attribute associated with ``name``. |
| 13384 | + |
| 13385 | + Parameter ``name`` (str): |
| 13386 | + *no description available* |
| 13387 | + |
| 13388 | + Returns → :py:obj:`mitsuba.Texture`: |
| 13389 | + *no description available* |
| 13390 | + |
13330 | 13391 | .. py:class:: mitsuba.ShapePtr
|
13331 | 13392 |
|
13332 | 13393 | .. py:method:: mitsuba.ShapePtr.bsdf()
|
|
16821 | 16882 | Creates a transformation that converts from 'frame' to the standard
|
16822 | 16883 | basis
|
16823 | 16884 |
|
16824 |
| - Parameter ``frame`` (mitsuba::Frame<drjit::DiffArray<(JitBackend)2, double>>): |
| 16885 | + Parameter ``frame`` (mitsuba::Frame<drjit::DiffArray<(JitBackend)2, double> >): |
16825 | 16886 | *no description available*
|
16826 | 16887 |
|
16827 | 16888 | Returns → :py:obj:`mitsuba.Transform4d`:
|
|
16934 | 16995 | Creates a transformation that converts from the standard basis to
|
16935 | 16996 | 'frame'
|
16936 | 16997 |
|
16937 |
| - Parameter ``frame`` (mitsuba::Frame<drjit::DiffArray<(JitBackend)2, double>>): |
| 16998 | + Parameter ``frame`` (mitsuba::Frame<drjit::DiffArray<(JitBackend)2, double> >): |
16938 | 16999 | *no description available*
|
16939 | 17000 |
|
16940 | 17001 | Returns → :py:obj:`mitsuba.Transform4d`:
|
@@ -18060,15 +18121,15 @@
|
18060 | 18121 |
|
18061 | 18122 | Overloaded function.
|
18062 | 18123 |
|
18063 |
| - 1. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: :py:obj:`mitsuba.Sensor`, seed: int = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
| 18124 | + 1. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: :py:obj:`mitsuba.Sensor`, seed: drjit.llvm.ad.UInt = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
18064 | 18125 |
|
18065 | 18126 | Render the scene
|
18066 | 18127 |
|
18067 | 18128 | This function renders the scene from the viewpoint of ``sensor``. All
|
18068 | 18129 | other parameters are optional and control different aspects of the
|
18069 | 18130 | rendering process. In particular:
|
18070 | 18131 |
|
18071 |
| - Parameter ``seed`` (int): |
| 18132 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
18072 | 18133 | This parameter controls the initialization of the random number
|
18073 | 18134 | generator. It is crucial that you specify different seeds (e.g.,
|
18074 | 18135 | an increasing sequence) if subsequent ``render``() calls should
|
|
18094 | 18155 | (``develop=true``) or modified film (``develop=false``) represent
|
18095 | 18156 | the rendering task as an unevaluated computation graph.
|
18096 | 18157 |
|
18097 |
| - 2. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: int = 0, seed: int = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
| 18158 | + 2. ``render(self, scene: :py:obj:`mitsuba.Scene`, sensor: int = 0, seed: drjit.llvm.ad.UInt = 0, spp: int = 0, develop: bool = True, evaluate: bool = True) -> drjit.llvm.ad.TensorXf`` |
18098 | 18159 |
|
18099 | 18160 | Render the scene
|
18100 | 18161 |
|
|
18122 | 18183 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
18123 | 18184 | *no description available*
|
18124 | 18185 |
|
18125 |
| - Parameter ``seed`` (int): |
| 18186 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
18126 | 18187 | *no description available*
|
18127 | 18188 |
|
18128 | 18189 | Parameter ``spp`` (int):
|
|
18145 | 18206 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
18146 | 18207 | *no description available*
|
18147 | 18208 |
|
18148 |
| - Parameter ``seed`` (int): |
| 18209 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
18149 | 18210 | *no description available*
|
18150 | 18211 |
|
18151 | 18212 | Parameter ``spp`` (int):
|
|
18390 | 18451 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
18391 | 18452 | *no description available*
|
18392 | 18453 |
|
18393 |
| - Parameter ``seed`` (int): |
| 18454 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
18394 | 18455 | *no description available*
|
18395 | 18456 |
|
18396 | 18457 | Parameter ``spp`` (int):
|
|
18413 | 18474 | Parameter ``sensor`` (:py:obj:`mitsuba.Sensor`):
|
18414 | 18475 | *no description available*
|
18415 | 18476 |
|
18416 |
| - Parameter ``seed`` (int): |
| 18477 | + Parameter ``seed`` (drjit.llvm.ad.UInt): |
18417 | 18478 | *no description available*
|
18418 | 18479 |
|
18419 | 18480 | Parameter ``spp`` (int):
|
|
0 commit comments