svg in java

Published October 07, 2005
Advertisement
So I thought it would be cool to use SVG in my java games. The standard library to do this is Batik. The library is pretty sweet, but damn is it huge- 4mb of class files. 1mb of this is from the included XML reader Xerces. Damned if I know how an XML reader can take up 1mb.

It works well, but you can tell Batik is meant for the high-end user. Doing something that seems like it would be simple (like, hey, how about you just draw this SVG file where I tell you to?) is actually a lot of work. And it's made more difficult by the huge API to swim through.

This graph pretty much sums it up. According to Batik, I am a "serious hacker"

Anyway, I think I have it under control- I already have a class that loads a document and renders it to an offscreen image, suitable for drawing.

Also, I looked into SVGSalamander, which sounded promising because it's suppossed to be optimized for games. But I couldn't even get it to work, even when I tried using their example code. Soooooo, yeah.
Previous Entry java scripting engine
Next Entry java svg code
0 likes 2 comments

Comments

H_o_p_s
I've always thought that SVG was cool… the only reason I've never tried to incorporate it into any of my programs was because I can't make any decent SVG images [smile]
October 07, 2005 04:14 PM
pinacolada
Yeah, there is that problem. I'm not sure yet where I'm going to get my art either =)
October 07, 2005 05:24 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

check

1137 views

I have a logo!

1119 views

wooo

1070 views

scripting

1181 views

tool overload

1273 views

java svg code

1152 views

svg in java

1149 views
Advertisement