Analysis model: gpt-5.5 xhigh

Virtual Vectors - Boris Ottlewski

Subject

Virtual Vectors is a 1992 MS-DOS VGA demo by Boris Ottlewski. The Hornet 1992 index lists it as:

vv.zip           245063 ***+  Virtual Vectors by Boris Ottlewski

Release metadata:

Sources:

The archive contains a sidecar DEMOSITE.COM advertisement and old distribution material. Those files are not reproduced here.

Runtime Capture

Virtual Vectors runtime contact sheet

The runtime contact sheet above is from a local DOSBox-X capture:

Emulator:        DOSBox-X 2026.01.02 SDL2
Capture date:    2026-06-19
Machine:         svga_s3
CPU core/cycles: normal, 50000 cycles
Sound:           disabled for this capture
Command:         VV.EXE ODYSSEY2.MOD 5000
Startup input:   queued Space key about 2.5 seconds after launch
Capture stream:  720x400 H.264 4:4:4 MPEG-TS, display aspect 4:3
Duration:        76.077533 seconds
Timing zero:     beginning of captured stream, including the startup/key screen

Representative observed timestamps:

The sequence GIF below is assembled directly from the eleven published DOSBox-X runtime frames. It compresses the captured visual arc into one preview: startup screen, shaded cube/polyhedron, textured object, realtime objects intertitle, rainbow plane, transformed star, animal-like polygon mesh, Finnish flag plane, multi-object frame, and final QA screen.

Virtual Vectors runtime sequence GIF showing startup, vector object, textured object, flag, and final text phases

Timestamp Screen state
00:02.000 Startup/title screen: blue-green text and border lines on black.
00:12.000 First rotating filled cube/object, single green shade.
00:18.000 Orange faceted polyhedron with visible triangulated surface.
00:22.000 Green textured object; the texture comes from a decoded .DAT asset.
00:24.000 Intertitle: "realtime calculated objects".
00:32.000 Small rotating square/plane using the rainbow gfx2.dat style palette.
00:36.000 Multicolor transformed star/butterfly-like object.
00:42.000 Green shaded animal-like object, still drawn as polygon strips.
00:48.000 Rotating Finnish flag plane.
00:58.000 Four small colorful transformed objects in one frame.
01:10.000 Final "Quality Assurance by" text screen.

The capture ran to a normal DOSBox-X exit. Because sound was disabled, the visual timestamps are capture-stream timestamps, not music-row timestamps.

Runtime-To-Code Concordance

The GIF is a direct DOSBox-X runtime sequence, while the code evidence is split between a recovered wrapper/asset formats and a reconstructed hidden renderer. The table below keeps those evidence levels separate.

Runtime evidence Code path / data path What it proves
Startup/title screen at 00:02.000 Runtime command VV.EXE ODYSSEY2.MOD 5000, startup key gate, font1.dat decoded page, and the prepared text/border style. Text screens are part of the VGA show, not DOS text output after launch.
First green rotating cube/object at 00:12.000 Plain-text 3DG1 object files such as cube, cube2, cube3, and pyramid; face records already carry color indices. The early object phases can be driven by small parsed mesh files and flat polygon fills.
Orange faceted polyhedron at 00:18.000 3DG1 faces support triangles and quads; reconstructed pipeline rotates/projects vertices and fills face spans. The faceted look is consistent with polygon face records, not a pre-rendered animation frame.
Green textured object at 00:22.000 Decoded .DAT assets have 768 DAC bytes plus 64000 indexed pixels; f.dat/green texture family matches the capture. The object uses image/palette material from sidecar assets, though the exact hidden sampler is not recovered.
"realtime calculated objects" intertitle at 00:24.000 Same text/border screen family as startup and final QA screen. The demo itself labels the object renderer as realtime, matching the small mesh/texture asset pipeline.
Rainbow square/plane at 00:32.000 gfx2.dat decoded rainbow heat-map texture and reconstructed image-plane/polygon path. The runtime square is tied to a concrete decoded asset rather than guessed colors.
Star/butterfly object at 00:36.000 and animal-like mesh at 00:42.000 Hidden renderer likely applies the same rotate/project/fill pipeline to different mesh or packed-object data; torus has a dlz-like packed/binary prefix. These are bounded renderer reconstructions, not fully disassembled routines.
Finnish flag plane at 00:48.000 finn.dat is a direct 320x200 indexed flag image with its own palette. The flag frame strongly proves image-as-object or image-plane mapping from decoded sidecar data.
Four small objects at 00:58.000 Multi-object runtime frame plus small face-list/object assets. The renderer can transform several objects in one frame rather than just replaying one full-screen image.
Final QA text at 01:10.000 Text/border screen path and normal DOSBox-X exit after the visible sequence. The capture includes the intended end card rather than an external timeout tail.
Packed VV.EXE body MZ wrapper copies paragraphs backward, jumps into relocated dlz0-marked packed stream, and hides the main renderer. The article's exact code claims stop at the loader/asset formats; render-loop details are reconstructed from data and runtime evidence.
Silent capture with external ODYSSEY2.MOD ProTracker M.K. module, command-line module argument, and 5000 quality parameter. Audio is a real Sound Blaster/module path in the program, but the published visual timestamps are not music-synced.

