  3 March 1997     Jonkoping, Sweden



                          3DExample
                         -----------

  This is a short piece of code that shows some 3D objects
flying around on the screen.
  I know that there are some coders out there that would like to 
make such 3D-animations, but don't have the mathematics to do the 
necessary calculations. This of course shouldn't be a reason not 
to do it.  A quite famous mathematician called Oliver Heaviside once 
said (when being criticized when using math tools he couldn't 
fully understand): "Should I refuse a good dinner simply because 
I do not understand the process of digestion?"
  This program, "3DEXAMPL.EXE", must be placed in the same directory
as "EGAVGA.BGI" and "TRIP.CHR". The source-code, "3DEXAMPL.PAS", 
shows what they're used for. The source-code is, as the name implies, 
written in Pascal. I've used Borland TurboPascal 6.0, but the code
can easily be ported to another language or system. 

IMPORTANT: When compiling, use 80x87 calls and 286 instructions,
(in the "options" menu).

  If you have serious trouble understanding the code, you could
try mailing me at:  bengt.svensson@hhj.hj.se
  I will try to respond (if i'm not too busy).
This program is Freeware and may be distributed freely but may
not be sold as a commercial product. You're encouraged to send a 
postcard or e-mail telling me what you think about this piece of code.

Modify, compile, enjoy!


  //Bengt S


Nota Bene:  The 3D-functions are recalculated to keep the multiplications
on a minimum, it's quite tricky to back-track this to a "normal"
vector calculus.