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

Add emission_weight #231

Merged

Conversation

portsmouth
Copy link
Contributor

@portsmouth portsmouth commented Aug 16, 2024

Implements the change described in #229.

image

image

@portsmouth portsmouth marked this pull request as draft August 22, 2024 20:21
@portsmouth portsmouth mentioned this pull request Aug 29, 2024
Copy link

@ZapAndersson ZapAndersson left a comment

Choose a reason for hiding this comment

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

I approve.

index.html Outdated Show resolved Hide resolved
@portsmouth portsmouth changed the base branch from main to dev_1.2 September 16, 2024 14:54
@portsmouth portsmouth marked this pull request as ready for review September 16, 2024 14:54
@portsmouth
Copy link
Contributor Author

portsmouth commented Sep 17, 2024

emission_weight luminance emission_luminance needs to default to 1000 in both the text and the parametrization table.

@virtualzavie
Copy link
Contributor

emission_weight luminance needs to default to 1000 in both the text and the parametrization table.

Ah right, I see the parameter list still has a luminance default value of 0 (assuming you meant emission_luminance, not emission_weight).
If we have two parameters, indeed, one of them must have a default value different from 0.

The default value 1000 sounds reasonable to me since it's the order of magnitude of the maximum luminance of typical displays screens (smartphones and TVs).

portsmouth and others added 3 commits September 23, 2024 16:32
Co-authored-by: Julien Guertault <9511025+virtualzavie@users.noreply.github.com>
Signed-off-by: Jamie Portsmouth <jamports@mac.com>
@jstone-lucasfilm
Copy link
Member

This looks fine to me, though it would be ideal to update the reference implementation in sync with this change, so that we don't accidentally create divergence between them.

@portsmouth
Copy link
Contributor Author

portsmouth commented Oct 5, 2024

This looks fine to me, though it would be ideal to update the reference implementation in sync with this change, so that we don't accidentally create divergence between them.

Done in eed5022

@portsmouth
Copy link
Contributor Author

@jstone-lucasfilm can be merged?

@jstone-lucasfilm
Copy link
Member

@portsmouth This looks very close to the mark, but we should update Anton's open_pbr_lightbulb.mtlx example so that it remains an emissive material in OpenPBR 1.2!

https://github.com/AcademySoftwareFoundation/OpenPBR/blob/main/examples/open_pbr_lightbulb.mtlx

@portsmouth
Copy link
Contributor Author

@portsmouth This looks very close to the mark, but we should update Anton's open_pbr_lightbulb.mtlx example so that it remains an emissive material in OpenPBR 1.2!

https://github.com/AcademySoftwareFoundation/OpenPBR/blob/main/examples/open_pbr_lightbulb.mtlx

Done in 203103e. Hopefully there aren't a lot of existing assets out there that will be bitten by this (I assume not, yet..).

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks @portsmouth!

@jstone-lucasfilm jstone-lucasfilm merged commit 297d447 into AcademySoftwareFoundation:dev_1.2 Oct 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants