SVGImport.wiki
changeset 233 1f18b0e7a80f
parent 232 a0ce457b93f2
child 234 88f4f75b381c
equal deleted inserted replaced
232:a0ce457b93f2 233:1f18b0e7a80f
    14 
    14 
    15 Open an SVG. Ideally one of simple line art, without too much use of fill or filters.
    15 Open an SVG. Ideally one of simple line art, without too much use of fill or filters.
    16 
    16 
    17 1) Select all in the image and choose ungroup, then combine all paths in the drawing (select them, then choose Path->Combine). 
    17 1) Select all in the image and choose ungroup, then combine all paths in the drawing (select them, then choose Path->Combine). 
    18 Note. I had some difficulty doing that with some images even after repeated use of ungroup. I ended up just going into the SVG file and deleting all the groups.  This usually happens if there are filters in place. Removing all the <g> tags in the SVG is faster than cleaning up the filters in inkscape.
    18 Note. I had some difficulty doing that with some images even after repeated use of ungroup. I ended up just going into the SVG file and deleting all the groups.  This usually happens if there are filters in place. Removing all the <g> tags in the SVG is faster than cleaning up the filters in inkscape.
    19 Also, some paths might be worth eliminating altogether.  In order to get a better idea of what it'll look like, try: View->Display Mode->Outline
    19 Also, some paths might be worth eliminating altogether.  In order to get a better idea of what it'll look like, try: View->Display Mode->Outline.  To simulate occluding, you can try combining individual paths first, and using union to combine into larger groups. This takes a bit more work.
    20 
    20 
    21 2) Click on the path, and choose dimensions for W and H that would look good in the game (no more than 4096 for W and 2048 for H).  The Lock button may be helpful here
    21 2) Click on the path, and choose dimensions for W and H that would look good in the game (no more than 4096 for W and 2048 for H).  The Lock button may be helpful here
    22 
    22 
    23 3) Go to File->Document Properties and specify 4096 for W and 2048 for H.  You may want to then reposition the art to be more centred vertically or horizontally.
    23 3) Go to File->Document Properties and specify 4096 for W and 2048 for H.  You may want to then reposition the art to be more centred vertically or horizontally.
    24 
    24