How to Draw vector graphic (such as nanovg ) in urho3d

I am integrating nanovg with urho3d, but it seemed quite hard for me to compile it successfully. I wonder is there any built in drawing api in urho3d? for gradient, rectangular, polygon and etc?

@Mike

I have tried this example 2 days ago, it produced erros below when rendering
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill
Error 00000502 after convex fill

I am not sure whether it is still workable due to not maintaining anymore

I confirm the errors. Last time I tried it, only the nanosvg (rendering on texture) part seems to be working…
Ifaik there’s no drawing api except debug one. UrhoSharp integrated skia library for that.

1 Like

I am sorry that I am only implementing by C/C++ only. I’ve tried many engine found that Urho3D is more suitable for me to go for 2D and 3D implementing in future. But I am wondering has anyone integrated Skia C Api with urho3d.

I found the good Source https://github.com/rokups/Urho3D-nuklear-ui,

which integrate urho3d with nuclear :slight_smile:

I know that. But that’s an UI not a painter, afaik…
You could use Blender GP or Curves, then export as mesh, or you could integrate st like Spline Library or the more scientifical Splinter if you need st procedural…