home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / utility / dos / spike1 / spike.doc next >
Encoding:
Text File  |  1993-03-22  |  3.5 KB  |  67 lines

  1. SPIKE  Ver 1.0  3-21-93
  2. (C)opyright 1993 by Gregg Wright
  3.  
  4. WHAT IS IT:
  5.     I'm not too sure what SPIKE is.  It started out as a programming exercise
  6. in the C language and turned out to be something that could be useful 
  7. (although I'm not sure how!).
  8.  
  9. WHAT DOES IT DO:
  10.     What is does is fairly simple.  It creates a data file for the
  11. Persistence of Vision raytracer that consists of a specified number of cones
  12. randomly rotated in 3 dimensions about the origin.  It's that simple.
  13.  
  14. HOW DO I USE IT:
  15.     The interface for SPIKE is simple too.  It asks for input and you provide
  16. it.  You specify the number of spikes you want created, the minimum and 
  17. maximum lengths of the spikes, and a seed value for the random number
  18. generator.  SPIKE will then randomly rotate each spike in the X, Y, and Z
  19. directions and randomly scale its length between the minimum and maximum
  20. values.  SPIKE will then write the data to the filename that you specify
  21. (don't include the .POV extension) in the POV format, add some boring 
  22. texture, and a bounding sphere.  Then all you have to do is add a camera and 
  23. a light source and render the object.
  24.  
  25. NOTES:
  26.   ∙ There are currently no error handling routines in the program, so don't
  27.     give SPIKE stupid input.  It doesn't like that very much.  The values 
  28.     for the number of spikes and the seed value must be integers.  The values
  29.     for the minimum and maximum lengths can be floating point numbers.  The
  30.     output filename must be a valid DOS filename with no more than 8 
  31.     characters.
  32.   ∙ The seed value given will be used to set the random number generator.
  33.     If you give SPIKE the same seed value every time, you'll get essentially
  34.     the same set of spikes every time.  This feature allows you to change the 
  35.     way the output will look each time.  You can also use a specific seed 
  36.     value if you find a set of spikes that you like.
  37.   ∙ You must place the include file "SPIKE.INC" included in the zip file
  38.     somewhere that POV can find it.  Currently this file only contains the
  39.     definition for the cone object used.  It will be used in future versions
  40.     for others objects that will be included in the program.
  41.   ∙ I haven't done much experimenting with input values as of yet, so you'll
  42.     have to experiment yourself to find the values that look best.  I have 
  43.     noticed that numbers of spikes less that around 10 creates objects that 
  44.     are somewhat "unsightly".  (see included GIF files.)
  45.  
  46. This is a very simple program, right now anyway.  Some of the things I'd like
  47. to add in the future are:
  48.    ∙ An option for random texture to be applied to each spike.
  49.    ∙ An option for embedding the spikes in toher objects, such in a sphere
  50.      to create a morning star type object.
  51.    ∙ The ability to create spikes rotated symmetrically about the origin.
  52.    ∙ The ability to rotate other objects about the origin, such as 
  53.      pyramids, cylinders(?), offset spheres, blobs(?), user defined objects.
  54.    ∙ The ability to specify command line parameters.
  55.  
  56.     I'm not too sure what use this program will be, but it does make some
  57. interesting objects.  If anyone is able to find an interesting use for SPIKE,
  58. or is able to create some good pitures using SPIKE I would really like to
  59. know.  Any ideas, suggestions, or help for future versions would also be
  60. greatly appreciated.  You can send mail to my Compuserve address or leave a
  61. message in the Graphics Developers Forum.  I'll more likely see it if you
  62. mail me a message.
  63.  
  64. Gregg Wright
  65. 71222, 3177
  66.  
  67.