# Large OSPRay Material Database

**URL:** https://discourse.paraview.org/t/large-ospray-material-database/2708
**Category:** Tips and Tricks
**Created:** [October 7, 2019, 2:25am UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708 "2019-10-07T02:25:57Z")
**Posts on this page:** 10
**Page:** 1

<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: [October 7, 2019, 2:25am UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/1 "2019-10-07T02:25:58Z")

</div>

Hey everyone, I haven’t been able to find a good consolidated material database for OSPRay materials online anywhere. So, I made one myself, and figured I would share it with anyone else who might find it useful.

There are 50+ colors in OBJ format with each having 5 modifications  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f719e6d6e0e13a78bd401e99a5bf91b71490f510.png)

There are 10 Metals with each having 6 modifications plus a couple custom ones  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/81da01153bc29dd42002f66fbae4f783bf6acd34.jpeg)

Hope this helps someone. If you have any questions with these or any other questions about how to create materials in OSPRay, let me know. During this, I’ve figured out a ton about the MTL format and how it is implemented in OSPRay.

Marston

**Link to Database/Textures:**  
[https://drive.google.com/drive/folders/1oRMOFI7qB-JOjbQ4BfstVoJMflV7tOfd?usp=sharing](https://drive.google.com/drive/folders/1oRMOFI7qB-JOjbQ4BfstVoJMflV7tOfd?usp=sharing)

---

<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: [October 7, 2019, 2:34am UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/2 "2019-10-07T02:34:35Z")

</div>

Awesome, thanks @mconti

FYI : @Michael @Dave_DeMarle

---

<div class="post-metadata">

### Author: ![timofeymukha](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timofeymukha/32/1297_2.png) [@timofeymukha](https://discourse.paraview.org/u/timofeymukha)
#### Post date: [May 4, 2020, 3:55pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/3 "2020-05-04T15:55:28Z")

</div>

@mconti Thank you so much for sharing this!! Perhaps put it out somewhere more permanent, such as a git repository?

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.paraview.org/user_avatar/discourse.paraview.org/michael/32/16_2.png) [@Michael](https://discourse.paraview.org/u/Michael)
#### Post date: [May 6, 2020, 8:15am UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/4 "2020-05-06T08:15:02Z")

</div>

Here is the database used in ParaView releases: [https://gitlab.kitware.com/paraview/materials](https://gitlab.kitware.com/paraview/materials)  
Feel free to submit merge request to include more materials.

---

<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: [August 12, 2020, 10:12pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/6 "2020-08-12T22:12:51Z")

</div>

Hey @Michael, finally got around to doing this. Here is the merge request. I just loaded in the metals and organics. The base colors users should be able to do themselves and I didn’t want to overwhelm the user with options. I’m pretty green with Gitlab so let me know if I did something wrong or did to change something.

thanks,

[https://gitlab.kitware.com/paraview/materials/-/merge\_requests/2](https://gitlab.kitware.com/paraview/materials/-/merge_requests/2)

---

<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: [August 20, 2020, 4:44pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/7 "2020-08-20T16:44:46Z")

</div>

Hey everyone, I am making some serious modifications to this and trying to get it integrated into PV itself. So for the time being I am taking down the database.

---

<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: [November 9, 2020, 9:50pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/8 "2020-11-09T21:50:55Z")

</div>

Hey everyone, this database has been redone and integrated into Paraview itself for 5.9. If you wish to check it out without 5.9 you can download it here (note that it is in the OSPRay 2.0 framework, but it would be easy for someone to convert back to 1.0 if needed)

[https://gitlab.kitware.com/paraview/materials](https://gitlab.kitware.com/paraview/materials)

---

<div class="post-metadata">

### Author: ![Dave1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave1/32/11492_2.png) [@Dave1](https://discourse.paraview.org/u/Dave1)
#### Post date: [January 17, 2022, 5:49pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/9 "2022-01-17T17:49:24Z")

</div>

Hello Marston

Thanks for helping inplementing some materials into paraview. much appreciated  
Is there any chance to get the 50+ color modifications?  
Im working on material library but i have difficulty understanding the OSPray material documentation. I also trying to make glossy materials. Im curious what parameter you used in your materials.

regards david

---

<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: [January 17, 2022, 6:00pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/10 "2022-01-17T18:00:25Z")

</div>

Hey @Dave1, I removed all the color modifications when I implemented this in the actual code since you can make the colors easily enough in the GUI now. A couple quick tips that should help:

In the Lighting section of the properties panel, change the interpolation to PBR.

- Diffuse controls how much light reflects back
- Roughness controls how “shiny” it is
- Metallic controls whether it acts as a PBR metal or not  
If you want to build your own deck with some mats, the format is fairly JSON format. See below for an example.

```auto
{ 
	"family": "OSPRay", 
	"version": "0.0", 
	"materials": { 
		"OBJ_blue_dull": { 
			"type": "OBJMaterial", 
			"doubles": { 
				"kd": [0.00, 0.00, 1.00], 
				"ks": [0.00, 0.00, 0.20], 
				"d": [1.00] 
			} 
		}, 
		"OBJ_blue_glossy": { 
			"type": "OBJMaterial", 
			"doubles": { 
				"kd": [0.00, 0.00, 1.00], 
				"ks": [0.00, 0.00, 0.80], 
				"d": [1.00] 
			} 
		}, 
		"OBJ_blue_bright": { 
			"type": "OBJMaterial", 
			"doubles": { 
				"kd": [0.00, 0.00, 1.00], 
				"ks": [0.80, 0.80, 0.80], 
				"d": [1.00] 
			} 
		}
	} 
} 

```

Hope that helps,

---

<div class="post-metadata">

### Author: ![Dave1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave1/32/11492_2.png) [@Dave1](https://discourse.paraview.org/u/Dave1)
#### Post date: [January 18, 2022, 5:36pm UTC](https://discourse.paraview.org/t/large-ospray-material-database/2708/11 "2022-01-18T17:36:40Z")

</div>

ohh thats great. It will help a lot to get into rendering in paraview.  
thank you very much
