
The Toruskit


This piece of code is from year 96. It has 16bit integer maths and 32bit
memory addressing with integrated real flatmode manager, so this won't
run under Windows or EMM/QEMM. Himem.sys is necessary. The engine was
written for i80486 with slow VGA. I just had to release something, sorry :-)

The code is out-dated, but someone may have fun when exploring it.



Teemu Laakso (zjack/dcc)    email: sah7tela@kyamk.fi
                               or: teemu@lyseo.kotka.fi




Some features of the engine:

- one object with max. 16384 faces

- Environment mapping with one 256x256x256 texture

- Two phase .3DS converting, please use first c3d then f3con

- Only 50Hz display mode 256x256x256 is supported, my NOKIA survived ;-)

- Bucket sort algorithm is used.

- 2D backface culling, needs all 3d points to be transformed.

- linear texturemapper without a single DIV,
  - max. poly size is 255 in y- and 255 in x-dimension.
  - "complete" clipping is supported.
  - 2 instructions per pixel. Thanks to MRI/Doomsday for his speed-up ideas.

- lots of self modifying code, runs ok on 486/P5/P6, CPUs with
  longer pre-fetch queue may suffer some compatibility problems.

- 6 MULs matrix rotation.

- complilation: TASM flat3d.asm
                TLINK flat3d /3