The practical conclusion is that the media is trustworthy direct runtime evidence, the .DAT and 3DG1 formats are hard archive evidence, and the polygon/texture renderer is a bounded reconstruction until the hidden body is fully unpacked.

Archive Contents

Examined archive:

ea63af489297acea716130fcd5636c917dd968ed35fe7a39c07d6b326dbc5a24  vv.zip

Extracted files:

cube              370 bytes
cube2             185 bytes
cube3             197 bytes
cuboid           2303 bytes
demosite.com     1104 bytes
f.dat           64768 bytes
file_id.diz       139 bytes
finn.dat        64768 bytes
font1.dat       64768 bytes
ger.dat         64768 bytes
gfx2.dat        64768 bytes
odyssey2.mod   122986 bytes
pyramid           138 bytes
read.me           280 bytes
rulez.dat       64768 bytes
runme.bat          23 bytes
scotty.dat      64768 bytes
test.dat        64768 bytes
torus            1873 bytes
vv.exe          57321 bytes

File hashes:

aa2182c3f666ea66222422a9a5cf9f5af7a65c81135d266c050fcfdb68637208  cube
4e18fdadb54fe06132814388e8eaa8d6cea8cf61a67a037868fc8e998b588720  cube2
66043db5f478df8e7d3f7ffef42e1f158b60ea2d67bcd471bd9add2b8926af35  cube3
439208d7f911f20147382900abf8ad325d89190db63bb2d1f1bb591ff9101ca2  cuboid
ae4377ea5ad7ace3149992f111f8384a81a71b1d658cd2fe453291ab14b26d6f  demosite.com
6ac475a5e8221022efeca3f5b73c112f16cd5b28f0871fd0d7e1ad3a17e2c8bc  f.dat
9fbcf0474d6254be53b56e54027e5e5e1569ed18953f7135715c281d9900dae2  file_id.diz
862cf5b6218c36f86e5dbe53e1644812db1190e14d8a6ed5a9733ae301dea007  finn.dat
092dd130c8da1259696d546076d7cde07cad2586a236cf8a8743145b6fc5ad94  font1.dat
209523010c983eb7d70b57a4a7621cebd3a917f8894d882e2662b5b2bac6072c  ger.dat
053b6b617ce15e6984b9dc66f660f5ccfaf065d0000a343be62341db5d73333a  gfx2.dat
be85cac623fdd24db31896e7d78a84283c079421d783cd6e336e869ac00e94bb  odyssey2.mod
0d88357c4b824acf8c80a8f96d19fb853833f6d231883795e71f47470db8c9f0  pyramid
29347192f9ae1202e58e1d8857a3d5bfcf976b7113bb1c6b59eb60041e1808d0  read.me
8ac57d6d78ddfb8cc539b1c3ca63557790d2cd353da600c7d571ab7d5021c472  rulez.dat
9147e348e89bd1a8b23a23aedd02f41ec2d278b33e35e97bcfe36d5272a0e4ca  runme.bat
e351aac3a2996db4b71b761eeaad1ff21ea3d1f17818e126a71d9b65bcd9c67d  scotty.dat
1ef73fae68ad70f8f5eea16ac26f04167e42b065651bd9f799bcfef3f62fbbc5  test.dat
f82baf8927be9963191305b152154e4e2d3e7f30fdd830031b70e81f1f747707  torus
b661e8f15526b44f58d43cceae28fd5aa5ba8ec08aabfdd4b0b6fcfbd4ec74a8  vv.exe

RUNME.BAT is only:

vv odyssey2.mod 5000

The third argument is the music quality/speed tradeoff documented by READ.ME: higher values improve Sound Blaster quality and lower the graphics rate. The default package chooses 5000.

MZ Loader Shape

VV.EXE is an MZ executable, but the useful demo body is hidden behind a small custom wrapper:

