Large OSPRay Material Database

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

There are 10 Metals with each having 6 modifications plus a couple custom ones
image

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

5 Likes

Awesome, thanks @mconti

FYI : @Michael @Dave_DeMarle

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

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

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

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.

1 Like

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

3 Likes

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

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.
{ 
	"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,

2 Likes

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