1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>12.5. IFS Compose</title>
<link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
<link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
<link rel="start" href="index.html" title=" " />
<link rel="up" href="ch06s12.html" title="12. Rendering filters" />
<link rel="prev" href="ch06s12s04.html" title="12.4. Flame" />
<link rel="next" href="ch06s12s06.html" title="12.6. Diffraction Patterns" />
</head>
<body>
<div xmlns="" class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center" id="chaptername">12.5. IFS Compose</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="ch06s12s04.html">Prev</a> </td>
<th width="60%" align="center" id="sectionname">12.5. IFS Compose</th>
<td width="20%" align="right"> <a accesskey="n" href="ch06s12s06.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="plug-in-ifscompose"></a>12.5. IFS Compose</h3>
</div>
</div>
</div>
<a id="id3372411" class="indexterm"></a>
<div class="mediaobject">
<img src="../images/filters/filters-render-ifscompose.png" />
</div>
<div class="simplesect" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="id3372425"></a>Overview</h4>
</div>
</div>
</div>
<p>
This filter is found in
<span class="guimenuitem">Image>Filters/Render/Nature/IFS <span class="accel">C</span>ompose...</span>
</p>
<p>
This fractal-based plug-in is truly wonderful! With this
versatile instrument, you can create amazingly naturalistic
organic shapes, like leaves, flowers, branches, or even whole
trees. ("IFS" stands for "Iterated Function System".)
</p>
<p>
The key to using this plug-in lies in making very small and
precise movements in fractal space. The outcome is always hard
to predict, and you have to be extremely gentle when you change
the pattern. If you make a component triangle too big, or if you
move it too far (even ever so slightly), the preview screen will
black out, or more commonly, you'll get stuck with a big
shapeless particle cloud.
</p>
<p>
A word of advice: When you have found a pattern you want to work
with, make only small changes, and stick to variations of that
pattern. It's all too easy to lose a good thing. Contrary to
what you might believe, it's really much easier to create a leaf
or a tree with IFS Compose than to make a defined geometrical
pattern (where you actually know what you're doing, and end up
with the pattern you had in mind).
</p>
<p>
For a brief introduction to IFS's see Foley and van Dam, et
al,. <i class="citetitle">Computer Graphics, Principles and
Practice</i>, 2nd Ed., (Addison Wesley, 1990).
</p>
<p><b>The Main Interface. </b>
The plug-in interface consists of the compose area to the left, a
preview screen to the right, and some tabs and option buttons at
the bottom of the dialog. The Default setting (in the preview
window) is three equilateral triangles. (This gives rise to a
fractal pattern called the <span class="emphasis"><em>Sierpinski
Triangle</em></span>).
</p>
</div>
<div class="simplesect" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="id3372647"></a>Options</h4>
</div>
</div>
</div>
<div class="variablelist">
<dl>
<dt>
<span class="term">Relative Probability</span>
</dt>
<dd>
<p>
Determines influence or total impact of a certain fractal.
</p>
</dd>
<dt>
<span class="term">Spatial Transformation</span>
</dt>
<dd>
<p>
Gives you information on the active fractal, and allows
you to type a value instead of changing it
manually. Changing parameters with the mouse isn't very
accurate, so this is a useful option when you need to be
exact.
</p>
</dd>
<dt>
<span class="term">Simple color transformation</span>
</dt>
<dd>
<p>
Changes the color of the currently selected fractal
component (which starts as the foreground color in the
toolbox) to a color of your choice.
</p>
</dd>
<dt>
<span class="term">Full color transformation:</span>
</dt>
<dd>
<p>
Like the Simple color transformation but this time you can manage
the color transformation for each color channel and for the alpha
channel (shown as a black channel).
</p>
</dd>
<dt>
<span class="term">Scale Hue/Value</span>
</dt>
<dd>
<p>
When you have many fractals with different colors, the
colors blend into each other. So even if you set "pure
red" for a fractal, it might actually be quite blue in
some places, while another "red" fractal might have a lot
of yellow in it. Scale Hue/Value changes the color
strength of the active fractal, or how influential that
fractal's color should be.
</p>
</dd>
<dt>
<span class="term">Render Options: Spot Radius</span>
</dt>
<dd>
<p>
Determines the density of the "brushstrokes" in the
rendered image. A low spot radius is good for thin
particle clouds or spray, while a high spot radius
produces thick, solid color strokes much like watercolor
painting. Be careful not to use too much spot radius -- it
takes a lot of time to render.
</p>
</dd>
<dt>
<span class="term">Render Options: Subdivide</span>
</dt>
<dd>
<p>
Controls the level of detail.
</p>
</dd>
<dt>
<span class="term">Render Options: Iterations</span>
</dt>
<dd>
<p>
Determines how many times the fractal will repeat
itself. (A high value for Subdivide and Iterations is for
obvious reasons a waste of process time unless your image
is very large.)
</p>
</dd>
<dt>
<span class="term">Render Options: Memory</span>
</dt>
<dd>
<p>
Enables you to speed up rendering time. This is especially
useful when working with a large spot radius; just
remember to use even multiples of the default value:
4096, 8192, 16384, ...
</p>
</dd>
</dl>
</div>
</div>
<div class="simplesect" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h4 class="title"><a id="id3369891"></a>A Brief Tutorial</h4>
</div>
</div>
</div>
<p>
This is a rather complex plug-in, so to help you understand it,
we'll guide you through an example where you'll create a leaf or
branch.
</p>
<p>
Many forms of life, and especially plants, are built like
mathematical fractals, i.e., a shape that reproduces or repeats
itself indefinitely into the smallest detail. You can easily
reproduce the shape of a leaf or a branch by using four (or
more) fractals. Three fractals make up the tip and sides of the
leaf, and the fourth represents the stem.
</p>
<div class="orderedlist">
<ol type="1">
<li>
<p>
Before invoking the filter: Select
<span class="guimenu">File</span>-><span class="guimenuitem">New Image</span>
Add a transparent layer with
<span class="guimenu">Layers</span>-><span class="guisubmenu">Layers and Channels</span>-><span class="guimenuitem">New Layer</span>
Set the foreground color in the toolbox to black, and
set the background to white.
</p>
</li>
<li>
<div class="informalfigure">
<div class="mediaobject">
<img src="../images/filters/examples/ifscompose-tut1.png" />
<div class="caption">
<p>
Start by rotating triangles 2 and 3, trying
to keep them nearly the same size.
</p>
</div>
</div>
</div>
<p>
Open IFS Compose. Start by rotating the right and bottom
triangles, so that they point upward. You'll now be able to
see the outline of what's going to be the tip and sides of
the leaf. (If you have problems, it may help to know that
the three vertices of a triangle are not equivalent.)
</p>
</li>
<li>
<p>
To make the leaf symmetrical, adjust the bottom triangle to
point slightly to the left, and the right triangle to point
slightly to the right.
</p>
</li>
<li>
<div class="informalfigure">
<div class="mediaobject">
<img src="../images/filters/examples/ifscompose-tut2.png" />
<div class="caption">
<p>
Add a fourth component, then stretch, scale, and move it
as shown.
</p>
</div>
</div>
</div>
<p>
Press <span class="guibutton">New</span> to add a component to the
composition. This is going to be the stem of the leaf, so we
need to make it long and thin. Press
<span class="guibutton">Stretch</span>, and drag to
stretch the new triangle. Don't be alarmed if this messes up
the image, just use <span class="guibutton">Scale</span> to adjust
the size of the overlong
triangle. You'll probably also have to move and rotate the
new fractal to make it look convincing.
</p>
</li>
<li>
<div class="informalfigure">
<div class="mediaobject">
<img src="../images/filters/examples/ifscompose-tut3.png" />
<div class="caption">
<p>
Enlarge component 1, arrange the other components
appropriately, then select all, scale and rotate.
</p>
</div>
</div>
</div>
<p>
You still have to make it look more leaf-like. Increase the
size of the top triangle, until you think it's thick and
leafy enough. Adjust all fractals until you're happy with
the shape. Right-click to get the popup menu, and choose
<span class="guibutton">Select all</span>. Now all components are
selected, and you can scale
and rotate the entire leaf.
</p>
</li>
<li>
<div class="informalfigure">
<div class="mediaobject">
<img src="../images/filters/examples/ifscompose-tut4.png" />
<div class="caption">
<p>
Assign a brownish color to component 4, and various shades
of green to the other components.
</p>
</div>
</div>
</div>
<p>
The final step is to adjust color. Click on the
<span class="guibutton">Color Transformation</span> tab, and choose
a different color for each fractal. To do this, check
<span class="guibutton">Simple</span> and press the right color
square. A color circle appears, where you can click or
select to choose a color.
</p>
</li>
<li>
<p>
Press OK to apply the image, and voilà, you've just made a
perfect fractal leaf! Now that you've got the hang of it,
you'll just have to experiment and make your own
designs. All plant-imitating fractals (be they oak trees,
ferns or straws) are more or less made in this fashion,
which is leaves around a stem (or several stems). You just
have to twist another way, stretch and turn a little or add
a few more fractals to get a totally different plant.
</p>
</li>
</ol>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="ch06s12s04.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="ch06s12.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="ch06s12s06.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">12.4. Flame </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> 12.6. Diffraction Patterns</td>
</tr>
</table>
</div>
</body>
</html>
|