SVG and Darkstar FX
I have been playing a little with Kirill's SVG to Java transcoder and then manually converting the Java code into Javascript based Darkstar FX renderer's. Very tedious, but good fun nevertheless. I had less success with the SVG to JavaFX converter, but that might just be a case of me using old software.
There are at least four SVG importer pipelines available for Java, so there seems to be some interest in this.
- Batik
- Kirill Grouchnikov - SVG to Java transcoder (based on Batik)
- Chris Oliver - SVG to JavaFX transcoder
- Jasper Potts - SVGShapeExtractor



Comments
Couldn't you use the SvgTranscoder class and change it to output the Darkstar FX directly, instead of going through Java2D layer?
Posted by: Kirill Grouchnikov | October 11, 2007 02:16 AM
Your code looks easy enough to understand, but to be honest.. I could invert all the colors, transform everything into elephants and still not see that I had done something wrong. Batik + java.awt.geom is just brutal :) I'm just a bitmap monkey pointing a stick into this.
I guess I was hoping for Sun to do the job for me. Instead they created an SVG to JavaFX transcoder that I can't use in my Java 2D pipeline. What's logical about that ?
It's doable, but it might be too advanced for my current 2D engine. I still have no scene graph or resource loader, which is standard in Flash.
Posted by: Jan Erik Paulsen | October 11, 2007 03:01 PM