Rendering vector art/curves to bitmaps?

Hi,
Probably been asked before but I wondered if anyone knew any good plugins that you can render vector graphics (filled ellipses, curves, lines, rectangles with gradients, text, etc. preferably anti-aliased) to bitmaps for use with Unity3D. It must be cross platform. For example, one use of this might be to render a pie chart from some data.

So far I have been using the System.graphics.drawing.dll library but this will only work with native Windows programs (as it uses gdiplus.dll from the Windows OS). A plugin I looked at was AltSketch but their Unity plugin also only works with Windows so far. I also looked at using Windows.graphics.dll for Metro but this is not supported by mono.

The only other method I can think of without a plugin is to use preprocessor compilation to call Android drawing functions for Android and IOS drawing functions for IOS. But this still leaves out the Web Player and Windows Phone. I’d rather a pure c# implementation of a graphics library - e.g. like System.graphics.drawing but written in C# only and not relying on any external libraries. (But maybe this would render too slowly?) Does such a thing exist?

Thanks.

u saw this? Drawing | Mono
it still rely on external library but only webplayer might not work with this (if this will work with unity’s mono impl). there is alternative called Mono.Cairo. Hope that help a bit you

Yes, but both these only work with Windows. System.drawing uses gdiplus.dll which is windows only and Cairo currently only supports windows. So these are no good. Thanks anyway!

but in this site they said this should work with UNIX OS because they have own library similar to GDI+ called libgdiplus (but compiled to .so). No sure about Mono.Cairo limitation so u might be right

Maybe it will work on Linux then but I tried it for Android and it didn’t work. Nor for IOS, Windows Phone or Webplayer.

You’ve ruled out AltSketch. Have you also ruled out rage spline?

I am working on a pure C# vector graphics library, mostly for my own use and game, but potentially for the asset store, although it wont be read for some time. I know a few other devs are doing the same (but that hardly helps you). I’ll be interested to know what solution you end up using.

Rage Spline looks interesting but maybe not quite what I’m after since I just need a graphics library for scripting. Interesting though. Looks like a few people are creating pure c# vector graphics libraries! Interesting to see what comes out on the asset store! Maybe I’ll even make my own! :wink: