# VTK Examples - New Physically Based Rendering examples

**URL:** https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737
**Category:** Announcements
**Created:** [November 4, 2022, 5:05am UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737 "2022-11-04T05:05:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [November 4, 2022, 5:05am UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737/1 "2022-11-04T05:05:56Z")

</div>

I have added fourteen PBR examples to vtk-examples.

They are:

| C++ | Python | Description |
| --- | --- | --- |
| [PBR Anisotropy](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Anisotropy/) | [PBR Anisotropy](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Anisotropy/) | Render spheres with different anisotropy values. |
| [PBR\_Clear\_Coat](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Clear_Coat/) | [PBR\_Clear\_Coat](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Clear_Coat/) | Render a cube with custom texture mapping and a coat normal texture. |
| [PBR Edge Tint](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Edge_Tint/) | [PBR Edge Tint](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Edge_Tint/) | Render spheres with different edge colors using a skybox as image based lighting. |
| [PBR HDR Environment](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_HDR_Environment/) | [PBR HDR Environment](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_HDR_Environment/) | Renders spheres with different materials using a skybox as image based lighting. |
| [PBR Mapping](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Mapping/) | [PBR Mapping](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Mapping/) | Render a cube with custom texture mapping. |
| [PBR Materials](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Materials/) | [PBR Materials](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Materials/) | Renders spheres with different materials using a skybox as image based lighting. |
| [PBR Materials Coat](https://kitware.github.io/vtk-examples/site/Cxx/Rendering/PBR_Materials_Coat/) | [PBR Materials Coat](https://kitware.github.io/vtk-examples/site/Python/Rendering/PBR_Materials_Coat/) | Render spheres with different coat materials using a skybox as image based lighting. |

These examples are derived from the various VTK PBR tests. I hope that they will encourage those considering Physically Based Rendering to experiment. As the results are oftern really beautiful.

They all use a common JSON file which should make things easy as PBR often requires lots of files.

---

<div class="post-metadata">

### Author: ![will.schroeder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/will.schroeder/32/233_2.png) [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)
#### Post date: [November 4, 2022, 10:58am UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737/2 "2022-11-04T10:58:45Z")

</div>

Wow, just wow! Wonderful additions

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [November 4, 2022, 2:57pm UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737/3 "2022-11-04T14:57:56Z")

</div>

Amazing! Thank you, Andrew!

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [November 4, 2022, 11:54pm UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737/4 "2022-11-04T23:54:31Z")

</div>

You can now view tthe PBR examples as a group in:

- [CxxHowTo](https://kitware.github.io/vtk-examples/site/CxxHowTo/#physically-based-rendering)
- [PythonHowTo](https://kitware.github.io/vtk-examples/site/PythonHowTo/#physically-based-rendering)

You can also see the relevant pictures there.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [November 7, 2022, 3:20am UTC](https://discourse.vtk.org/t/vtk-examples-new-physically-based-rendering-examples/9737/5 "2022-11-07T03:20:30Z")

</div>

I have now updated the original three examples `PBR_Skybox`, `PBR_Skybox_Texturing` and `PBR_Skybox_Anisotropy`. They have a new command line parameter `-t` that activates tone mapping. When this is activated, a slider for exposure will appear.

For all the PBR examples:

- The description of the JSON file is here: [PBR JSON file format](https://kitware.github.io/vtk-examples/site/Documentation/PBR_JSON_format/).
- The function reading the JSON parameter file is the same.
- The function displaying the parameters is the same.
- Functions for the reading of cube maps and equirectangular files are also the same .
