Skip to content

feat: Optional texture argument for colorspace (part 1 -- don't reject)#1966

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-colorspace
Apr 5, 2025
Merged

feat: Optional texture argument for colorspace (part 1 -- don't reject)#1966
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-colorspace

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 5, 2025

A while back, we proposed a new optional token/value parameter for the texture functions: "colorspace", followed by a color space name, which indicates that the texture name referenced is understood to be in that colorspace (this is passed to the TextureSystem, which has known for some time how to ensure the right transformations are applied as tile data is read in).

We do not fully implement this yet! It's more involved than I have time to get right by the scheduled OSL 1.14 non-beta release (which was supposed to have been on Apr 1, oh no). Not wanting to delay things further, this change at least causes the use of the new parameter (which apparently, MaterialX has been using) to be silently accepted and ignored, rather than generating runtime errors. We'll come back right away for a more complete working implementation.

A while back, we proposed a new optional token/value parameter for the
texture functions: "colorspace", followed by a color space name, which
indicates that the texture name referenced is understood to be in that
colorspace (this is passed to the TextureSystem, which has known for
some time how to ensure the right transformations are applied as tile
data is read in).

We do not fully implement this yet! It's more involved than I have
time to get right by the scheduled OSL 1.14 non-beta release (which
was supposed to have been on Apr 1, oh no). Not wanting to delay
things further, this change at least causes the use of the new
parameter (which apparently, MaterialX has been using) to be silently
accepted and ignored, rather than generating runtime errors. We'll
come back right away for a more complete working implementation.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 5, 2025

@lkerley @jstone-lucasfilm This doesn't make it "work" in the sense of being fully functional, but it makes it safe to pass the parameter.

As soon as this gets approved and merged, I will tag the non-beta and make 1.14 the new supported release family.

@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 5, 2025

Would love a second pair of eyes on these, but I'm going to merge it by tomorrow either way if there are no specific objections, because the release is so hopelessly overdue.

Copy link
Copy Markdown
Contributor

@fpsunflower fpsunflower left a comment

Choose a reason for hiding this comment

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

LGTM

@lgritz lgritz merged commit 04f37e9 into AcademySoftwareFoundation:main Apr 5, 2025
26 checks passed
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Apr 5, 2025
…t) (AcademySoftwareFoundation#1966)

Optional texture argument for colorspace (part 1 -- don't reject)

A while back, we proposed a new optional token/value parameter for the
texture functions: "colorspace", followed by a color space name, which
indicates that the texture name referenced is understood to be in that
colorspace (this is passed to the TextureSystem, which has known for
some time how to ensure the right transformations are applied as tile
data is read in).

We do not fully implement this yet! It's more involved than I have
time to get right by the scheduled OSL 1.14 non-beta release (which
was supposed to have been on Apr 1, oh no). Not wanting to delay
things further, this change at least causes the use of the new
parameter (which apparently, MaterialX has been using) to be silently
accepted and ignored, rather than generating runtime errors. We'll
come back right away for a more complete working implementation.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz deleted the lg-colorspace branch April 6, 2025 00:53
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.

2 participants