viridia / quill_v1

Reactive UI framework for Bevy game engine
MIT License
59 stars 7 forks source link

Custom drawable element #24

Closed darmie closed 4 months ago

darmie commented 4 months ago

Well done on this project, I am loving it so far.

I am building an editor, and I want to render a flow graph within a quill UI element. I could create the nodes using quill, but the connectors between the nodes would need to be drawn as a bezier curve. Something similar to the image below

image

I learned that I could use 2D gizmos for immediate mode drawing, but I am new to Bevy and Quill and I don't know how to create a "canvas" for the bevy gizmos that is clipped to a Quill UI view.

Please note that I already have a view inset for the 3D world and camera.

Here's what my UI looks like

Screenshot 2024-05-11 at 20 32 10
viridia commented 4 months ago

This project is no longer active, and has been superseded by bevy_reactor. The latter includes a widget that is able to draw a spline curve using SDFs in a custom shader. Note that neither Quill nor bevy_reactor have an official release however.

darmie commented 4 months ago

Oh wow. I'll take a look at bevy_reactor then.