Skip to content

[Lottie exporter] Export outlines without variable widths #1217

Closed

Description

@morevnaproject

Add an option to export outlines without variable widths.

That way we get native Lottie outlines and will make animation playback much faster.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. saurabh-ramola commented on Aug 18, 2020

    @saurabh-ramola
    Member

    @morevnaproject , I discussed this with @AnishGG and we found a way that will allow us to not animate the animation frame by frame and this method leads to a huge decrease in .json file size as well leading to faster playback 😃 . The only limitations are that :

    1. Width will be the same in the outline, though it can be animated.
    2. The ends of the outline(tip) cannot be animated in this method.
  2. AnishGG commented on Aug 18, 2020

    @AnishGG
    Member

    @saurabh-ramola please mention the points that were discussed regarding the use of first vertex as the common width. This way we can ensure that we are all on the same page and then you can start with the implementation. ^__^

  3. saurabh-ramola commented on Aug 18, 2020

    @saurabh-ramola
    Member

    @saurabh-ramola please mention the points that were discussed regarding the use of first vertex as the common width. This way we can ensure that we are all on the same page and then you can start with the implementation. ^__^

    Yes, I forgot to mention the options for width :

    1. We could use the width of the first vertex as the common width.
    2. We could take the average width of the three vertices but this would be problematic to implement in Lottie.

    Personally I'm in favour of first option.

  4. AnishGG commented on Aug 18, 2020

    @AnishGG
    Member

    2. three vertices

    I think you meant all vertices :D

    +1 in favour of using the width of first vertex as the common width.

  5. morevnaproject commented on Aug 19, 2020

    @morevnaproject
    MemberAuthor

    I think we should use value in Outline Width parameter (1), as the widthpoints (2) are just define relative scale for that value ^__^ -
    screenshot_001

  6. AnishGG commented on Aug 19, 2020

    @AnishGG
    Member

    I think we should use value in Outline Width parameter (1), as the widthpoints (2) are just define relative scale for that value ^__^ -
    screenshot_001

    Oh yes, this is much better!
    @saurabh-ramola please make a note. ^__^

  7. AnishGG commented on Jul 17, 2021

    @AnishGG
    Member

    Linking the PR here: #1647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions