Rive extension Android and Web support

Rive extension update 3.0.0

The Rive extension has been updated to version 3.0.0. The major release include switching out the Defold Rive render backend to the native Rive renderer. This means that we no longer provide our own rendering layer, and instead rely on the Rive libraries to handle the rendering for us. This should improve stability over Rive versions and lessen the maintenance burden on our side.

Extension URL: https://github.com/defold/extension-rive

Overview

  • Android support for Arm64.
  • Web support for WebGL2 (WebGPU pending).
  • Windows and Linux is using the OpenGL rendering backend. Vulkan support is currently not available.

Note: WebGL1 and ARMv7 is not supported, and will likely never be due to missing OpenGL features.

Installation

The updated extension is compatible with Defold 1.9.5+, which is currently in Alpha. To test the new functionality:

  • download the latest Alpha version of Defold from d.defold.com or wait until the new version has been promoted to stable in a few weeks.
  • Use the stage server (preferences → extensions → Build server: https://build-stage.defold.com)

Future

  • The editor is still using the old tessellation path due to technical reasons related to the graphical backend used in the editor. We will hopefully be able to move the editor over to the new renderer at some point.
  • Some functionality is currently not working correctly, but is still exposed via the editor:
    • Per-rive-scene blending doesn’t work, blending must be done in the rive files.
    • Textured meshes doesn’t work in the preview - the editor still uses the old flow where textures must be present in Atlas files for the preview to work. Due to how the new rive renderer is implemented, there is currently no way for Defold to match Atlases to rive files in the renderer - textured meshes will only use textures from the .riv container files themselves.
24 Likes

Thank you for all of your work!

3 Likes

Do you think there’s a chance Rive will add console support in the future? I don’t have a good sense how high they prioritize attracting game developers.

Anyone got stats for how many users are on ARMv7? The only number I could find was 19%, and it was from 2022 and (I think) stats gathered by Unity.

1 Like

They do want to be part of the gaming eco system, but their console support is lagging behind.
Please reach out to them and ask on their channels!

I did a search in their Discord and found this:

Nolram 09/11/2024 8:41 PM
Any updates on game console support for Rive?

Guido Rosso 09/12/2024 12:51 AM
We’re working on it. The most imminent is with our Unreal RHI [Render Hardware Interface] integration, which means that Rive on Unreal will support all consoles.

Rive x Unreal RHI technical preview was released late September for Windows DX12.

Crazy awesome work!

Just like with the other extensions it would be nice to have the example hosted as html5 somewhere to test it out.

3 Likes

Good idea! The example is kinda big however, we might want a smaller test for that purpose :thinking:

2 Likes