Page 1 of 1

Import world from vector

Posted: Sat Sep 07, 2013 5:23 pm
by c0ffee
Hello,
being able to load b2world from vector could be quite handy.

Initial world creation step could be moved to vector editors like photoshop, illustrator, inkscape.
Besides being useful on its own, it also partially covers some other features like edge detection(if I understood it correctly).

Can't estimate importance of this feature since don't know how complex Box2D world for a game can be.

As for the implementation there are few ways. One would be delving into ready vector format and exporting its graphics straight to Rube editor's body/fixtures, this would create a big library of ready objects. Another one is using vector editors' scripting capabilities to create export script for rube/json format, with tricks and gimmicks.

What would be the best way to implement such feature, what are chances of it being added to Rube?

Re: Import world from vector

Posted: Mon Sep 09, 2013 2:55 pm
by iforce2d
Qt provides a nice svg loader, which makes the chances of something like this being added to RUBE pretty good :)