Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: Creating SVG Paths in GIMP and Importing Them in Art of Illusion  (Read 6398 times)

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Although most people that use GIMP are aware that you can create and edit paths within GIMP, many don't know that the paths can also be exported in SVG format for use in other programs, and in this case, AoI.  NOTE: The dome automatically resizes images over a certain size.  Firefox users, right-click on the image and select View Image to see full-size version.

In this tutorial, I'll briefly describe the steps in GIMP to completing that process.  So, if you don't have GIMP, you can download it here: GIMP Downloads Page.  Additionally, and this should be obvious, you'll need AOI and the Import SVG Paths script, which is a separate download from the main AoI program.  I'll be including some screenshots for downloading the Import SVG Paths script; however, Marcc has a great video tutorial on downloading scripts and plugins, which is very useful and may answer any questions I don't address.  You can see that thread here:

How to Find and Install Extensions for AOI

Essentially, there are 2 ways to create paths in GIMP: the Paths Tool (how convenient!) and converting a selection to a path.  In this tutorial, I will only discuss converting a selection to a path.  Describing how to use the paths tool is much more involved and that I've already covered that topic here: Creating and Using Paths Part I

For this tutorial, I will be using the DevilInside dingbat font as a template for creating the 2 types of paths: simple and complex. 

Let's Begin.

Step 1 - Install Import SVG Paths script

Open up AoI and go to the Tools Menu > Scripts and Plugins Manager



In the Window that opens, click on the Install tab as shown below and the plugin manager will automatically connect to the repository and provide you with a list of the most up-to-date scripts and plugins.  When the plugin manager completes its connection, click on the Scripts Folder and the Tools Folder to expand them.  As you'll see in the screenshot below, AoI has determined that I have 2 tool scripts available for installation. 



Highlight the Import SVG Paths as shown and then click on the Install this file button to install the script. Then select Close and restart AoI to make the script available.

Step 2 - Create Simple Paths in GIMP

Open GIMP and create a New Document (Ctrl+N) or Open an existing image from which you would like to create your selection/path (Ctrl+O)

Since, I will be using a font for this demonstration, I grab the text tool and a cool dingbat font, DevilInside.



GIMP adds text to its own layer and leaves the area surrounding the text as transparent (Grey checkerboard).  Because the area surrounding the text is transparent, creation of the path is a simple task.

Select your text layer and right-click with the mouse button and in the menu that appears, choose Alpha to Selection.  This selects everything not transparent.



You could also use the Magic Wand tool, but this is faster and we'll explore the Magic Wand in the next example.

Next, convert this selection to a path by going to Select Menu > To Path or click on the Paths Dialog tab and click the Selection to Path button        at the bottom of the window. A Path of the selection will now be available.

Step 3 - Convert Simple Paths to SVG Paths

Next, in the paths dialog, right click on the new path and choose Export Path...



The following window will appear and you can specify the name and location where you want to save the path.



Step 4 - Create Complex Paths in GIMP

Before showing you how to import the paths we've made in AoI, I'll describe the process for creating complex paths (or paths with multiple components) from selections.  For us to use them in AoI, we need to do something a little different from what was described in Steps 2 & 3 above.

Again, I'll use a symbol from the DevilInside dingbat font.



You'll note that this symbol has numerous parts to it and like I described above, we could easily create a selection around the whole thing using the Alpha to Selection step and then convert the selection to a single path.  Although this would work in GIMP, once we get into the world of AoI, it would not work.  Here's how we'll fix that!

Using the Magic Wand tool... , which is also known as the fuzzy select tool, we can click on the individual sections of the font to capture a selection, then convert that selection to a single path.  You may have to experiment with the Magic Wand options to ensure it only selects what you want.  To get to the Magic Wand Options, just double-click the Magic Wand Button and the Options Dialog will open.  Here's the settings I used:



Additionally, feel free to experiment with any other of GIMP's selection tools:

As I said, once you've got an individual segment selected, convert the selection to a path by going to Select Menu > To Path or click on the Paths Dialog tab and click the Selection to Path button at the bottom of the window.  A Path of the selection will now be available.

Click another desired area so that there's only one segment selected and convert that segment to a path.  Continue with these steps until you are finished and have the number of segments desired.

Step 5 - Convert Complex Paths to a Single SVG Path

When you are ready to convert all of these paths to a single usable SVG path for import into AoI, open the paths tab
, and you'll see all of your individual paths, like so:



Highlight any one of the paths, right-click and choose Export Path.  When the dialog appears, choose this option:



Specify a name and location where you want to save it.

Step 6 - Import Paths in AoI

Open AoI, and go to the Tools Menu > Scripts > Import SVG Paths



Choose the parameters as desired:



Then, tell AoI where to find the desired SVG path.  Note: You can only bring in one path at a time.  However, a complex path is considered a single path...at least for the time being! ;)

AoI will be bring in the single, complex path as individual curves.  You can then join them together if you want by going to the Tools Menu > Scripts > Join Objects script.  Or you can leave them as is and modify them individually as you wish.

Here are screenshots of the complex and simple paths, that have been extruded using the Tools Menu > Extrude... function.



One final note: Some complex paths may require additional processing once brought into AoI in order for them to appear  properly.  A simple example would be any letter of the alphabet that has a 'hole' in it.  The letters 'e', 'd', and 'o' (among several others) have an outside path and an inside path.  Exporting the paths from GIMP uses the same methods described in Steps 4 and 5, but once inside AoI, you may need to use the Boolean tool to create the 'hole'.

