3: A Retargetable Forward and Inverse Renderer
Project description
Introduction
Mitsuba 3 is a research-oriented rendering system for forward and inverse light transport simulation developed at EPFL in Switzerland. It consists of a core library and a set of plugins that implement functionality ranging from materials and light sources to complete rendering algorithms.
Mitsuba 3 is retargetable: this means that the underlying implementations and data structures can transform to accomplish various different tasks. For example, the same code can simulate both scalar (classic one-ray-at-a-time) RGB transport or differential spectral transport on the GPU. This all builds on Dr.Jit, a specialized just-in-time (JIT) compiler developed specifically for this project.
Main Features
-
Cross-platform: Mitsuba 3 has been tested on Linux (
x86_64
), macOS (aarch64
,x86_64
), and Windows (x86_64
). -
High performance: The underlying Dr.Jit compiler fuses rendering code into kernels that achieve state-of-the-art performance using an LLVM backend targeting the CPU and a CUDA/OptiX backend targeting NVIDIA GPUs with ray tracing hardware acceleration.
-
Python first: Mitsuba 3 is deeply integrated with Python. Materials, textures, and even full rendering algorithms can be developed in Python, which the system JIT-compiles (and optionally differentiates) on the fly. This enables the experimentation needed for research in computer graphics and other disciplines.
-
Differentiation: Mitsuba 3 is a differentiable renderer, meaning that it can compute derivatives of the entire simulation with respect to input parameters such as camera pose, geometry, BSDFs, textures, and volumes. It implements recent differentiable rendering algorithms developed at EPFL.
-
Spectral & Polarization: Mitsuba 3 can be used as a monochromatic renderer, RGB-based renderer, or spectral renderer. Each variant can optionally account for the effects of polarization if desired.
Tutorial videos, documentation
We've recorded several [YouTube videos][10] that provide a gentle introduction Mitsuba 3 and Dr.Jit. Beyond this you can find complete Juypter notebooks covering a variety of applications, how-to guides, and reference documentation on [readthedocs][2].
Installation
We provide pre-compiled binary wheels via PyPI. Installing Mitsuba this way is as simple as running
pip install mitsuba
on the command line. The Python package includes four variants by default:
scalar_spectral
scalar_rgb
llvm_ad_rgb
cuda_ad_rgb
The first two perform classic one-ray-at-a-time simulation using either a RGB or spectral color representation, while the latter two can be used for inverse rendering on the CPU or GPU. To access additional variants, you will need to compile a custom version of Dr.Jit using CMake. Please see the documentation for details on this.
Requirements
Python >= 3.8
- (optional) For computation on the GPU:
Nvidia driver >= 495.89
- (optional) For vectorized / parallel computation on the CPU:
LLVM >= 11.1
Usage
Here is a simple "Hello World" example that shows how simple it is to render a scene using Mitsuba 3 from Python:
# Import the library using the alias "mi"
import mitsuba as mi
# Set the variant of the renderer
mi.set_variant('scalar_rgb')
# Load a scene
scene = mi.load_dict(mi.cornell_box())
# Render the scene
img = mi.render(scene)
# Write the rendered image to an EXR file
mi.Bitmap(img).write('cbox.exr')
Tutorials and example notebooks covering a variety of applications can be found in the [documentation][2].
About
This project was created by Wenzel Jakob. Significant features and/or improvements to the code were contributed by Sébastien Speierer, Nicolas Roussel, Merlin Nimier-David, Delio Vicini, Tizian Zeltner, Baptiste Nicolet, Miguel Crespo, Vincent Leroy, and Ziyi Zhang.
When using Mitsuba 3 in academic projects, please cite:
@software{Mitsuba3,
title = {Mitsuba 3 renderer},
author = {Wenzel Jakob and Sébastien Speierer and Nicolas Roussel and Merlin Nimier-David and Delio Vicini and Tizian Zeltner and Baptiste Nicolet and Miguel Crespo and Vincent Leroy and Ziyi Zhang},
note = {https://mitsuba-renderer.org},
version = {3.1.1},
year = 2022
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for eradiate_mitsuba-0.0.1rc5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18cffe0106b0dec2a24d6502dc1285a5198a38d485484edc38188b0332ecdfc3 |
|
MD5 | b106dc56e3eda71dedc80b0cc567d00d |
|
BLAKE2b-256 | 13ed67719f8450b7b2bea54b65bb9617e548b5c60fc7f8c5657ef4565f330a5c |
Hashes for eradiate_mitsuba-0.0.1rc5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fdbeda4da8432db99837e2e04af3b1cbc634b9047bec5046ddd4a01ea943f51 |
|
MD5 | 1e95e26859f5bacab404ad141c4a5373 |
|
BLAKE2b-256 | 94f3c8e6b92dfb3a5eb7b9537a359d1dca4dfd89eb1d5718a08da46627b260d6 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff46e025af98979b7a641128cf4993f620d331bb80104f80f4154e8666c35aa |
|
MD5 | 37c6fd57c483bf2c99d5769597c2ffb6 |
|
BLAKE2b-256 | 7e94428da9aeb89ee242ac45805cf98ca22db5ef8403fe48ecf6effe182a6efc |
Hashes for eradiate_mitsuba-0.0.1rc5-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cbd87c7bf2284bcfee73f0f8c863155715b6552519183d530601895d25596d |
|
MD5 | 46bb2d786cf7882606b01a4f2aae4c30 |
|
BLAKE2b-256 | 5c61cdecf79dea15fb3e810708f1d71998e4cabff38eba9e60254d36f938a55c |
Hashes for eradiate_mitsuba-0.0.1rc5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce9cacac0bb71176cc0823ce3517f3967bf1a2a87b3068dd8102b6d85b2b0a7f |
|
MD5 | bc570a732f408d30313fdb6403b3d8c3 |
|
BLAKE2b-256 | c3c15884059f2583b008b743e4c3736c5d1c367b9d10309eb9113a56d193589a |
Hashes for eradiate_mitsuba-0.0.1rc5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a95fd38c2d8fd6aca6b9d6632b0b5d2bc60a6131fc7bba3ff759f4013e05c96 |
|
MD5 | 36c654fbd2b887859c6ba3a6eec3a9ba |
|
BLAKE2b-256 | b73fb25d83e55c60401e5b2ea1e604a3ed92833eb82f152ce6d2022ce7d77e81 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab96530793fd922125b15c306547c2f84d0cc2ae9fac13477d4f9643bc6fc548 |
|
MD5 | c721d4d712335799568d56d477ecfd15 |
|
BLAKE2b-256 | 3b4d68a9f3529aacaf15d932c571953f9b5a85ebe1dd17ffb825a63d36106cb3 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389c4b9afe7af04b027e335d928ab7d23aa9102d9f258ae5997f822b47fdee31 |
|
MD5 | 7f5046a3f5d4d6b5ff6381bf6fcacebb |
|
BLAKE2b-256 | 787e2acd077af5593f2297d0f40bb781f342304327952a908e035a38d2924d71 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368df6cc9a75ea332ad8e0b87d6cbe13ddf8ee8d704ef8c6444a1489b52c5d5e |
|
MD5 | 710e54dc1b94690726ad30efc68c0358 |
|
BLAKE2b-256 | 64dbb94de96d7401d3db5b24555a35730463dbbb3fc72ca79db7de335ec9aef0 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a086b1c719f1902c683044bc998d100c2c4f843eee31aa45d76b61702f9d970e |
|
MD5 | 0d203288739d04a23bdabfac13880400 |
|
BLAKE2b-256 | edd45302004e2f9f99af32ee075f96419331b536e7e8b8bda09d16f9ccf1800d |
Hashes for eradiate_mitsuba-0.0.1rc5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad67f3cbc7e0a05d1f9d465c75ef7c81dd447fcbbe11304aea42e0b4d341d761 |
|
MD5 | b679c9ced96ee8257020d64b2c8f6653 |
|
BLAKE2b-256 | 7b6825f380fb2c04d320c0633451cf4896409a9a1ffbafa4d6bb81e731e1b23c |
Hashes for eradiate_mitsuba-0.0.1rc5-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ce817bfed272749725e877c4845ae070792a18ceedf67357f423259a3e4e0e |
|
MD5 | 594005f4ad42692fd42ca942b397955b |
|
BLAKE2b-256 | 9f09c99d83f2e8bd0b17640e09e225148eedb6ae1814eae489b1b1397d5469d5 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 451df3856439fcffe6b60252221bacc11e7a28f0acfb35ee0ab5f6984ade1fe8 |
|
MD5 | 07b67b89d4146bbf2673e7db15f662a9 |
|
BLAKE2b-256 | 2782277715e45b3da37d3920885dc304d2ec8269d505e6abd9ac834f1436e8f3 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c68b337ba338a66f35a1805a6e286d91e4640215e5424e8a085b7ae5b68d09 |
|
MD5 | ff95c303fa5a1d0c9d6d823e4e3376e5 |
|
BLAKE2b-256 | 3e5a4ea8bf9c3f178c501029845112619008821e6d5bb5d44e2cd6efeba1ae1b |
Hashes for eradiate_mitsuba-0.0.1rc5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c07a07ad9e5789199becf77db55bc0d84a2e6c878977bbabf39faabf219266e |
|
MD5 | 1aecff4256f82b516b681f8465f89db5 |
|
BLAKE2b-256 | 54c0217d2cf0042209dea8fb7ba8ef104c46acbf0f1d008be066f415d52c8d50 |
Hashes for eradiate_mitsuba-0.0.1rc5-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64acbbc47c906203e4f363ec1d4e221e5a79445a2da4c114f5c37d9232b437c5 |
|
MD5 | 226fc85f334ff2b98766233a72ebeb18 |
|
BLAKE2b-256 | be997ba81a18e8c1dff7558f443bcdc4ec0b21ef7aa27fe274fb582fd9da5b43 |