Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arnold Metadata : Add openpbr_surface #5982

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

johnhaddon
Copy link
Member

With a little bit of hoop-jumping to suppress warnings in older Arnold versions where the shader doesn't exist.

Arnold warns if a `.mtd` file references nodes that don't exist, which makes managing metadata for use in multiple Arnold versions a bit of a pain. We were dealing with this by filtering the metadata per-major-version during installation, but that doesn't help when Arnold introduces a new node - such as `openpbr_surface` - within a minor release. So now we just suppress the warnings, and have a much simplified installation process.
When a custom label is used, it often omits the "Page" information which is provided by the layout in the NodeEditor. This isn't good in the GraphEditor, so there we fall back to a label generated from the full parameter name.
I've given pretty much everything a custom label that omits the Base/Specular/Coat etc prefix which is shown in the layout sections anyway. This was necessary due to an increased prevalence of long names compared to `standard_surface`, such as `transmission_dispersion_abbe_number`.
@johnhaddon johnhaddon self-assigned this Aug 1, 2024
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will just need to be retargetted to 1.4_maintenance before merging.

@johnhaddon johnhaddon changed the base branch from main to 1.4_maintenance August 2, 2024 08:52
@johnhaddon johnhaddon merged commit f397617 into GafferHQ:1.4_maintenance Aug 2, 2024
5 checks passed
@johnhaddon johnhaddon deleted the openPBR branch August 7, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants