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
Wrap
Text File
|
1992-08-26
|
4KB
|
95 lines
SPRING v 1.2
Description:
This program generates user definable springs as DECLAREd
COMPOSITEs for POVRay 1.0 (p.k.a. DKB) Ray-Tracing program.
Suggested Input:
Wire radius : .5 Radius of wire used to make spring.
Spring radius : 10 Radius of spring as you look down in.
Number of coils : 10 Not including top & bottom coils.
Spring height (min) : 20 For an animation, the most
compressed height of spring.
Spring height (max) : 50 For an animation, the most
extended height of spring.
Number of frames : 20 How many frames (.DATs) to divide
the motion over.
Sub-directory (\POV): Where all the files get written,
mine's called \POV, what's yours?
(BTW the \ is optional, it'll add it.
Output:
SPROBJ.INC - an include file defining the spring and its texture.
To change the attributes of the spring across all frames,
simply modify this file
SPRDSP.INC - an include file defining a sample scene built to show off
the new spring. This includes a fixed view point, light
source, checkered floor, and the placement of the spring.
SPRnnnnn.POV are a series of .DAT files containing the variables that
define the spring motion and the bounding box.
RUNEM.BAT - A batch file to run the files. This assumes another batch
file called "p.bat" that for me is:
povray -i%1.dat -o%1.tga %2 %3
You'll need to create your own to reflect what version of
PoV your running.
How to generate an example animation:
1) Run the program using the example input shown earlier. It will show
you a rough idea of the shape to expect.
2) Go to your PoV directory and type "runem".
3) Run PLAY from Trilobyte to view the animation.
PLAY SPRING.FLI
Animations don't get easier than this!
Additional bother:
See also CHAIN (which generates a chain of links), SHADE (which
generates pleated lamp shades), DIAMOND (which generates a cut gem,
plus creates the rest of the .DAT file: view, light, floor), GEAR13
(guess), STAR12 (which generates 3D stars with several attributes),
FONT2DAT (which converts Grasp/Pictor/compatible fonts to objects using
many options), and SHP2DKB (which should become SHP2PV) which takes
AutoCad .SHP font files and generates stroke-type font objects. With
all of these programs, just play around with the variables to generate
new shapes. For example, generating many long points on the star looks
like the spokes of a bicycle wheel. Many short points on a large
radius star looks like a circular saw blade. Use your imagination and
please post any ideas or neat works (with source) for the world to
enjoy.
Trial size soap box: Please include source when sending programs or
objects. Even if its sloppy, it can only help others. Follow the lead
of the people who brought us DKB in the first place. We wouldn't have a
PVRay now otherwise! Many thanks to those who do post!
I can be reached at YOU CAN CALL ME RAY RBBS (708) 358-5611.
"Its my world and you're welcome to it".
Ken Koehler (8-26-92)
CIS 72740,1161
Enclosed are three files:
SPRING12.BAS Quickbasic source
SPRING12.DOC This file
Some additions made by:
JEff Bowermaster (7/10/92)
Splat! Graphics
CIS 72040,2117
hang out a lot on
TGA - 510-524-2780