GSOC-2019::Export Animation for Web

lottie
export

#102

Weekly Update(4 August - 10 August):

  • Add support for bones origin and angle parameters.
  • Bug fix which did not allow rendering of png format images. (link)

This week, I was able to understand the bone link convert method and implement some of it’s features.
In the next week, I will be extending support for the skeleton layer and bones(such as base value).
Any feedbacks and suggestions are most welcome.
Stay tuned for the next update. :smiley:
-Anish


#103

@KonstantinDmitriev, by default the skeleton layer is disabled from rendering.
After rendering there is a structure visible. Is it’s color always fixed(I guess it is blue)?
Also to draw this, is this the correct file I should be referring to https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/layers/layer_skeleton.cpp?

If yes, at the last of this link: https://github.com/synfig/synfig/blob/16f6a5cbc40e857d999b9b7e0b09fc30e13a250f/synfig-core/src/synfig/layers/layer_skeleton.cpp#L213 I encountered add_polygon() being used, but on observing the skeleton’s, the skeleton structure has curvy corners which is not provided by add_polyton().
Please provide some clarity on this.
Thank you!


#104

Also to draw this, is this the correct file I should be referring to https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/layers/layer_skeleton.cpp?

Yes, this is the right file. :slight_smile:

but on observing the skeleton’s, the skeleton structure has curvy corners which is not provided by add_polygon().

Actually, all curves are constructed from polygons. They just constructed using very small segments in curvy areas. :slight_smile:

Finally, an important note: I don’t expect skeleton to be visualized by converter, so you can safely skip this part. ^___^


#105

Yes, this seems to be the case. But as per my understanding, add_polygon() is only used for non-curvy figures. For curvy figures, move_to and cubic_to functions are used. But still I will check this out and inform whatever I find, here.

Oh, In this case, I will prioritize the development of all other bone parameters which are left.


#106

Great, thank you! :slight_smile:


#107

@KonstantinDmitriev, Could you point at the difference between recursive and local length scale.

I have attached a file below. In that, there are 3 bones: bone1, bone2, bone3 where bone3 -> bone2 -> bone1 -> root_bone. A star layer has it’s origin attached to bone3.
Initially all of them have local and recursive length set to 1.

Case 1: change recursive length of bone1 to 2.
Case 2: change local length scale of bone1 to 2 and local length scale of bone2 to 2.

According to my understanding, both cases should have resulted in the same animation, but this is not the case.
Could you provide some help here please. :slight_smile:
skeleton_example.sifz (1.1 KB)


#108

Oh, you right. It looks like I provided incorrect information about recursive length (here). Sorry for that. ^_^"

The correct meaning of recursive length - it stretches current and all child bones in direction of current bone.

In your case the angle of bone1 is 0, so it is stretching all child bones along X axis.


#109

Weekly Update(11 August - 17 August):

  • Add support for other parameters in bones: base_value, local scale length.
  • Bug fix: When 2 vectors are equal on adjacent time frames (link)

This week, I was able to add support for 2 more parameters in bone link. I struggled implementing the recursive scale length parameter. Hence I have asked @KonstantinDmitriev for help with this, thanks to him!
In the next week, I will be providing support for recursive scale length parameter. Then I will be resolving the issues submited to github issue tracker: https://github.com/synfig/synfig/issues?q=is%3Aissue+milestone%3A"Lottie%3A+Export+animation+for+web"+is%3Aopen

Sorry for the delay in update. I was caught up in some work.

Any suggestions or feedback are most welcome
Stay tuned for the next update. :smiley:
-Anish


#110

Weekly Update(18 August - 24 August):

This week was mostly filled with the final submission of GSoC project. I was able to fix some bugs reported by @KonstantinDmitriev. I have pushed the development of recursive scale length to a later date. I will need to figure out the math for it first.
In the next week, I will be resolving more issues submitted to the github issue tracker regarding the lottie exporter.

Any suggestions or feedback are most welcome
Stay tuned for the next update. :smiley:
-Anish


#111

Thank yo for sharing this, Its useful.


#112

@KonstantinDmitriev, I have seen some modifications in the outline layer recently. (Ex: https://github.com/synfig/synfig/commit/eed519672395ca4278552d05cb9eda0d1ecd69c0#diff-ebcf1997c8ddc9a1e8ddde66cc858928).
Do these changes need to be reflected in the Lottie exporter also?

-Anish


#113

@AnishG Thank you for note! That depends on the fact if Lottie exporter produces distortions for outline tips, as described in this bug? - https://github.com/synfig/synfig/issues/985

I guess this bug appeared after GSoC, so it is likely that Lotie Exporter is not affected. Can you check, please? ^___^


#114

@KonstantinDmitriev, yes you were right. This bug is not there in lottie exporter.
So, now I will start with the export of advanced outline layer.

-Anish


#115

Awesome! Looking forward to it! ^___^