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:
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
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.
@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?
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.
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?
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 :
. The next stable version of ParaView including this feature will be 5.11.