home *** CD-ROM | disk | FTP | other *** search
- <?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>11.5.  IFS Fractal</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="filters-render.html" title="11.  Rendering Filters" />
- <link rel="prev" href="plug-in-flame.html" title="11.4.  Flame" />
- <link rel="next" href="plug-in-diffraction.html" title="11.6.  Diffraction Patterns" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">11.5. 
- <span lang="en" xml:lang="en">IFS Fractal</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="plug-in-flame.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">11. 
- <span lang="en" xml:lang="en">Rendering Filters</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="plug-in-diffraction.html"><img src="../images/next.png" alt="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-ifsfractal"></a>11.5. 
- <span lang="en" xml:lang="en">IFS Fractal</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2442 $</td>
- <td align="left">2006-12-16</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2770507" class="indexterm"></a>
- <a id="id2770525" class="indexterm"></a>
- <div class="mediaobject">
- <img src="../images/filters/filters-render-ifsfractal.png" />
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2770549"></a>11.5.1. 
- <span lang="en" xml:lang="en">Overview</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2770560"></a>
- <p class="title">
- <b>Figure 16.237. 
- <span lang="en" xml:lang="en">Applying example for the IFS Compose filter</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/render-taj-ifscompose.jpg" alt="Applying example for the IFS Compose filter" />
- <div class="caption">
- <p>Filter “<span class="quote">IFS Fractal</span>” applied</p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- You can find this filter through
- <span class="guimenu">Filte<span class="accel">r</span>s</span> ‚Üí <span class="guisubmenu"><span class="accel">R</span>ender</span> ‚Üí <span class="guisubmenu"><span class="accel">N</span>ature</span> ‚Üí <span class="guimenuitem"><span class="accel">I</span>FS fractal</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. (“<span class="quote">IFS</span>” stands for “<span class="quote">Iterated Function System
- </span>”.)
- </p>
- <p>
- The key to use 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,. <em class="citetitle">Computer Graphics, Principles and
- Practice</em><a class="xref" href="bibliography.html#bibliography-books-foley01" title="Computer Graphics, Principles and Practice">[<abbr class="abbrev">FOLEY01</abbr>]</a>.
- </p>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2770712"></a>11.5.2. 
- <span lang="en" xml:lang="en">Options</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">The Main Interface</span>
- </dt>
- <dd>
- <p>
- 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>
- </dd>
- <dt>
- <span class="term">Toolbar</span>
- </dt>
- <dd>
- <p>
- Some tools are directly visible in this tool bar:
- <span class="guibutton">Move</span>,
- <span class="guibutton">Rotate</span>, <span class="guibutton">Stretch</span>,
- <span class="guibutton">New</span>,
- <span class="guibutton">Delete</span>, <span class="guibutton">Undo</span>
- , <span class="guibutton">Redo</span>,
- <span class="guibutton">Select All</span>.
- You can see others, if your window is not wide enough, by
- clicking on the drop-down list button on the right of tool bar:
- <span class="guibutton">Recenter</span> and
- <span class="guibutton">Render Options</span> where you have have
- several parameters:
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Render Options</span>
- </dt>
- <dd>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">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>
- <dt>
- <span class="term">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">Subdivide</span>
- </dt>
- <dd>
- <p>Controls the level of detail.</p>
- </dd>
- <dt>
- <span class="term">Spot Radius</span>
- </dt>
- <dd>
- <p>
- Determines the density of the
- “<span class="quote">brushstrokes</span>”
- 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>
- </dl>
- </div>
- </dd>
- </dl>
- </div>
- </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">Color transformation</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2770975"></a>
- <p class="title">
- <b>Figure 16.238. 
- <span lang="en" xml:lang="en">
- “<span class="quote">Color transformation</span>” tab options
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/options-render-ifscompose2.png" alt="Color transformation tab options" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Simple color transformation</span>
- </dt>
- <dd>
- <p>
- Changes the color of the currently selected fractal
- component (default is 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
- “<span class="quote">pure red</span>” for a fractal, it might actually
- be quite blue in some places, while another “<span class="quote">red
- </span>” 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 color should be.
- </p>
- </dd>
- </dl>
- </div>
- </dd>
- <dt>
- <span class="term">Relative Probability</span>
- </dt>
- <dd>
- <p>
- Determines influence or total impact of a certain fractal.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2771112"></a>11.5.3. 
- <span lang="en" xml:lang="en">A Brief Tutorial</span>
- </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>
- <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.)<a id="id2771215" class="indexterm"></a>
- </p>
- <div class="figure">
- <a id="id2771231"></a>
- <p class="title">
- <b>Figure 16.239. 
- <span lang="en" xml:lang="en">Tutorial Step 2</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/ifscompose-tut1.png" alt="Tutorial Step 2" />
- <div class="caption">
- <p>
- Start by rotating triangles 2 and 3, trying to keep them nearly
- the same size.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </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>
- <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>
- <div class="figure">
- <a id="id2771314"></a>
- <p class="title">
- <b>Figure 16.240. 
- <span lang="en" xml:lang="en">Tutorial Step 3</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/ifscompose-tut2.png" alt="Tutorial Step 3" />
- <div class="caption">
- <p>
- Add a fourth component, then stretch, scale, and move it
- as shown.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </li>
- <li>
- <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 pop-up menu, and choose
- <span class="guibutton">Select all</span>. Now all components are
- selected, and you can scale
- and rotate the entire leaf.
- </p>
- <div class="figure">
- <a id="id2771373"></a>
- <p class="title">
- <b>Figure 16.241. 
- <span lang="en" xml:lang="en">Tutorial Step 4</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/ifscompose-tut3.png" alt="Tutorial Step 4" />
- <div class="caption">
- <p>
- Enlarge component 1, arrange the other components
- appropriately, then select all, scale and rotate.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </li>
- <li>
- <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>
- <div class="figure">
- <a id="id2771437"></a>
- <p class="title">
- <b>Figure 16.242. 
- <span lang="en" xml:lang="en">Tutorial Step 5</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/ifscompose-tut4.png" alt="Tutorial Step 5" />
- <div class="caption">
- <p>
- Assign a brownish color to component 4, and various shades
- of green to the other components.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </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="plug-in-flame.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="filters-render.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="plug-in-diffraction.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="plug-in-flame.html">11.4. 
- <span lang="en" xml:lang="en">Flame</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="plug-in-diffraction.html">11.6. 
- <span lang="en" xml:lang="en">Diffraction Patterns</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-