Hi Jeremy,
Thank you for your reply.
This is an API question.
What I want to do, is, for any type of Revit Material, compute close or equivalent PBR values:
Albedo
Transparency
Normal Map (texture, if any)
Metal (coefficient and/or texture)
roughness (coefficient and/or texture)
AO (coefficient and/or texture)
So, for each material Schema I get, I've to "translate" the schema to PBR equivalent values.
How can I, programmatically, know if a material is PBR in Revit 2019 and 2020 ?
The yellow exclamation mark in Revit UI is a nice touch but I don't find the equivalent in the Revit API.
With Revit 2019 moving to a dual schema (if I undestand correctly), Generic appearance and PBR appearance , may be it would be really great if the MaterialNode class could be updated to reflect the PBR approach, with adding a PRBData struct, for example.
May be I'm naive here, since I'm quite new to Revit Material API. Sorry if I'm being naive or on the wrong track here.
Does this suggestion make sense or is complete nonsense (I would be happy to learn something, which I'm comfortable with 🙂 ) ?
Meanwhile, I'll have a look at every Generic.xml file to generate PRB values that are as close as possible to the Generic schema.
Thanks