home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / Magic_Illusions / Amiga / Tools / 3Dots / 3Dots.doc < prev    next >
Text File  |  1994-06-24  |  10KB  |  215 lines

  1. ****************************************************************************
  2.                                  3Dots V1.0
  3.                   Written in Blitz Basic 2 by Don Finlay
  4.  
  5.                    105 Norwood Rd.  Bayswater, Auckland
  6.                                 New Zealand
  7.                 Phone 09 445 3699  CompuServe ID# 100033,655
  8. ****************************************************************************
  9.  
  10.  
  11.        WHAT IS THIS PROGRAM AND WHAT THE HELL DOES IT DO?
  12.  
  13.            3Dots is another of those programs which have been showing
  14.        up lately to transform an IFF picture into a screen full of
  15.        apparently randomly located dots.  Why would anyone want a
  16.        screen full of dots?  Because if you look at the dots just
  17.        right you can see the original picture again but it is now in
  18.        three dimensions.  Weird!
  19.  
  20.            As I mentioned, there are other programs about which do
  21.        the same thing as 3Dots, so why have I bothered to re-invent
  22.        the wheel?  Mainly because I wanted to work out how it was done
  23.        and see if I could do it.  The only advantage 3Dots may have
  24.        over the other programs is, as far as I know, it is the only
  25.        one which is menu driven.
  26.  
  27.            There is an example picture included in the 3Dots drawer
  28.        for you to fool about with, but any eight color IFF picture
  29.        will work so you can do your own thing.  For those of you not
  30.        all that familiar with picture files and drawing programs, I
  31.        will go into all that a bit more later.
  32.  
  33.  
  34.                              THE COMMANDS
  35.  
  36.            When you run 3Dots you will first be greeted by the title
  37.        screen.  By placing your screen pointer into the title bar of
  38.        the title screen and pressing the right mouse button you will
  39.        reveal the menu.  There is only one section to the menu and it
  40.        only has two commands.  Load and Quit.  I won't bother to
  41.        explain "Quit" but probably should say a few words about
  42.        "Load".  By choosing the Load command you will bring up a
  43.        requester from which you can select the picture you wish to
  44.        3Dot.  3Dots will not accept a picture with a palette of more
  45.        than eight colors!  If you try to load a picture with more
  46.        than eight colors you will get an error message.  It would
  47.        be very easy to fine tune the code of 3Dots to accept more than
  48.        eight colors, but the finished 3D picture would not be as
  49.        distinct so for the time being I will stick to eight colors.
  50.  
  51.        Once you have selected and loaded the picture you want to 3Dot,
  52.        pressing the right mouse button will reveal another menu.  This
  53.        menu gives you a few more choices, but not many.
  54.  
  55.        MAKE 3D
  56.  
  57.            Selecting this command will start changing your screen
  58.        picture.  Right before your eyes, your carefully planned and
  59.        well organized eight color picture will, line by line, be
  60.        changed into a screen full of garbage.  Panic not!  There is
  61.        still a picture in there.  Really!  This is not a joke!  It is
  62.        there.  With a little luck and a bit of practice you will even
  63.        be able to see it.  I will give you a bit of help on that in a
  64.        bit.
  65.  
  66.  
  67.        SAVE SCREEN
  68.  
  69.            This one does just what it says.  It will bring up a
  70.        requester from which you can name your picture file and let the
  71.        program know where you want it saved.  This command will save
  72.        what ever is on the screen.  If you select save screen before
  73.        you select "make 3d" you will find yourself with two identical
  74.        picture files neither of which will be 3Dotted.
  75.  
  76.  
  77.  
  78.        PRINT
  79.  
  80.            Dumps the screen to the printer.  Again, this works on
  81.        what ever is on the screen at the time the command is invoked
  82.        so do "Make 3d" first.
  83.  
  84.            Be sure your printer is connected and on and you will have
  85.        a hard copy of the confused mess your screen has become.
  86.  
  87.            I have to say here that the program is set up for my printer
  88.        but as it prints through the PRT: device it should work for what
  89.        ever printer is in your prefs.  If you have any trouble or want a
  90.        larger printout just save your 3dot picture, load it into a paint
  91.        program and print from there.  A good dark ribbon would not go
  92.        amiss.
  93.  
  94.  
  95.        QUIT
  96.  
  97.            Work this one out for yourself.
  98.  
  99.  
  100.  
  101.                        HOW TO DRAW PICS FOR 3DOTS
  102.  
  103.            As mentioned before, 3Dots is set up to work with pictures
  104.        of eight colors or less, so the best way to go about doing your
  105.        own pic is to set your drawing program to use a palette of
  106.        eight colors.  I find the easiest way to keep track of things
  107.        is to set up a range of colors (In DPaint.) ranging from black
  108.        to white.
  109.  
  110.            For those of you who might still be on the low end of the
  111.        computer learning curve, a bit of further information might be
  112.        in order here.  Computers don't count like people.  If a person
  113.        was counting three apples he would count "One, two, three".
  114.        Computers don't start counting at one.  Computers start at
  115.        zero.  The three apples for the computer would be "Zero, one
  116.        and two".  By the same token the eight colors in our drawing
  117.        program would be numbered color 0, color 1, color 2, color 3,
  118.        color 4, color 5, color 6, and color 7.  These are called the
  119.        color register numbers.  Most drawing programs use color 0 as
  120.        the background.  In DPaint the colors sit in their little boxes
  121.        in the following order:                      |_0_|_4_|
  122.  
  123.                                                     |_1_|_5_|
  124.  
  125.                                                     |_2_|_6_|
  126.  
  127.                                                     |_3_|_7_|
  128.  
  129.        Why is this important to know?  Because, when 3Dots changes
  130.        your masterpiece into a jumble of dots to make a 3 dimensional
  131.        picture it arranges the colors with the lowest numbers to be
  132.        the ones which look the furthest away.  In other words, color 0
  133.        will be the back wall and color 7 will look closer to the
  134.        viewer than color 5. It does not matter a fig what colors you
  135.        use, 3Dots will know them only by number and will change them
  136.        all to black and white dots.
  137.  
  138.            So endith the lesson on computer counting of colors.
  139.  
  140.            To draw your own picture for 3Dots, simply use a paint
  141.        program set to eight colors and be sure that the things you
  142.        want to look closer are drawn with the colors with the higher
  143.        numbers.  Save the finished picture, load it into 3Dots and you
  144.        are away.
  145.  
  146.  
  147.                             HOW DOES IT WORK?
  148.  
  149.            I do not intend here to explain how the program works.  If
  150.        you want to understand that, look at the code.  What I will
  151.        attempt to explain is how the visual effect of three dimensions
  152.        is accomplished.
  153.  
  154.            The basic principle of the whole thing is that there are
  155.        actually two pictures composed of matching colored dots.  One
  156.        picture is for the left eye and one is for the right.  These
  157.        two pictures are superimposed one upon the other with the one
  158.        for the right eye a certain distance to the right of the one
  159.        for the left eye.  The basic distance to the right is what is
  160.        changed to get the effect of depth.  As I said in the little
  161.        bit about computer color registers, color 4 will look closer
  162.        than color 3.  This is because two matching dots which are used
  163.        to represent color 3 will be placed further apart than two
  164.        matching dots used for color 4.  It does not matter if the two
  165.        matching dots are both white or both black just as long as they
  166.        are the same.  It has to do with the fact that our eyes have a
  167.        distance between them so we see things slightly differently
  168.        with each eye.  Hold up your finger and look at it with only
  169.        the right eye.  Quickly close your right eye and look at the
  170.        finger with only the left eye.  You will see the finger appear
  171.        to move.  I recommend that you try all this when no one is
  172.        watching.  I'm sure that it would all be a lot easier to
  173.        understand if you could see my hands as I explain.
  174.  
  175.  
  176.                         HOW TO SEE THE 3D ILLUSION
  177.  
  178.            O.K. so now you have drawn something, 3Dots has worked its
  179.        magic upon it and you would now like to actually see something
  180.        other than a jumble of dots.  Now is the time to prove to
  181.        yourself that this whole exercise is more than an elaborate
  182.        sick joke.
  183.  
  184.            The basic idea is to focus your eyes about as far behind
  185.        the picture as you are in front of it.  What??  Don't panic,
  186.        there are a couple of tricks to help you.  Some people can see
  187.        the effect by looking at the picture on the computer screen.  I
  188.        am not one of them.  I find that I have to print out a hard
  189.        copy of the picture to have any luck at all.  What I do is to
  190.        take the print out of the picture and hold it right up to my
  191.        face.  So my nose is almost touching the paper.  I then let my
  192.        eyes relax and go slightly out of focus.  Then I move the paper
  193.        slowly away from my face but try not to change the focus of my
  194.        eyes as I do so.  Slowly, the image will start to form.  When
  195.        you start to see something forming out of the dots you will
  196.        soon get the hang of making the image sharper and clearer.
  197.  
  198.            Another trick is to put the print out behind glass.  Tape
  199.        it up on the other side of your ranch slider or a window.  Now,
  200.        look at the picture through the glass, but don't focus on the
  201.        picture.  Focus your eyes on the reflection of yourself in the
  202.        glass.  Again, when the focus of your eyes is right, you will
  203.        start to see things happening to the picture.
  204.  
  205.            If neither of these tricks works I don't know what to tell
  206.        you except to keep trying or send me a nasty letter.  If you
  207.        wear glasses try looking at the picture with your glasses off.
  208.        If you don't wear glasses, borrow some.  Let me know how you
  209.        make out.  My name is Don Finlay and I can be reached at 105
  210.        Norwood Rd. Bayswater, Auckland, New Zealand.  On CompuServe my
  211.        address is 100033,655.  Have fun. 8-)>
  212.  
  213.  
  214.  
  215.