home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / s / spring12.zip / SPRING12.DOC < prev   
Text File  |  1992-08-26  |  4KB  |  95 lines

  1. SPRING v 1.2
  2.  
  3. Description:
  4.      This program generates user definable springs as DECLAREd
  5.     COMPOSITEs for POVRay 1.0 (p.k.a. DKB) Ray-Tracing program.
  6.  
  7. Suggested Input:
  8.      Wire radius         : .5    Radius of wire used to make spring.
  9.      Spring radius         : 10    Radius of spring as you look down in.
  10.      Number of coils     : 10    Not including top & bottom coils.
  11.      Spring height (min) : 20    For an animation, the most
  12.                     compressed height of spring.
  13.      Spring height (max) : 50    For an animation, the most
  14.                     extended height of spring.
  15.      Number of frames    : 20    How many frames (.DATs) to divide
  16.                     the motion over.
  17.      Sub-directory (\POV):        Where all the files get written,
  18.                     mine's called \POV, what's yours?
  19.                     (BTW the \ is optional, it'll add it.
  20. Output:
  21.  
  22. SPROBJ.INC - an include file defining the spring and its texture.
  23.          To change the attributes of the spring across all frames,
  24.          simply modify this file
  25.  
  26. SPRDSP.INC - an include file defining a sample scene built to show off
  27.          the new spring. This includes a fixed view point, light
  28.          source, checkered floor, and the placement of the spring.
  29.  
  30. SPRnnnnn.POV are a series of .DAT files containing the variables that
  31.          define the spring motion and the bounding box.
  32.  
  33. RUNEM.BAT  - A batch file to run the files. This assumes another batch
  34.          file called "p.bat" that for me is:
  35.  
  36.              povray -i%1.dat -o%1.tga %2 %3
  37.  
  38.          You'll need to create your own to reflect what version of
  39.          PoV your running.
  40.  
  41.  
  42. How to generate an example animation:
  43.  
  44.     1) Run the program using the example input shown earlier. It will show
  45.        you a rough idea of the shape to expect.
  46.  
  47.     2) Go to your PoV directory and type "runem".
  48.  
  49.     3) Run PLAY from Trilobyte to view the animation.
  50.      PLAY SPRING.FLI
  51.  
  52.      Animations don't get easier than this!
  53.  
  54. Additional bother:
  55.  
  56.      See also CHAIN (which generates a chain of links), SHADE (which
  57.     generates pleated lamp shades), DIAMOND (which generates a cut gem,
  58.     plus creates the rest of the .DAT file:  view, light, floor), GEAR13
  59.     (guess), STAR12 (which generates 3D stars with several attributes),
  60.     FONT2DAT (which converts Grasp/Pictor/compatible fonts to objects using
  61.     many options), and SHP2DKB (which should become SHP2PV) which takes
  62.     AutoCad .SHP font files and generates stroke-type font objects.  With
  63.     all of these programs, just play around with the variables to generate
  64.     new shapes.  For example, generating many long points on the star looks
  65.     like the spokes of a bicycle wheel.  Many short points on a large
  66.     radius star looks like a circular saw blade.  Use your imagination and
  67.     please post any ideas or neat works (with source) for the world to
  68.     enjoy.
  69.  
  70.     Trial size soap box: Please include source when sending programs or
  71.     objects. Even if its sloppy, it can only help others. Follow the lead
  72.     of the people who brought us DKB in the first place. We wouldn't have a
  73.     PVRay now otherwise! Many thanks to those who do post!
  74.  
  75.     I can be reached at YOU CAN CALL ME RAY RBBS (708) 358-5611.
  76.  
  77.  
  78.             "Its my world and you're welcome to it".
  79.  
  80.  
  81.                         Ken Koehler (8-26-92)
  82.                         CIS 72740,1161
  83.  
  84.      Enclosed are three files:
  85.  
  86.         SPRING12.BAS  Quickbasic source
  87.         SPRING12.DOC  This file
  88.  
  89.     Some additions made by:
  90.                         JEff Bowermaster (7/10/92)
  91.                         Splat! Graphics
  92.                         CIS 72040,2117
  93.                         hang out a lot on
  94.                         TGA - 510-524-2780
  95.