Coder Social home page Coder Social logo

engine-lottie's People

Contributors

cptbtptpbcptdtptp avatar eyworldwide avatar guolei1990 avatar gz65555 avatar singlecoder avatar yunyoujun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

engine-lottie's Issues

Shape element

include shapes and edges, maybe create another shader.

动画结束监听异常

lottie 动画结束,首次调用是生效的。
比如,首次首次调用:
console.log(Date.now());
await lottie.play();
console.log(Date.now());

两次打印的时间,间隔动画的播放时长。

但是第二次调用:
console.log(Date.now());
await lottie.play();
console.log(Date.now());

两次打印的时间无间隔。

适配:渲染顺序

0.8 版本引擎优化了渲染顺序,Lottie 需要适配,同时可以把之前的临时方案优化掉。

When destroy LottieAnimation, should call destroy on LottieResource

LottieAnimation will destroy all texture but the LottieResource resource will leave in the cache of resource manager. when load the same url again, the cache will work without texture

Now I have to call it by hand:

this._currentEntity.getComponent(LottieAnimation).resource.destroy();
this._currentEntity.destroy();

TypeError: Cannot read property 'load' of undefined

淘宝小程序中使用 json格式 ,TypeError: Cannot read property 'load' of undefined

engine.resourceManager.load({ urls: [ "https://gw.alipayobjects.com/os/bmw-prod/b46be138-e48b-4957-8071-7229661aba53.json", "https://gw.alipayobjects.com/os/bmw-prod/6447fc36-db32-4834-9579-24fe33534f55.atlas" ], type: 'lottie' }).then((lottieEntity) => { rootEntity.addChild(lottieEntity); const lottie = lottieEntity.getComponent(LottieAnimation); lottie.isLooping = true; lottie.play(); });

渲染顺序有误

在 Lottie 中,无法在保证 Lottie 内部渲染效果正确的同时保证全局渲染效果正确,下方表示精灵和 Lottie 互相遮挡时的渲染情况,左侧为侧视图视角,右侧为正视图视角

当前表现(Lottie 内部正确,全局错误)

merge

期望表现(Lottie 内部正确,全局正确)

merge

link: galacean/engine#1824

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.