- Joined
- Dec 13, 2013
- Messages
- 63
- Reaction score
- 10
Hello Everyone!
What is lottie?
A Lottie is a JSON-based animation file format that enables designers to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation.
Lottie parses Adobe After Effects animations exported as JSON files through an open-source After Effects extension called Bodymovin and renders.
I will not publish the library source with my edits to render it, but if you are interested in seeing the lottie code, you can find it in this repository:
I implemented all the backend directly in the library, including the system to advance frame in animations, so it can be reused outside of widgets easily if you have some knowledge and want to do something custom / render it in-game too, in dynamic positions.
Support is not 100% with all lottie features, you can find the table of what is supported in the repository above.
It is worth noting here that the interaction with lottie has not been implemented, so you will not be able to trigger actions in lottie, but there is nothing to stop you from implementing it either, as it is not hard.
If you have difficulties, you can find the edited code in my repo forked from jetman:
Remember, you need to edit the GUNZ project properties and add the include and lib
How i can do it?
Right click in Gunz(not is the solution)in project list -> Properties -> C/C++ -> Additional Include Directories and add: ../sdk/lottie/include;
Then Linker tab -> Input -> Additional Dependencies and add: ../sdk/lottie/lib/rlottie.lib;
View attachment lottie support for gunz.zip
Password: Finn
You can find free ready to use animations here:
Example is included, but you can use like this:
Demo:
Possible bugs: Changing resolution may compromise quality.
You can solve it by rebuilding an instance animation.reset(rlottie::Animation::loadFromData(buffer, path, path)); After resize the widget
Or wait until I make a change to recreate a texture internally and expose a function for the widget.
What is lottie?
A Lottie is a JSON-based animation file format that enables designers to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation.
Lottie parses Adobe After Effects animations exported as JSON files through an open-source After Effects extension called Bodymovin and renders.
I will not publish the library source with my edits to render it, but if you are interested in seeing the lottie code, you can find it in this repository:
You must be registered to see links
I implemented all the backend directly in the library, including the system to advance frame in animations, so it can be reused outside of widgets easily if you have some knowledge and want to do something custom / render it in-game too, in dynamic positions.
Support is not 100% with all lottie features, you can find the table of what is supported in the repository above.
It is worth noting here that the interaction with lottie has not been implemented, so you will not be able to trigger actions in lottie, but there is nothing to stop you from implementing it either, as it is not hard.
If you have difficulties, you can find the edited code in my repo forked from jetman:
You must be registered to see links
Remember, you need to edit the GUNZ project properties and add the include and lib
How i can do it?
Right click in Gunz(not is the solution)in project list -> Properties -> C/C++ -> Additional Include Directories and add: ../sdk/lottie/include;
Then Linker tab -> Input -> Additional Dependencies and add: ../sdk/lottie/lib/rlottie.lib;
View attachment lottie support for gunz.zip
Password: Finn
You can find free ready to use animations here:
You must be registered to see links
Example is included, but you can use like this:
Code:
<LOTTIE item="TEST" parent="LoginFrame">
<BOUNDS>
<X>0</X>
<Y>25</Y>
<W>200</W>
<H>180</H>
</BOUNDS>
<FILE>test/loading.json</FILE>
</LOTTIE>
Demo:
Possible bugs: Changing resolution may compromise quality.
You can solve it by rebuilding an instance animation.reset(rlottie::Animation::loadFromData(buffer, path, path)); After resize the widget
Or wait until I make a change to recreate a texture internally and expose a function for the widget.
Attachments
You must be registered for see attachments list