for some reason, I want to do a "realtime" SVG renderer. For now, I manage to :
- load the file (even the arcs, what a noughty thing
- construct polygons for filling and stroking
- a basic polygon triangulation
It work pretty well (and quicker than expected for an none optimized test). But my polygon are not "simple" ones and some rendering are wrong. I use the "Ears" algorithm right now (and this problem is quite difficult).There's a quick&dirty test
. It compares my triangulation with the Java2D shape drawing.
Any idea about the problem.
ps1 : I just gone an idea while writing this post
ps2 : I hear about an GLU Tesselator in LWJGL 2.2