Results 1 to 3 of 3

Thread: SVG Rendering with Anti-Grain Geometry Lite

                  
   
  1. #1
    Won Hung Lo wraggster's Avatar
    Join Date
    Apr 2003
    Location
    Nottingham, England
    Age
    52
    Posts
    139,892
    Blog Entries
    3209
    Rep Power
    50

    NDS SVG Rendering with Anti-Grain Geometry Lite

    News/release from qw3rky

    Anti-Grain Geometry is an awesome library for software rendering of 2D vector graphics (see here). As soon as I saw it, I wanted to get it running on the DS. The full library is a bit large and uses lots of floating point, which is kind of a problem. But there is a cut-down version called AGG Lite which fits perfectly well on the DS. I downloaded the code, did some massive reorganization (the AGG author's code was far too messy for my taste), cut out any remaining floating point usage, and added a color format class specifically for the DS, and the result is pretty nice. You can check out my open-source clean-up effort at http://brian.grogan.jr.googlepages.com/agg_lite_ds.zip. Compare with the original.

    After I whipped AGG Lite into shape, I thought to myself, "wouldn't this go so nicely with that small, fast XML library (Mini-XML) I found a few months ago?" (download pre-compiled for DS) So I put the two together to come up with a totally alpha quality SVG renderer.

    It only handles a minuscule subset of the SVG specification (the rect element), so ... now you can draw rectangles ... with SVG!? It's not much yet, but I'm a follower of the agile development principle, "get something simple working fast." I'll put some more work into this to support other SVG elements later on, but for now, you can render trivial SVG on the DS.

    This uses libfat to load the SVG files, so of course remember to dldi patch the nds file before using. And if you want to build from source you'll need the Mini-XML and AGG Lite libraries posted in the project links above.

    download:
    http://brian.grogan.jr.googlepages.com/agg_svg.zip

  2. #2
    DCEmu Rookie Akoi Meexx's Avatar
    Join Date
    Oct 2007
    Location
    Michigan
    Age
    39
    Posts
    103
    Rep Power
    0

    Default

    I officially think this guy rocks.

    I do most of my design work in Inkscape, so I can't wait to see more effort put into this. :thumbup:

  3. #3
    DCEmu Newbie
    Join Date
    Mar 2006
    Posts
    50
    Rep Power
    0

    Default

    sweet. I love little tools like this. It'll be nice to dabble in polys on the go

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •