Giter Site home page Giter Site logo

Comments (13)

boothub avatar boothub commented on August 22, 2024

Using full path instead of relative path,does not help.

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

@boothub ,
Currently rlottie library can't render the resource abstract_circle.json (present in rlottie/example/resource directory) . i will try to fix the issue.

Have you tried with other resources ? did you face the same problem ?

Thanks
Subhransu

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

@boothub , you are right . currently in my test case abstract_circle.json dosen't render

from rlottie.

boothub avatar boothub commented on August 22, 2024

@smohantty , Which example from rlottie/example/resource is rendering?Just for test? Many thanks!

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

@boothub , Most of them are working . just try "ao.json"

To test easily if a resource can be renderer by rlottie library.
just drag and drop the file to http://www.rlottie.com/ (this page will render the json using rlottie library )

from rlottie.

boothub avatar boothub commented on August 22, 2024

I tried many of them... unfortunately I get same results.... zero buffer.
With ao.json,I have the same problem.... Where should I set a breakpoint to see why the buffer could not be written? Thank you!

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

test.zip

@boothub
I have attached the modified code .. which uses absolute path of the resource . could you test this and see if it works for you.
and could you send me the console logs what you are getting .

Thanks
Subhransu

from rlottie.

boothub avatar boothub commented on August 22, 2024

@smohantty
Its modifiying the buffer now...
The root cause was the relative path as you suggested at the beginning.
My fault is that I checked your suggestion with abstract_circles.json, and I thought that this is not the problem.... Actually was my luck to not use a good JSO during the test.

Many thanks Subhransu!
Valentin.

real path /home/valentin/test_rlottie/ao.json
Sufrace Buffer = 0x7fdfd07e4010
Running test app... animation ptr (0x55d602151b90) duration [0.983333] frame [59], width [500], height [500]
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 18699.
Buffer Delta found at idx 17210.
Buffer Delta found at idx 16222.
Buffer Delta found at idx 15733.
Buffer Delta found at idx 15744.
Buffer Delta found at idx 15755.
Buffer Delta found at idx 15767.
Buffer Delta found at idx 16278.
Buffer Delta found at idx 17289.
Buffer Delta found at idx 18300.
Buffer Delta found at idx 19811.
Buffer Delta found at idx 21821.
Buffer Delta found at idx 23832.
Buffer Delta found at idx 26342.
Buffer Delta found at idx 28853.
Buffer Delta found at idx 31863.
Buffer Delta found at idx 35373.
Buffer Delta found at idx 38883.
Buffer Delta found at idx 42392.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.
Buffer Delta found at idx 43732.

from rlottie.

boothub avatar boothub commented on August 22, 2024

We could add an improvement in doxygen description of the API lottie_animation_from_file. More, we could probably add this test file in the examples? I can create a pull request with a nicer version that could be used by others.
Many thanks, again!

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

@boothub ,
Glad that the issue is resolved.
Regarding Improving documentation , Please make a patch for the same.

Regarding adding this as example , It will be great if this test writes the buffer to an image file which user can view using any image viewing tool. will happy to add that in our demo.

I am planning to add an example in which it will out put the result of a json file into a gif. maybe you
can contribute to that example.

from rlottie.

boothub avatar boothub commented on August 22, 2024

I am planing to play the rendered output with GTK or something similar.
Part with the GIF sounds nice as well. I will think of it.

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

We already have some UI application in example folder which depends on ui toolkit like EFL.

So A demo without any dependency with other library will be great (like your single file demo example).

I like the GIF idea . I tried to find some single header library that could save the buffer to a GIF. but most of them don't support the alpha channel .
You can have a look at stb_image_write.h which can save the argb buffer to png or jpg . something like that will be great . application can have command line Ui and user can choose which frame it wants to save and then it saves to a PNG file using any single header library.

from rlottie.

smohantty avatar smohantty commented on August 22, 2024

have added one example rlottie which renders the json file and outputs to GIF file.

from rlottie.

Related Issues (20)

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.