home *** CD-ROM | disk | FTP | other *** search
- SPIKE Ver 1.0 3-21-93
- (C)opyright 1993 by Gregg Wright
-
- WHAT IS IT:
- I'm not too sure what SPIKE is. It started out as a programming exercise
- in the C language and turned out to be something that could be useful
- (although I'm not sure how!).
-
- WHAT DOES IT DO:
- What is does is fairly simple. It creates a data file for the
- Persistence of Vision raytracer that consists of a specified number of cones
- randomly rotated in 3 dimensions about the origin. It's that simple.
-
- HOW DO I USE IT:
- The interface for SPIKE is simple too. It asks for input and you provide
- it. You specify the number of spikes you want created, the minimum and
- maximum lengths of the spikes, and a seed value for the random number
- generator. SPIKE will then randomly rotate each spike in the X, Y, and Z
- directions and randomly scale its length between the minimum and maximum
- values. SPIKE will then write the data to the filename that you specify
- (don't include the .POV extension) in the POV format, add some boring
- texture, and a bounding sphere. Then all you have to do is add a camera and
- a light source and render the object.
-
- NOTES:
- ∙ There are currently no error handling routines in the program, so don't
- give SPIKE stupid input. It doesn't like that very much. The values
- for the number of spikes and the seed value must be integers. The values
- for the minimum and maximum lengths can be floating point numbers. The
- output filename must be a valid DOS filename with no more than 8
- characters.
- ∙ The seed value given will be used to set the random number generator.
- If you give SPIKE the same seed value every time, you'll get essentially
- the same set of spikes every time. This feature allows you to change the
- way the output will look each time. You can also use a specific seed
- value if you find a set of spikes that you like.
- ∙ You must place the include file "SPIKE.INC" included in the zip file
- somewhere that POV can find it. Currently this file only contains the
- definition for the cone object used. It will be used in future versions
- for others objects that will be included in the program.
- ∙ I haven't done much experimenting with input values as of yet, so you'll
- have to experiment yourself to find the values that look best. I have
- noticed that numbers of spikes less that around 10 creates objects that
- are somewhat "unsightly". (see included GIF files.)
-
- This is a very simple program, right now anyway. Some of the things I'd like
- to add in the future are:
- ∙ An option for random texture to be applied to each spike.
- ∙ An option for embedding the spikes in toher objects, such in a sphere
- to create a morning star type object.
- ∙ The ability to create spikes rotated symmetrically about the origin.
- ∙ The ability to rotate other objects about the origin, such as
- pyramids, cylinders(?), offset spheres, blobs(?), user defined objects.
- ∙ The ability to specify command line parameters.
-
- I'm not too sure what use this program will be, but it does make some
- interesting objects. If anyone is able to find an interesting use for SPIKE,
- or is able to create some good pitures using SPIKE I would really like to
- know. Any ideas, suggestions, or help for future versions would also be
- greatly appreciated. You can send mail to my Compuserve address or leave a
- message in the Graphics Developers Forum. I'll more likely see it if you
- mail me a message.
-
- Gregg Wright
- 71222, 3177
-
-