Would you want Rive support in Qt?
-
wrote 26 days ago last edited by
So Rive is a fairly new tool that let's you make interactive animations, and I haven't seen it being talked about much in the Qt circles. It has a state machine which allows to create dynamic animation interactions, and it's all contained within a single .riv file.
Rive recently released their data binding feature, and if it was possible to combine it with QML, the possibilities would be endless, so maybe if we'd make enough noise, maybe the Qt or the Rive team could create some sort of an official implementation for Qt, I've already made a suggestion on the Rive forums here, so maybe you could like it if you like the idea.
There's already an unofficial plugin found here, but it has a lot of inconsistencies and you don't know how the final result will look like from the Rive editor and when rendered with the plugin.
Here's an example I made with the plugin as an example of what's possible:
-
Hi,
Rather that starting from scratch it might be simpler to check with the basysKom folks what is going wrong with their plug-in and fix things there.
-
Hi,
Rather that starting from scratch it might be simpler to check with the basysKom folks what is going wrong with their plug-in and fix things there.
wrote 26 days ago last edited by@SGaist I think the main problem is with the different rendering backends, Qt Quick chooses the rendering backend on startup depending on the system's hardware(software rendering, OpenGL, Direct3D, etc.). So the final result will be different on different systems. I've posted the issue where you can see how it looks with different rendering backends.
And even though in that example the software rendering seems perfect, since then I've done more tests with different
.riv
files and using software rendering is not always the solution. Sometimes the animation is still laggy, sometimes there's missing layers, some layer properties might not be present like stroke or effects. The plugin is maintained by a small team, and doesn't get updates frequently. -
wrote 24 days ago last edited by
I don't know Rive and I also don't use QML (but QWidget instead). However, QML does have some animations (https://doc.qt.io/qt-6/qtquick-statesanimations-animations.html). Why would we need Rive instead? Is there anything that can't be done with QML animations?
-
I don't know Rive and I also don't use QML (but QWidget instead). However, QML does have some animations (https://doc.qt.io/qt-6/qtquick-statesanimations-animations.html). Why would we need Rive instead? Is there anything that can't be done with QML animations?
wrote 23 days ago last edited by@SimonSchroeder Well, I mean you can use a QPixmap to code each pixel individually to display an image, but why do that when you can just use .png :D
5/5