google / forma

An efficient vector-graphics renderer
Apache License 2.0
2.62k stars 52 forks source link

Integration with Game Engine? #22

Open brycefisher opened 1 year ago

brycefisher commented 1 year ago

It seems like this crate is intended to do the rendering directly, but I'm curious about integrating it with a game engine like Bevy or Fyrox or even Godot. Do you have an example of integrating Forma with a game engine?

dragostis commented 1 year ago

I'd be excited to help integrate with Bevy as a first step. We can probably start by taking a look at how vello does it.

ionick commented 1 year ago

I took a look at the updated vello example. The integration involves vello rendering to a wgpu texture, which is then used as a material for a mesh. Is this the type of integration you had in mind?

dragostis commented 1 year ago

@ionick, that could be a good first demo. I think we want some form of integration that allows us to draw into whatever texture Bevy gives us, while also being able to integrate into whatever command encoder Bevy gives us.