PDA

View Full Version : Forest Experiment



Hai-Etlik
08-14-2009, 10:43 PM
I'm rather fond of these two tutorials: http://www.cartographersguild.com/showthread.php?t=5478 http://www.cartographersguild.com/showthread.php?t=5664 and of using Inkscape to make up for my own lack of ability and patience.

Putting that all together has gotten me this:
15927

It's not a proper tutorial (I may write one up later), but the basic process is to draw the rough tree shape, copy it a few times, jitter the nodes to get some major variations, copy , add nodes, jitter again but less so to get a large number of tree forms. Copy, offset, intersect to get the lit portion. Use the tweak shift tool to adjust the boundary between light and dark. Create a bar, add nodes, tile in a column, intersect with the lit portion, use the tweak contract tool to have it only cover the mid tone area. Create a basic trunk, copy, tweak shift to add some variety, repeat the shading trick for the trunks. Make each tree a group, distribute them randomly, do the shading trick one more time for the ground.

Obviously, use of tile clones can cover large areas easily. This method easily provides large numbers of source forms for the clones.

It's not entirely automatic like Gilgamec's work (http://www.cartographersguild.com/showthread.php?t=6639) but I can put together a lot of trees fairly quickly.

Coyotemax
08-14-2009, 10:45 PM
Those are nice looking trees. I just may have to get me a copy of inkscape..

RobA
08-14-2009, 10:52 PM
You also might want to use my restack extension http://www.cartographersguild.com/showthread.php?t=1257 (that is supposed to make it into the inkscape standard distribution at some point).

-Rob A>

Hai-Etlik
08-14-2009, 10:55 PM
You also might want to use my restack extension http://www.cartographersguild.com/showthread.php?t=1257 (that is supposed to make it into the inkscape standard distribution at some point).

-Rob A>

I have it, though it seems to have a bug. The restacked objects all end up in the document root. It's not too hard to move them back to the right group or layer but it is a minor annoyance.

RobA
08-14-2009, 11:12 PM
...funny... I'll have to look at it. Was it the one I posted, or one distributed with Inkscape? I think the core version has been modified, which is why I haven't spent much time looking after it :(

-Rob A>

Hai-Etlik
08-14-2009, 11:45 PM
...funny... I'll have to look at it. Was it the one I posted, or one distributed with Inkscape? I think the core version has been modified, which is why I haven't spent much time looking after it :(

-Rob A>

It didn't come with Inkscape (I found it shortly before finding the guild). Though I have switched to the .47 prerelease so I should probably delete the downloaded one.

Hai-Etlik
08-15-2009, 04:19 AM
Here's a large area covered using tile clones, restack, and a clone randomizer script (written in Ruby)

15930

Gandwarf
08-15-2009, 06:03 AM
Looks very nice.

gilgamec
08-15-2009, 05:56 PM
I'm rather fond of these two tutorials: http://www.cartographersguild.com/showthread.php?t=5478 http://www.cartographersguild.com/showthread.php?t=5664 and of using Inkscape to make up for my own lack of ability and patience.

...

It's not entirely automatic like Gilgamec's work (http://www.cartographersguild.com/showthread.php?t=6639) but I can put together a lot of trees fairly quickly.
This is very nice! Your shading trick, in particular, looks great. Consider yourself repped.

CartoGeo
08-22-2009, 03:40 PM
Here's a large area covered using tile clones, restack, and a clone randomizer script (written in Ruby)

15930

Does Photoshop CS4 or Illustrator have some sort of scripting ability like Inkscape must with Ruby. I am not familair with Inkscape but I do not what Ruby is... so is there an equivelent for CS4 programs?

ravells
08-22-2009, 04:26 PM
I don't think so, CartoGeo, just actions. I don't use Inkscape but I'd love to be able to get the software I use to make something like this. Great work Hai....I may just have to download Inscape just for this script. The fear of yet another learning curve of yet another bit of software scares me though :)

Redrobes
08-22-2009, 06:34 PM
Gimp has a python interpreter and I use perl-magick which has a lot of commands all scriptable too.

Hai-Etlik
08-25-2009, 08:48 PM
The Ruby script is external to Inkscape and doesn't use the Inkscape plugin interface. You have to save the file, edit the script to indicate the ids of the objects to manipulate, and then run the script on the file.

Of course, this isn't all that different from what they Python plugins that come with Inkscape do, they just follow a particular interface that lets Inkscape figure out their command line parameters so it can make a nice dialogue box. Inkscape then serializes the document to SVG just as it would when saving, runs it through the script, and loads the output. It's not particularly efficient, but it's easy and you can use the plugins without Inkscape.

I could probably make my script work as an Inkscape plugin with a bit of work.

RobA
08-27-2009, 12:41 PM
I could probably make my script work as an Inkscape plugin with a bit of work.

I did it with python without knowing anything about python. It wasn't too bad as a good example is provided. Basically, the XML is exposed as a DOM tree, and you can work with it at that level.

...I think...

-Rob A>

Hai-Etlik
09-19-2009, 09:18 PM
Now working on a repeating pattern. Here's what I have so far.