POV-Ray : Newsgroups : povray.general : spatch problems : Re: spatch mini-tutorial Server Time
11 Aug 2024 23:16:41 EDT (-0400)
  Re: spatch mini-tutorial  
From: Andy Kugyelka
Date: 24 Apr 1999 18:42:45
Message: <37223ad5.0@news.povray.org>
Ed Kaiser wrote in message <371e4ad4.0@news.povray.org>...
>Does anyone out there know how to make spatch models with, um, appendages?
>Say I wanted to make a hand, how would I make the fingers? Or if I wanted
to
>make a tube that branched out to be shaped like a Y. I can't figure it out.
>I hope that was clear enough.
>
>
  The following is a step-by-step procedure of how I assume you create
multiple objects which protrude from another object using sPatch vs. 1.5
under Windows.
  Since I'm a beginner, this probably isn't the easiest or even the right
way,
so hopefully someone with more experience using sPatch will reply.

NOTES : - I've limited the final object to 2 "fingers" to make it a little
          easier. The final object will look like 2 chimneys on top of a
          hill- like structure. The basic procedure should be easily
          extended to create a hand or a "Y"-shaped structure.
        - Steps 2 to 5 are done in the Top view, the rest are done
          using the Right-hand side view window, unless stated otherwise.
        - If something should go wrong, just Undo it (Edit >> Undo),
          and try again.

1. Split the screen into 4 views. (View >> Split)
2. Insert a cylinder. (Model >> Insert >> cylinder)
   Note that when the cylinder is inserted, all of its points are selected,
   (green), vs. unselected (red), ready to be manipulated.
3. Move (Translate) <Pink tool button, row 1, column 1> the cylinder,
   a little more than the width of its radius, above where it was
   first inserted.
4. Insert a second cylinder.
5. Move the second cylinder down slightly so that it's just below the
   first one.
6. Turn on the grid. (View >> Grids)
7. *** (REMINDER : Start using the Right-hand side view window)
   First, select the unhighlighted (red points) right cylinder with the
   Group tool <Pink, row 2, col. 2> and pull a window around the
   unselected cylinder. ie. All the points on both cylinders should now
   be selected. (green)
8. Translate <Pink, row 1, col. 1> the two cylinders 3 or 4 grid spaces
   up. ( Note : Hold the Shift key down while you're dragging the mouse
   to snap to the grid.)
9. Insert a circle. (Model >> Insert >> circle(8pts) )
10. Rotate <Pink, row 1, col. 3> the circle 90 degrees. (Hold down the
    Shift key while you're dragging it around.)
11. Deselect everything; either press <Enter>, or from the menu, choose
    (Select >> None)
12. In the tool box, column 9, click the X and Y boxes so that only the Z
    box is colored. (Blue)
    NOTE : This step is optional. It's purpose is to demonstrate sPatch's
    ability to limit translations to either a single or dual combination of
axis.
13. Make sure the Translate tool <Pink, row 1, col. 1> is activated.
    Grab the left hand point of the circle and move it out, so that
    it's 1 or 2 squares to the left of the cylinder above it. Repeat this
    operation for the right side of the circle. ie. Stretch it to the right.
14. In the tool box, column 9, click the X and Y boxes, so that they turn
    red and green, respectively. Turn off the grid. (View >> Grids)

*** Now you should have 2 cylinders sitting side by side above the
    stretched, "pot-bellied", circular loop.

15. Click the Add Point tool <Pink, row 2, col. 1>.
    Click on the screen to the left of the cylinders and "circle", and
before
    releasing the left mouse button, drag the mouse down slightly.
    You should now have a "string" and the tool selection should revert to
the
    Translate tool.
    Grab the bottom point of the string and move it so that it's directly
over
    the left most point of the "circle". Now, right-click the mouse to weld
the
    2 points together. A reassuring "click" should confirm the weld, if your
    computer supports sound, and the volume isn't turned off.
    Grab the top point of the string and weld it to the left bottom point of
    the left cylinder.
16. Repeat Step 15 to join the rest of the points on the bottom of the
    cylinders to the points on the "circle", as well as, for the space
between
    the bottom points of the 2 cylinders.

NOTES : - You will need to use the perspective view in order to be able
          to select the front bottom point on the cylinders, as well as,
those
          points on the back of the object. ie. Spin it around using the
Pivot
          tool. <Green, row 1, col. 8>

        - You will need to add some points to the "circle" to create
"connection
          spots" where you can weld the strings to. Do this by clicking on
the
          Add Point tool <Pink, row 2, col. 1>, then click slightly to one
side
          of the point on the "circle" where you want the point added. Then
          slide it to where ever you want it. This may take a bit of pratice
to get
          it right.

        - While you're creating patches to join the objects, it's a good
idea to
          occasionally render the object to make sure that everything is
going
          according to plan.

        - If you want to adjust the slope of any patches' edge just select
one of
          the points, press the Tab button as many times as is required to
switch
          to the desired line, and then use the Curve tool <Pink, row 2,
col. 3>
          to make the adjustment.

        - I'm not sure how to make a more gradual slope between the
cylinders
          and the added patches. Most likely it's a matter of adding more
shapes
          in between them to make the transition more gradual.

Well, I think I've used up my share of bandwidth for the day, so if you need
any more
help, just ask.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.