file size        57321 bytes
MZ image size    57321 bytes
relocations      1
header bytes     32
min extra        0x1414
max extra        0xb414
entry CS:IP      0000:0000
entry file off   0x20
stack SS:SP      1aa3:7530
relocation       offset 0007, segment 0dfc

The MZ entry is the first byte after the 32-byte header. The first real code block is short:

0020: fc                    cld
0021: 06                    push es
0022: 1e                    push ds
0023: 0e                    push cs
0024: 8c c8                 mov  ax,cs
0026: 01 06 35 01           add  [0135h],ax
002a: ba 05 0e              mov  dx,0e05h
002d: 03 c2                 add  ax,dx
002f: 8b d8                 mov  bx,ax
0031: 05 a2 08              add  ax,08a2h

0034: 8e db                 mov  ds,bx
0036: 8e c0                 mov  es,ax
0038: 33 f6                 xor  si,si
003a: 33 ff                 xor  di,di
003c: b9 08 00              mov  cx,8
003f: f3 a5                 rep  movsw
0041: 4b                    dec  bx
0042: 48                    dec  ax
0043: 4a                    dec  dx
0044: 79 ee                 jns  0034h

0046: 8e c3                 mov  es,bx
0048: 8e d8                 mov  ds,ax
004a: be 52 00              mov  si,0052h
004d: ad                    lodsw
004e: 8b e8                 mov  bp,ax
0050: b2 10                 mov  dl,10h
0052: ea 0d 0a f6 15        jmp  15f6h:0a0dh
0057: 64 6c 7a 30           ; ASCII "dlz0", start of packed stream

That loop is not a general memory copy over bytes. It copies exactly one paragraph per iteration:

In effect:

source_seg = cs + 0x0e05;
dest_seg = source_seg + 0x08a2;

for (count = 0x0e05; count >= 0; count--) {
    copy_16_bytes(segment:source_seg, offset:0,
                  segment:dest_seg, offset:0);
    source_seg--;
    dest_seg--;
}

The block is moved from high source paragraphs to higher destination paragraphs, working backward so overlapping ranges survive. After the move, the stub loads a word from 0052h, seeds BP and DL, and far-jumps into the relocated/depacker code. The bytes at 0x57 spell dlz0, and the rest of the file is not sensible linear 8086 code. There is an MZ byte pair at file offset 0xdce2, but the surrounding data does not form a usable second MZ header by itself; it is most likely an incidental or packed-stream fragment.

The important limitation: I did not recover a clean unpacked executable image for this article. The loader and archive formats below are recovered directly; the inner render loop section is reconstructed from the external object files, decoded images, and captured output, and is labeled that way.

Decoded VGA Image Files

Virtual Vectors decoded DAT contact sheet

The eight .DAT files are not arbitrary data. Their size is the clue:

64768 = 768 + 64000
768   = 256 colors * 3 VGA DAC bytes
64000 = 320 * 200 one-byte pixels

The first 768 bytes are a VGA DAC palette with 6-bit channel values. The next 64000 bytes are a linear mode-13h style indexed image. Decoding is:

uint8_t pal[256][3] = file[0..767];
uint8_t pixels[320*200] = file[768..64767];

for (i = 0; i < 320*200; i++) {
    index = pixels[i];
    rgb.r = pal[index][0] << 2;
    rgb.g = pal[index][1] << 2;
    rgb.b = pal[index][2] << 2;
    out[i] = rgb;
}

The decoded contents line up with the captured sequence:

File Decoded role
f.dat Green noisy texture with a black oval/cutout.
finn.dat Finnish flag.
font1.dat 8x-ish title/font strip in the upper-left of a black page.
ger.dat German flag.
gfx2.dat Rainbow heat-map texture.
rulez.dat Green streak/noise texture.
scotty.dat 320x200 indexed still image.
test.dat Orange/yellow radial texture.

The engine can use these in two ways: as full-screen stills/intertitles, and as texture/palette sources for the rotating polygon objects. The Finnish flag visible around 00:48.000 comes straight from finn.dat; the green object at 00:22.000 matches the f.dat/green texture family; the small rainbow object around 00:32.000 matches gfx2.dat.

The likely loader inner loop is direct and cheap:

; after DOS read of 64768 bytes into a conventional-memory buffer
mov dx,03c8h
xor al,al
out dx,al              ; DAC write index 0
inc dx                 ; 03c9h
mov si,palette
mov cx,0300h
rep outsb              ; write 768 DAC bytes

mov ax,0a000h
mov es,ax
mov si,pixels
xor di,di
mov cx,7d00h
rep movsw              ; 64000 bytes to A000:0000

That exact code was not recovered from the packed body, but this is the minimal path implied by the byte layout, VGA target, and runtime frames. No per-row decompression is needed for these assets.

