------------------------------------------------------------------------------

            -= P3D Vector Engine coded by maLi/DarkSiDe - 1996 =-
                     Copyright (c) 1996 by Matjaz Trtnik

--------------------------------- 1.12.1996 ----------------------------------

Small vecotr engine supporting flat, gouraud, texture, env mapping, and phong.
All 100% asm sources included. You should have DOS32 pmode extender copyright
by Adam Seychell. You can get it from one of the FTPs listed below:

-ftp.cdrom.com:/pub/demos/code/pmode/
-x2ftp.oulu.fi:/pub/msdos/programming/pmode/
-ftp.luth.se
-ftp.arosnet.se

or go to DOS32 home site at: http://www.alogona.se/~network/dos32.html
Engine uses DOS32 v3.3 but I think it should work also with DOS32 v3.5.
I'm not sure for previous versions (3.1 and 3.2 if I'm right)
Without this extender program won't work!

Archive should have these directories:
DATA     - texture, palette and sincos stuff
ENGINE   - engine itself
INCLUDES - all asm sources
OBJECTS  - 3D object + .ASC converter (also source code in BP7.0)
ZBUFFER  - zbuffered flat engine

Note that fillers are not very high speed since this engine was coded some
time ago and in that time I actually started coding pure asm so code IS bad :)
But it's fast enough :) Ups, I almost forgot you something. As you have
probably noticed polygons are not sorted so object get messy from time to
time. Blame me! :) I was too lazy to do it. But I also included zbuffered flat
filler so you can see how this zbuffer actually works and try to implement it
on gouraud and texture triangle too.
This project was then stopped due not much time for coding. Currently me and
other coder from my group (Zak) are working on new 3D engine.

Executable:
ASC2DAT.EXE - This is converter which convert from 3D Studio ASCII file to
              dat file. If you check out pascal source I think you must be
              able to find out strucutre of dat file otherwise you are fully
              braindead! :)
              If you are interesting for 3D Studio keyframer file (*.3ds) and
              fully source code in Watcom C 10.6 feel free to email me.
FILLER.EXE  - Flat, gouraud and texture mapped triangle fillers. They are quit
              fast since I'm using constant interpolating value for every
              horizontal line but still not very fast. Flat uses 2/3 divs per
              triangle, gouraud 5/7 divs and texture mapped triangle 9/11
              divs per triangle. (Currently I have fillers with 4 divs per
              triangle the most. Thnx to galvados! :)
MULTI.EXE   - Main engine file. It shows rotated & shaded object. You can
              select any object from directory \OBJECTS and recompile source.
              Flat, gouraud, texture mapping, environment mapping and phong
              support.
PHONG.EXE   - Faked phong shading. Looks pretty nice. Specail thnx to GooRoo
              who provide me texture map.

Make whatever you want with this code. Rip it if you feel like but remember,
good coders don't use other code for ripping but for learning!

------------------------------------------------------------------------------

If you want to contact me for any reason I can be find on following addresses:

Snail:
Matjaz Trtnik
Klemenova 11
1260 Ljubljana-Polje
Slovenia
Europe

Tel.: ++386 (0)61 482 289

Email:
mtrtnik@info.src.si (first)
or
igo.gruden@uni-lj.si (second)

IRC:
nick: maLi or something similar (maLi_), sometimes maLcek
channels: #coders #asm

I'd appreciate all comments about this little engine.

------------------------------------------------------------------------------

Yeah, you have guessed, greetings time! :)

Greets goes to:

FAiTH -  I LOVE YOU 

and my coding buddies (in alfabeth order):

Adept     - nice engine, thnx for all help
Bigge     - (#)asm rulez :)
Kalms     - all i can say is just THNX! hopefully cya next year :)
Lorenzo   - hopefully cya again soon
Mrz       - flag was cool party
Multiplex - will u EVER send me that watcom stuff?! :)
Sarwaz    - less smoking, more coding :)
Plasm     - u suxx :>
Zak       - we gonna rulez!
Zed       - Zed3D rulez!

And all my #coders buddies I forgot.

------------------------------------------------------------------------------

                                           Signed,

                                                   Matjaz Trtnik a.k.a maLi


