Comments (13)
Using full path instead of relative path,does not help.
from rlottie.
@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.
@boothub , you are right . currently in my test case abstract_circle.json dosen't render
from rlottie.
@smohantty , Which example from rlottie/example/resource is rendering?Just for test? Many thanks!
from rlottie.
@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.
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.
@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.
@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.
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.
@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.
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.
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.
have added one example rlottie which renders the json file and outputs to GIF file.
from rlottie.
Related Issues (20)
- On Windows rlottie hangs (forever) on application shutdown when compiled with MinGW HOT 1
- Can't build rlottie with static linking using MinGW
- librlottie-image-loader.so lacks SONAME HOT 2
- JSON license could be removed HOT 1
- Result of fuzzing tests HOT 1
- Use after free in surface cache code
- Add API for clearing the cache HOT 2
- totalFrame() is one frame less
- ClamAV reports viruses found from rlottie's source HOT 1
- Suggest fuzzer for rlottie::Animation::loadFromFile()
- How to get all keypaths?
- How to adapt to high-definition screen
- Cannot build for wasm, trying fix security issue HOT 1
- What is missing in the text_support branch to finish the feature?
- Performance regression with Blendmode introduction HOT 5
- How to port it to 2d gpu
- Simple moving circle not playing properly HOT 1
- Is the underlying graphics rendering using opengl? HOT 1
- Compile error while porting on bare metal
- Error porting rlottie to arm platform
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlottie.