User Tools

Site Tools


Using the Inkscape SVG to ORX Converter

In order to create SVG paths in Inkscape and use these as mesh VertexLists in orx, follow these steps…

1. Open Inkscape

2. Select File > Import to bring in a graphic that you want to create path(s) for.

3. Your graphic will appear on the design surface in Inkscape.

4. Right click your graphic and select Image Properties. You need to get the graphic into the top left hand corner. Enter 0 for both X and Y. The image will snap to the top left.

5. Then select the Object > Object Properties menu. We need to lock the object down to the surface.

6. Click the Lock checkbox. This way, the graphic cannot be accidentally clicked or moved while you work on your paths.

7. Zoom into your graphic to make it easy to work with.

8. Select the freehand lines tool.

9. Draw a triangle. It must be drawn in a clockwise direction. So in this example, you could start on the left hand point, go up and right for the second point, then straight down for the third. This is drawing in clockwise which is required by Box2D in orx. I suggest you select the Fill and Stroke properties to have a nice bright stroke, and semi transparent fill to make it easy to visualise your triangles, squares or polygons.

10. Draw more path shapes to build up a convex ramp out of several path shapes.

11. And our final design is done. In this graphic, it will be using eight path shapes to make up the curve. Save the file somewhere as an Inkscape SVG.

12. Download the converter from: and load it up.

13. Browse to the SVG file and enter a Base Object Name. This name is used when outputting your orx config lines.

14. Click preview to see what your output will look like or Convert to make a real conversion. If the Clipboard radio button is selected, the converted information is copied to the clipboard, otherwise you;ll be prompted to save your output file as an .INI.

tutorials/community/sausage/inkscape_to_orx.txt · Last modified: 2017/05/30 05:50 (8 weeks ago) (external edit)