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

Triplanar with different colorspaces gets wrong color transform #2182

Open
rasmusbonnedal opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@rasmusbonnedal
Copy link
Contributor

Description

When using the <triplanarprojection> node (which has 3 filename inputs) and different colorspaces on the different inputs only one colorspace transform is generated.

To reproduce

Create a <triplanarprojection> node with different colorspaces on the different input and observe the generated OSL code.

image
repro-triplanar.zip

Result

Generated OSL code:

    NG_triplanarprojection_color3(triplanarprojection_filex_, triplanarprojection_filey_, triplanarprojection_filez_, triplanarprojection_layerx, triplanarprojection_layery, triplanarprojection_layerz, triplanarprojection_default, geomprop_Pobject_out1, geomprop_Nobject_out1, triplanarprojection_upaxis, triplanarprojection_blend, triplanarprojection_filtertype, triplanarprojection_framerange, triplanarprojection_frameoffset, triplanarprojection_frameendaction, triplanarprojection_out);
    color triplanarprojection_out_cm_out = color(0.0);
    NG_srgb_texture_to_lin_rec709_color3(triplanarprojection_out, triplanarprojection_out_cm_out);

Expected result

I'd expect that three colorspace transforms would be emitted, one for each file input, with the corresponding source colorspace for each file input.

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

No branches or pull requests

1 participant