# Proposal: PBR Material Editor

**URL:** https://discourse.paraview.org/t/proposal-pbr-material-editor/6952
**Category:** Development
**Created:** [April 14, 2021, 1:57pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952 "2021-04-14T13:57:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_Caissard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/thomas_caissard/32/5950_2.png) [@Thomas\_Caissard](https://discourse.paraview.org/u/Thomas_Caissard)
#### Post date: [April 14, 2021, 1:57pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/1 "2021-04-14T13:57:33Z")

</div>

Dear paraview community,

we are currently developping at kitware europe a new paraview feature which adds an interface to edit OSPRay materials within the paraview GUI. It will:

- allows you to load a existing material library from a json file (such as [https://gitlab.kitware.com/paraview/materials](https://gitlab.kitware.com/paraview/materials))
- add or delete material from that library
- brows through that library and make changes to the various properties of each material
- save the edited library
- see the current loaded material into a shader ball like environmment accessible within the widget which would give immediate feedback on current material changes

The current design, although still a prototype looks like this

 ![15_24_13-13_04](https://discourse.paraview.org/uploads/default/original/2X/0/04d2d90fac99f13bf1542c2c844e886b0ae4032e.jpeg)

You can see the material editor on the right hand side of the paraview window. The main rendering window displays a simple ball with a HDR environment. This rendering will in the end move inside the material editor, and would be independent from the rendering window.

Any thoughts / concerns?

---

<div class="post-metadata">

### Author: ![LfxPaul](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lfxpaul/32/3703_2.png) [@LfxPaul](https://discourse.paraview.org/u/LfxPaul)
#### Post date: [April 14, 2021, 1:59pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/2 "2021-04-14T13:59:15Z")

</div>

Awesome feature! @Michael

---

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [April 14, 2021, 3:07pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/3 "2021-04-14T15:07:20Z")

</div>

@Thomas_Caissard as someone who makes a ton of materials this would be an awesome addition! Will this be able to handle all the materials OSPRay supports or just the base PBRs?

---

<div class="post-metadata">

### Author: ![LfxPaul](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lfxpaul/32/3703_2.png) [@LfxPaul](https://discourse.paraview.org/u/LfxPaul)
#### Post date: [April 14, 2021, 3:31pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/4 "2021-04-14T15:31:08Z")

</div>

It is only an OSPRay material editor (not linked with our PBR shader), so all OSPRay materials are available!

---

<div class="post-metadata">

### Author: ![mconti](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mconti/32/2168_2.png) [@mconti](https://discourse.paraview.org/u/mconti)
#### Post date: [April 14, 2021, 3:55pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/5 "2021-04-14T15:55:14Z")

</div>

Great! I would get a ton of use out of that. If you need someone to beta test at some point let me know

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [April 15, 2021, 1:33pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/6 "2021-04-15T13:33:07Z")

</div>

One suggestion I have is to try to do as much of the implementation as is feasible at the VTK level. This would make the editor be easily reused by other VTK enabled applications and would facilitate packaging as a standalone offline application.

---

<div class="post-metadata">

### Author: ![Vincent\_Rivola](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vincent_rivola/32/2007_2.png) [@Vincent\_Rivola](https://discourse.paraview.org/u/Vincent_Rivola)
#### Post date: [March 8, 2022, 3:46pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/7 "2022-03-08T15:46:01Z")

</div>

I just tried this editor in PV 5.10. It’s a nice feature, congrats  
How do you save the new or modified materials in a json file? Is it done automatically when you “Attach” the material to the current selected object?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 8, 2022, 3:49pm UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/8 "2022-03-08T15:49:49Z")

</div>

@timothee.chabat

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [March 9, 2022, 8:16am UTC](https://discourse.paraview.org/t/proposal-pbr-material-editor/6952/9 "2022-03-09T08:16:46Z")

</div>

Glad to see that you like this feature @Vincent_Rivola 🙂  
Sadly the json export feature wasn’t developed at the time 5.10 was released, thus you cannot save your modification with this version of ParaView.

However you can find this feature in the nightlies just next to the `Load Json` button :  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/b86a4f8e169fa247f08f9059b3601be21fcb8eb2.png)  
. The next stable version of ParaView including this feature will be 5.11.
