Skip to main content

SG to SVG

3 replies [Last post]
billg
Offline
Joined: 2008-02-03

Hello Everyone,

I have been using Scene Graph for about three weeks now and have been very impressed with its capabilities. I am going to be starting a project to write a scene to a svg file and I wanted to see if anyone had any suggested readings, examples, or other similar projects that I should take a look at? Any feedback is appreciated.

Thanks,
Bill

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pforhan
Offline
Joined: 2003-08-07

I belive Batik's SVGGenerator can do this, if you can figure out how to plug the custom SVGGraphics2D with Scenario.

http://xmlgraphics.apache.org/batik/using/svg-generator.html

This may be as simple as calling paint(new SVGGraphics2d(..)) on the root node...

Pat.

billg
Offline
Joined: 2008-02-03

Hi Pat and Michael,

Thank you both very much for your feedback. Both of these will be a great start.

Thanks,
Bill

mbien
Offline
Joined: 2007-04-29

Hello Bill,

you may take a look at the sources of the SVG 2 JavaFX script converter demo on the NetBeans JavaFX plugin page:
http://javafx.netbeans.org/
(btw: very cool demo)

regards,

michael