3DG1 Object Files

Four object files are plain text and start with 3DG1: cube, cube2, cube3, cuboid, and pyramid. The grammar is compact:

3DG1
vertex_count
x y z
x y z
...
face_vertex_count index0 index1 ... color
face_vertex_count index0 index1 ... color
...

Parsed counts:

File Vertices Faces Colors
cube 16 12 61, 190
cube2 8 6 1
cube3 8 6 161
pyramid 5 5 61, 211
cuboid 160 48 63

cube is two cubes in one file. It has 16 vertices: an outer cube using coordinates +/-10 and an inner cube using +/-5. Its first six faces use vertices 8..15 and color 190; the second six faces use vertices 0..7 and color 61.

The beginning of cube:

3DG1
16
10 10 -10
-10 10 -10
-10 -10 -10
10 -10 -10
10 10 10
-10 10 10
...
4 8 9 10 11 190
4 12 13 14 15 190
...

pyramid shows that faces can be triangles or quads:

3DG1
5
0 70 0
50 -50 50
50 -50 -50
-50 -50 -50
-50 -50 50
3 1 2 0 61
3 2 3 0 61
3 3 4 0 61
3 4 1 0 61
4 1 2 3 4 211

The parser is probably just integer token scanning, not a binary mesh format:

expect("3DG1");
vertex_count = read_int();

for (i = 0; i < vertex_count; i++) {
    vertex[i].x = read_int();
    vertex[i].y = read_int();
    vertex[i].z = read_int();
}

while (!eof) {
    n = read_int();             // 3 or 4 in the inspected files
    for (j = 0; j < n; j++)
        face[f].index[j] = read_int();
    face[f].color = read_int();
    face[f].count = n;
    f++;
}

The face records already contain the flat color. That means the renderer does not have to compute material shading for the simple cube/pyramid files; it only has to rotate/project, decide ordering/visibility, and fill the face with the stored palette index or a nearby shaded range.

torus is different. It starts with a binary prefix:

9d 89 64 6c 7a 00 44 07 f5 2b 00 71 15 ff 31

Then 3DG1 appears at offset 15, followed by non-ASCII bytes. Treating it as the same whitespace-tokenized format fails. The prefix includes 64 6c 7a, the same ASCII dlz bytes seen in the executable wrapper, so this looks like a packed or binary-transformed object rather than a damaged plain-text file.

Reconstructed Vector Pipeline

This section is a reconstruction from the visible frames and external mesh files, not a recovered listing of the hidden code.

The pipeline for the 3DG1 objects has to do the following work:

  1. Load a mesh: parse vertices and face records.
  2. Build rotation state: update angle counters per frame.
  3. Rotate every source vertex into camera/object space.
  4. Project each 3D point to screen coordinates.
  5. Build face work records from projected vertices.
  6. Reject or deprioritize back-facing faces.
  7. Draw each triangle/quad as a flat or texture-derived polygon.
  8. Wait for retrace or otherwise pace the frame.

A plausible fixed-point vertex loop for these data ranges:

for (i = 0; i < vertex_count; i++) {
    x = src[i].x;
    y = src[i].y;
    z = src[i].z;

    // rotate around X and Y using sine/cosine tables
    y1 = (y * cos_x - z * sin_x) >> SHIFT;
    z1 = (y * sin_x + z * cos_x) >> SHIFT;
    x1 = (x * cos_y + z1 * sin_y) >> SHIFT;
    z2 = (z1 * cos_y - x * sin_y) >> SHIFT;

    z2 += camera_distance;
    sx[i] = 160 + ((x1 * focal_length) / z2);
    sy[i] = 100 - ((y1 * focal_length) / z2);
    rz[i] = z2;
}

On a 386/33, the division is expensive. For small object counts like pyramid and cube, per-vertex idiv is fine. For cuboid with 160 vertices, the usual 1992 optimization would be a reciprocal table or a pre-scaled focal/z table. The archive does not expose that table, so the article should not claim one exists; it is simply the pressure point in the loop.

Face setup can be cheap because faces reference projected vertices:

for (f = 0; f < face_count; f++) {
    a = face[f].index[0];
    b = face[f].index[1];
    c = face[f].index[2];

    // 2D signed area after projection; also useful as a back-face test.
    cross = (sx[b] - sx[a]) * (sy[c] - sy[a])
          - (sy[b] - sy[a]) * (sx[c] - sx[a]);

    if (cross <= 0)
        continue;

    work[n].face = f;
    work[n].depth = average_z(face vertices);
    n++;
}
sort_or_bucket_by_depth(work, n);

