home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Pro / 3d / ICoons1_0.lzh / icoons / doc / tutorial.doc < prev   
Text File  |  1992-10-23  |  7KB  |  151 lines

  1. This is a short tutorial to ICoons. Follow the steps below to create a
  2. very simple object.
  3.  
  4. Start ICoons by typing ICoons from the CLI. You should now see a screen
  5. with 4 views labelled X, Y, Z and P. These views will show the object from
  6. different directions. 
  7. The P view shows a perspective view of the object, when you start the 
  8. program, the perspective view will be exactly the same as the Y view; 
  9. we'll try to rotate the perspective view later.
  10.  
  11.  
  12. First we'll create a closed spline:
  13.   Select the add command by typing 'a' on the keyboard, you should now see
  14.   the text 'Add' in the menu bar; this indicates that you now are in add
  15.   mode.
  16.   Point near the upper left corner of the Y view, and press and hold
  17.   the left mouse button. Drag the mouse pointer to the upper right corner
  18.   of the Y view and release the mouse button. 
  19.   You have now created a simple spline consisting of one segment and two
  20.   knots. The segment is red and the knot is yellow because they're selected.
  21.  
  22.   We'll now add a third knot to the spline:
  23.   Select the 'a' command once more, then point just right of the rightmost 
  24.   knot in the Y view, and press and hold the left mouse button. 
  25.   Drag the mouse pointer to the lower right corner of the Y view and release 
  26.   the button. 
  27.   Now you've added another knot to the spline, ICoons didn't create a new
  28.   spline because you pointed near an existing knot, the new knot was added to
  29.   the end of the spline because you pointed AFTER the last knot.
  30.  
  31.   Ok, lets add a knot more:
  32.   Select the 'a' command once more, then point just below the newest knot in 
  33.   the Y view, and press and hold the left mouse button. Drag the mouse pointer
  34.   to the lower left corner of the Y view and release the button. 
  35.   With a little luck, you now see a spline consisting of 4 knots and 3
  36.   segments.
  37.  
  38.   Lets finish this spline by closing it:
  39.   Once more, select the add command. This time add a knot left of the lower
  40.   left knot. Keep the left button down, and move the new knot up to the 
  41.   first knot you created in the upper left corner.
  42.   While keeping the left button down, click once with the right button.
  43.   This tells ICoons to connect the two knots to each other, the result 
  44.   should be a closed spline.
  45.  
  46.   Try to zoom out by using the Left-Amiga+O shortcut (or by choosing Zoom out
  47.   from the display menu), you should now see a nice oval.
  48.  
  49.   Unfortunately, the oval would be invisible if you tried to render it, 
  50.   this is because an area enclosed by a single spline is invisible, so
  51.   lets make it visible now. We'll do that by adding another spline.
  52.  
  53. Spline 2:
  54.    Ok, we want to create a spline consisting of a single segment, the 
  55.    new spline should run from the upper left corner to the lower right
  56.    corner.
  57.    Do this by selecting the 'a' command and point to a position near the 
  58.    upper left corner which isn't too near to the know we already have there.
  59.    If you are too close to that knot, you'll just add a new knot to the
  60.    existing spline. If you do that, then delete it by pressing the 'd'
  61.    key (d for Delete!).
  62.    Add the new spline, and drag one corner to the lower left of the view.
  63.    Now you should see two splines in the view, we now want to connect the
  64.    two splines to each other:
  65.  
  66. Connecting:
  67.    Point to the lower left knot of the new 2 knot spline, press
  68.    the left mouse button and drag it to the other knot in that corner.
  69.    Don't release the left button yet, instead click on the right button.
  70.    This should connect the two knots in that corner. Verify this by moving
  71.    the (now only) knot in the lower left corner: The two splines should
  72.    both follow the mouse when you move it.
  73.  
  74.    Now connect the splines in the upper right corner by repeat this 
  75.    procedure. The result should be a single object consisting of two
  76.    'patches', we'll now try to render it.
  77.  
  78. Rendering:
  79.    Select the render command by either pressing 'r', or by choosing the
  80.    menu item 'Render'. You should see a lot of messages in the menu bar,
  81.    and after some time, you should see a rendering of the object in
  82.    the perspective window. When you've finished looking at it, press
  83.    the space bar to return to the normal view.
  84.  
  85. Perspective view:
  86.    Ok, lets try to rotate the perspective view a bit.
  87.    Select 'Rotate P.' from the menu, or press the 'R' gadget which can be
  88.    found left of the perspective view. 
  89.    You should now see the message 'Rotate P.' in the menubar. Point in
  90.    any view, and press and hold the left mouse button. Now try to move the
  91.    mouse. You should see a bounding box which will turn as you move the mouse, 
  92.    release the mouse when you're satisfied with the new position, and
  93.    the perspective view will be redrawn.
  94.  
  95. Re-rendering:
  96.    Since we haven't modified the object, we can render it again by using
  97.    the Re-render command. Press 'R'  (or select Re-render from the menu)
  98.    to see a rendering of the object from the new direction. You could
  99.    also use the render command again. The only difference between the 
  100.    two commands are that the Render command will recompute the object 
  101.    while Re-render won't.
  102.  
  103. Configuration parameters:
  104.    The rendering may look a more like a polygon, than like a surface 
  105.    surrounded by smooth splines. The reason for this is that the splines
  106.    are converted into straight line segments before rendering. If the number
  107.    of line segments per spline segments are small, you'll get an edgy 
  108.    rendering:)
  109.    Lets change this by modifying the number of line segments per spline segment,
  110.    this is done in the configuration window:
  111.    Select Configuration - Edit from the Project menu, you should now see
  112.    a window with some numeric gadgets. We'll concentrate on the two gadgets
  113.    in the middle column.
  114.    The "Spl. resolution" defines the number of line segments used when editing
  115.    in the views. The "Patch resolution" defines the number of edges used when
  116.    rendering the object (it is also used when generating a TTDDD description
  117.    of the object).
  118.    Try to set the Patch resolution parameter to 10 (it is probably 4 right now).
  119.    Now select the Ok gadget to return to the previous view.
  120.    Render the object again by using the Render ('r') command, Re-render won't
  121.    do now because we want to recompute the object.
  122.    The result should be a much smoother object.
  123.    Be warned: The number of triangles in the final object is proportional to
  124.    the square of the Patch resolution parameter. So you've increase memory
  125.    consumption and computing time drastically by increasing this parameter.
  126.  
  127. Expanded view:
  128.    This isn't exactly a fancy object, but it's the best we've got, lets 
  129.    finish by having a BIG rendering of the object:
  130.    Select the 'P' gadget to get a expanded version of the Perspective view.
  131.    Now select Re-render (or Render) to get a big rendering of the object.
  132.    Press space when you've finished looking at this fantastic picture :)
  133.    Return to the 4 view screen by selecting the 'B' gadget.
  134.  
  135.  
  136. Generating a TTDDD file:
  137.    Lets finish by generating a TTDDD file of the object.
  138.    Now select the "Generate - TTDDD format" from the project menu. You'll
  139.    now see a file requester; enter a filename, select ok and hey presto,
  140.    after a little time you have generated a TTDDD description file of this
  141.    fine object.
  142.  
  143.    If you want to turn this into an Imagine object, you now need the T3DLIB
  144.    shareware package from Glenn Lewis.
  145.  
  146. Quitting:
  147.    I'll leave "Quitting the program" as an exercise for the reader :)
  148.  
  149.  
  150.    Helge
  151.