Added Usage Tips (April 6, 2007)

Figured out how to get some really cool applications with this method.  Hope you'll be a-MAZE-d! ;)

Create a Maze in GIMP

Create a New Image (preferably square, but that's your call)
Go to Filters Menu > Render > Pattern > Maze....



and experiment with the settings.  This is my outcome:



Now, grab your magic wand tool and click on the white area (or the black area!) (Since this is only a 2 color image, you may even want to try out the Select Regions by Color tool.  Hey, it's always cool to learn a new tool!)

With your selection made, convert/export the path and import the path into AoI using the steps described above.

Here's an extruded version of my maze....



Let's take it one step further and bend our pixels a bit!

Create a new maze or deselect the one you used above...Select Menu > None (Ctrl+Shift+A)

Go to Filters Menu > Distorts > Polar Coords...



Experiment with the settings....I believe I just accepted the defaults.



Add a Gaussian Blur to your image to soften the edges....



I just accepted the defaults...experiment as desired.

Double-click your magic wand tool and adjust your Threshold setting to taste....I used 64.  This will allow us to select only portions of the white and the resulting path will be much smoother.



Click on the white portion with the magic wand tool to create a selection, convert/export the path, and import to AoI as described above.

Here's an extruded version....



Pretty cool, eh!

You could also use the paint brush to create your shapes and convert the shapes to paths.  This would be a really quick way to create floor plans.  The possibilities are endless!

Well, I hope this tutorial has been beneficial.  As always, questions and comments are welcome.  Please let me know if you need additional information or clarification.

Cheers!

fencepost
« Last Edit: May 16, 2010, 02:29:28 PM by Hi-T3k~HillBilly »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline paladin169

  • Member
  • **
  • Posts: 1,601
  • Karma: 0
  • Cookies!
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #1 on: April 05, 2007, 01:17:55 PM »
Wow...Simpily amazing, Will be trying this as soon as I get home..
+karma
Formerly sponge!


Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #2 on: April 06, 2007, 07:50:31 AM »
Yeah, that's a really neat feature!  Lots of possibilities there.  Thanks for the comments and +Karma!
Added some new tips to the bottom of the tutorial.  I explain how to create 2 types of mazes with GIMP (square and round).  Very cool, if I do say so myself!

Art
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline Hi-T3k~HillBilly

  • Administrator
  • *****
  • Posts: 1,526
  • Karma: 0
    • hitech-hillbilly.deviantart.com
    • Facebook:jacob.c.dillon
    • hitek_hillbilly:imageshack
    • droz928: PhotoBucket
    • jcdillon28:twitter
    • HillBillyGFX
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #3 on: April 06, 2007, 10:58:14 AM »
Excellent tutorial Fence.

I would like to add into this that the SVG paths format can also be created in Inkscape.
You can easly create the path in Gimp or Inkscape. If you want to experment you can make your path in Inkscape and import it into gimp or vice versa. I recomend creating it in Gimp and than opening it in Inkscape to clean it up and refine it. Any way just something to chew on.

i may write a tutorial about it if i have the time

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #4 on: April 06, 2007, 11:11:38 AM »
Thanks for the input, droz!  I was aware of the Inkscape solution, but since I've done so little in Inkscape I figured it was best to stick with what I know.  When you get your tutorial posted, I'll make sure add a link to it in this tutorial.
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Offline gigatwo

  • Member
  • **
  • Posts: 354
  • Karma: 0
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #5 on: May 02, 2007, 06:26:24 AM »
Although most people that use GIMP are aware that you can create and edit paths within GIMP, many don't know that the paths can also be exported in SVG format for use in other programs, and in this case, AoI. 

I do, except for the AOI part. Awesome tutorial, I wonder if you can do this in blender.


+Karma for you
« Last Edit: May 02, 2007, 06:27:12 AM by gigatwo »

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #6 on: May 02, 2007, 06:29:34 AM »
I do, except for the AOI part. Awesome tutorial, I wonder if you can do this in blender.


+Karma for you

Thanks for the feedback and +Karma, gig!  I do believe blender has a way to bring them in.  I'm not sure if it's through a script/plugin or a standard feature, but I think I recall seeing something on the web about it.
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Sweet_kitty22

  • Guest
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #7 on: May 02, 2007, 06:37:57 AM »
wow!!!

I MUST try this!
Now!
+KARMAAA :D

Offline ClayOgre

  • Member
  • **
  • Posts: 318
  • Karma: 0
    • ClayOgre's OSGrafix.info
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #8 on: May 02, 2007, 09:11:30 AM »
You can also import .svg paths into Blender, tho I have never done it with Gimp paths, I have done it with Inkscape ones.   One of the really interesting things is to scan artwork, load the bitmap into Inkscape, and then run the "trace bitmap" feature on it.  This gives you an .svg version of the bitmap.  You then go in and clean up any extraneous control nodes, maybe reshape a few curves to neaten things up, then you can import the result into the 3D app of your choice.
« Last Edit: May 02, 2007, 09:12:41 AM by ClayOgre »

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: Creating SVG Paths in GIMP and Importing Them in Art of Illusion
« Reply #9 on: May 02, 2007, 09:14:13 AM »
I don't know if you saw gigatwo's post above, but is this a standard thing in Blender or is a plugin/script required?
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Tags:
 

anything