Skip to content

Unable to Freely Draw Artboard to RivePanel Texture Instead of Using RiveWidget #538

@BlockRen

Description

@BlockRen

Hello Rive team,

First of all, thank you for the excellent work on the latest version "rive 0.14.0-dev.8". The new rive_panel with its performance optimizations is particularly impressive and much appreciated.

I’m currently using the Flame engine in Flutter for game development. When using Factory.flutter as the rendering method, I can directly draw Rive content onto the Flutter canvas with the following code:

void render(Canvas canvas) {
  super.render(canvas);
  final renderer = rive.Renderer.make(canvas);
  artboard?.draw(renderer);
  renderer.dispose();
}

However, this approach has a limitation: it does not support "Vector Feathering", which is essential for achieving glow effects in my project. While switching to Factory.rive would resolve this issue and likely offer better performance, I’ve encountered another challenge.

The rive_panel and rive_widget are implemented as widgets, which makes it difficult to draw large amounts of content freely with custom transformations (e.g., position, scale, rotation) as easily as with direct canvas rendering. I would very much like to use rive_panel for its performance benefits, but I’m unsure how to directly and freely draw an Artboard onto the rive_panel's texture, rather than using rive_widget.

Is there a recommended way to achieve this? Any guidance or example would be greatly appreciated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions