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

User parameters don't work well #3

Open
Summer60 opened this issue Jul 20, 2020 · 2 comments
Open

User parameters don't work well #3

Summer60 opened this issue Jul 20, 2020 · 2 comments

Comments

@Summer60
Copy link

Thanks a lot for great code! it works pretty well in case of passing direct parameter to it (x0,y0,x1,y1). However, I had no luck in getting a reasonable curve particularly in shoulder area when I used the user parameters. The result shoulder is almost linear. I am not sure if adding y1_offset to x0 is a right thing to do (or maybe it's a typo in line 239). Anyways, what I get is very different from what is shown in the blog post. I implemented the code as it is with the parameters given in the blog. Can you please give me a hint if I am missing something? Thanks for any clarification.

@Summer60
Copy link
Author

Summer60 commented Sep 1, 2020

Can you please address this issue?

@bensyverson
Copy link

Hi @Summer60, I ran into the same problem. I believe there's a bug in line 243 of FilmicToneCurve.cpp. The parameter shoulderLength should be used to define the latitude/ceiling in F-stops, but instead, shoulderStrength is being passed in:

float extraW = exp2f(shoulderStrength)-1.0f;

I'm not directly using this repository, but I used it as reference in creating a separate Swift implementation. I made the swap on that line in my repo, and now the User Params work as expected.

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

2 participants