Skip to content

[Lottie exporter] Add variable gamma correction - #1179

Merged
ice0 merged 1 commit into
synfig:masterfrom
saurabh-ramola:GAMMA_CORRECTION
Mar 8, 2020
Merged

ice0 merged 1 commit into
synfig:masterfrom
saurabh-ramola:GAMMA_CORRECTION

Conversation

@saurabh-ramola

Copy link
Copy Markdown
Member

Fixes: #1174
@AnishGG please have a look.

@saurabh-ramola

Copy link
Copy Markdown
Member Author

One doubt here: If there is a group layer inside our main canvas and it's canvas has some different gamma correction values associated with it. How do we handle that here?

@saurabh-ramola

Copy link
Copy Markdown
Member Author

I have created a gist showing an example:
https://gist.github.com/saurabh-ramola/86a8709e4ca8e684fbbf6275cdbb7ccc#file-check_gamma-sif-L59
I tested this file on Synfig, but the internal canvas's gamma values have no effect on the color. So I guess this PR closes the issue.

@AnishGG

AnishGG commented Feb 26, 2020 •

Copy link
Copy Markdown
Member

I have tested this. Looks great!
@morevnaproject I think this is ready to be merged.

@AnishGG

AnishGG commented Feb 26, 2020 •

Copy link
Copy Markdown
Member

the internal canvas's gamma values have no effect on the color.

Even I tested this and I got the same result. @morevnaproject could you confirm if this is the expected behaviour.

@ice0
ice0 requested a review from morevnaproject February 27, 2020 12:43
@AnishGG

AnishGG commented Mar 3, 2020

Copy link
Copy Markdown
Member

@morevnaproject , could you have a look at this please ^__^

@AnishGG AnishGG changed the title Add variable gamma correction [Lottie exporter] Add variable gamma correction Mar 4, 2020
@saurabh-ramola

Copy link
Copy Markdown
Member Author

@ice0 Does this need any changes? ^_^

@ice0

ice0 commented Mar 7, 2020

Copy link
Copy Markdown
Collaborator

@saurabh-ramola code looks good to me.

@ice0

ice0 commented Mar 7, 2020

Copy link
Copy Markdown
Collaborator

@saurabh-ramola just checked. If i change Canvas->Properties->Gamma correction i can see difference in colors on canvas. (Especially if you set it like 3, 1, 1). But when i export animation using plugin - i can't see any difference in result. Can you confirm that?

@saurabh-ramola

Copy link
Copy Markdown
Member Author

@saurabh-ramola just checked. If i change Canvas->Properties->Gamma correction i can see difference in colors on canvas. (Especially if you set it like 3, 1, 1). But when i export animation using plugin - i can't see any difference in result. Can you confirm that?

@ice0 , I tried the steps followed by you, but I am getting different colors every time I change the gamma correction.
I am attaching the file that I used: circle.sif
Could you provide me the test file that you used?

@ice0

ice0 commented Mar 7, 2020

Copy link
Copy Markdown
Collaborator

Here is what I see when your file is exported:

lottie1

@saurabh-ramola

Copy link
Copy Markdown
Member Author

@ice0 I even tried running the files from bash using python3. But I got the correct results.
Could you guide me furthur how can we resolve this?

@AnishGG

AnishGG commented Mar 7, 2020

Copy link
Copy Markdown
Member

I am currently building your branch, will report soon. :D

@AnishGG

AnishGG commented Mar 7, 2020

Copy link
Copy Markdown
Member

@ice0 even I am getting the correct export results. Is it possible that you might have built the wrong branch from the fork?
While testing this file, I encountered an error in the app. Will submit it to the issue tracker. ^__^

@ice0

ice0 commented Mar 8, 2020

Copy link
Copy Markdown
Collaborator

@saurabh-ramola @AnishGG, that was a problem on my side guys. I forgot to fix the plugin.xml file, so all this time I checked the old plugin. At the moment - everything works fine! Well done!

@ice0
ice0 merged commit afe6dc8 into synfig:master Mar 8, 2020
@ice0

ice0 commented Mar 8, 2020

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

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.

[Lottie exporter] Add support for variable gamma correction

3 participants