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
There are 10 Metals with each having 6 modifications plus a couple custom ones
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.
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.
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.
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)
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.
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.