OpenPBR icon indicating copy to clipboard operation
OpenPBR copied to clipboard

Add emission_weight

Open portsmouth opened this issue 1 year ago • 4 comments

Implements the change described in https://github.com/AcademySoftwareFoundation/OpenPBR/issues/229.

image

image

portsmouth avatar Aug 16 '24 11:08 portsmouth

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

portsmouth avatar Sep 17 '24 17:09 portsmouth

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).

virtualzavie avatar Sep 23 '24 10:09 virtualzavie

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.

jstone-lucasfilm avatar Oct 01 '24 19:10 jstone-lucasfilm

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 https://github.com/AcademySoftwareFoundation/OpenPBR/pull/231/commits/eed50221cb278fb03eb30d1ae9937ad52044000a

portsmouth avatar Oct 05 '24 18:10 portsmouth

@jstone-lucasfilm can be merged?

portsmouth avatar Oct 15 '24 12:10 portsmouth

@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

jstone-lucasfilm avatar Oct 15 '24 17:10 jstone-lucasfilm

@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 203103e749e4a8991cd529513bbbf6c9808d0779. Hopefully there aren't a lot of existing assets out there that will be bitten by this (I assume not, yet..).

portsmouth avatar Oct 15 '24 18:10 portsmouth