For a small face list, insertion sort is enough. cube2 has six faces, pyramid has five, and even cuboid has 48. With no source image recovered, the safe statement is that it must have some painter ordering or face rejection path; otherwise the rotating filled cubes would self-overdraw incorrectly.

Polygon Fill Inner Loop

The captured objects are filled polygons, not wireframe-only vectors. The classic 16-bit inner loop is an edge-walker that turns each polygon into left and right x-coordinates per scanline, then fills horizontal spans in VGA memory.

For a flat-colored quad:

clear_edge_tables(ymin, ymax);

for each edge (v0 -> v1) {
    if (v0.y == v1.y)
        continue;

    if (v0.y > v1.y)
        swap(v0, v1);

    x = v0.x << 16;
    dx = ((v1.x - v0.x) << 16) / (v1.y - v0.y);

    for (y = v0.y; y < v1.y; y++) {
        x_int = x >> 16;
        left[y] = min(left[y], x_int);
        right[y] = max(right[y], x_int);
        x += dx;
    }
}

for (y = ymin; y <= ymax; y++) {
    x0 = clamp(left[y], 0, 319);
    x1 = clamp(right[y], 0, 319);
    memset(A000 + y * 320 + x0, color, x1 - x0 + 1);
}

The tight 8086/386 form is:

; ES = A000h, DI = y*320 + x0, AL = color, CX = span length
rep stosb

or, if it aligns the span:

; AH = AL = color, CX = word count, maybe one leading/trailing byte
rep stosw

The orange object around 00:18.000 exposes triangular facets. That suggests either triangulated mesh data or a quad split before fill. Since pyramid contains explicit triangles and cuboid/cube use quads, the face loop must handle both n = 3 and n = 4. A robust path is:

if (face.count == 3)
    fill_triangle(v0, v1, v2, color);
else
    fill_quad(v0, v1, v2, v3, color);

The green textured-looking object at 00:22.000 and rainbow square at 00:32.000 look more like palette/texture-indexed fills than pure flat color. There are two likely cheap variants:

The archive confirms texture sources exist (f.dat, gfx2.dat, test.dat); it does not expose enough code to distinguish the exact sampler.

The simplest texture span form would be:

for (x = x0; x <= x1; x++) {
    u += du;
    v += dv;
    A000[y * 320 + x] = texture[((v >> 16) * 320) + (u >> 16)];
}

But in 1992, for these small screen objects, a cheaper affine span likely uses fixed-point u/v increments and byte writes, not perspective-correct mapping. The captured flag and rainbow square do not show enough perspective distortion to prove perspective-correct sampling.

Text And Border Screens

The runtime uses a consistent black background, thin green/blue horizontal border lines, and blocky blue-green text. The decoded font1.dat is a prepared page containing alphabet/glyph material in the upper-left, so the hidden code likely copies glyph cells or pre-rendered text strips rather than calling BIOS text output after VGA mode setup.

The text screen path is probably:

load_or_decode_font_page(font1.dat);
clear_screen(0);
draw_border_lines(y_top, y_bottom);
for each character:
    copy glyph bitmap bytes into A000 at text position;
wait_or_delay();

This matches the timestamp sequence: title at 00:02.000, intertitle at 00:24.000, and final QA text at 01:10.000. The same color family appears on all three.

Audio File

ODYSSEY2.MOD is a 122,986-byte ProTracker module:

title      odyssey-part2
signature  M.K.
channels   4

Visible sample names include ST-09:moog1, ST-11:mobyreverse, ST-25:sd1, st-23:mobybd1+hhat, and ST-24:m1-choir.m. The archive documentation and FILE_ID.DIZ both point at a Sound Blaster setup. Because the module is external and the executable receives it as argv[1], the startup path must at least:

open(argv[1]);
read_protracker_header();
load_patterns_and_samples();
init_sound_blaster();
install_timer_or_dma_player();
run_visual_sequence(quality_parameter);
restore_audio_and_video();

The 5000 quality parameter is passed to the visual/audio runtime, not baked into the module. The README says increasing it improves sound and slows the graphics, which implies a software mixer whose interrupt/DMA buffer workload steals cycles from the render loop.

What Makes It "Virtual Vectors"

The demo is not just "vector cubes" in the abstract. The archive exposes a small asset pipeline:

The visible show then combines those pieces:

The code I could recover in detail is the loader and external format side. The main renderer remains packed, but the data and capture narrow its actual work: it is a conventional 386-era VGA object renderer with tiny face lists, fixed palette images, and span fills, not a pure line-vector demo and not an animation player.