Analysis model: gpt-5.5 xhigh, sol high
Last edited: 2026-08-25
Second Reality by Future Crew - Technical Dissection
Release year: 1993
Scope
Second Reality is Future Crew's Assembly 1993 winning MS-DOS demo. This page
does not try to re-tell the already over-documented cultural story. The useful
Chronologia angle is the shipped package, authored child sequence, source-code
renderers, patch behavior, and direct runtime evidence. This revision also
corrects an earlier media error: the tree clip was discussed beside the lens
renderer even though the source assigns those pixels to separate executables.
Primary artifacts used here:
- Scene.org Assembly 1993 file page: https://files.scene.org/view/parties/1993/assembly93/demo/2nd_real.zip
- Scene.org Assembly 1993 patch page: https://files.scene.org/view/parties/1993/assembly93/demo/2ndpatch.zip
- Future Crew source release: https://github.com/mtuomi/SecondReality
- Archive examined:
2nd_real.zip - Patch examined:
2ndpatch.zip - Source revision examined:
071a82eddb7a7390dbaa491a8a473e0e923a55c2
The original README.1ST states that the demo was released on 7 October 1993,
won the Assembly 1993 demo competition, requires a 386 with 570,000 bytes of
free conventional memory, and supports Sound Blaster, Sound Blaster Pro, Gravis
UltraSound, and a no-sound option. It also documents direct part starts:
| Parameter | Start point |
|---|---|
1 |
beginning |
2 |
title screen |
3 |
landscape scroller |
4 |
vector part |
5 |
end credits |
The 1994 2ndpatch.zip contains 2NDFIX.EXE. Its READ.ME describes the fix
as a workaround for a motherboard timer slow-down bug that could make the demo
crawl on some fast machines. The new runtime evidence uses the original
SECOND.EXE; the patch is examined as a historical compatibility artifact.
Package Layout
Scene.org's single 2nd_real.zip combines the two historical distribution ZIPs
described by the readme:
2nd_real.zip 2,122,910 bytes
README.1ST 4,222 release notes
FCINFO10.TXT 48,462 Future Crew information text
FILE_ID.DIZ 378 BBS description
SECOND.EXE 1,451,093 LZEXE-packed main executable
REALITY.FC 992,188 packed data/music/resource file
Hashes:
9dfdb9c312d736003cc363b151b6f366c481b3bd3bb78233cfff72ae677c5c95 2nd_real.zip
7fe7d8e28ceb4104a9a53310cc28f43e698446583d71f0d13016c28b7793b7a5 2ndpatch.zip
a0b637b1c6729aeee8874cb7de701f608fe6ec3028fd72652a962a3a2bd25d8f SECOND.EXE
cffb5839d0660f646c2474ff46452543997c3fc9469fa64401556c2d271aa63b REALITY.FC
6203fc2c67946298ce6ec8f1e4fa66e4a6d29150e1240497f66cd2cda1c72f9d 2NDFIX.EXE
SECOND.EXE is a DOS MZ executable detected as LZEXE 0.91 compressed:
file size 1,451,093 bytes
declared MZ size 27,073 bytes
header size 32 bytes
load image 27,041 bytes
relocations 0
entry CS:IP = 0651:0006
stack SS:SP = 0651:0074
2NDFIX.EXE is a much smaller MZ launcher:
file size 20,459 bytes
header size 32 bytes
load image 20,427 bytes
relocations 0
entry CS:IP = 04e7:000e
stack SS:SP = 07c2:0080
Strings in the patch launcher include SECOND.EXE, REALITY.FC, DATA\,
part names such as STARTMU2, BEGLOGO, TUNNELI, MNTSC, LNS&ZOO, and
MINVB, plus STMIK/Scream Tracker support strings and soundcard setup text.
That makes it more than a tiny binary patcher: it is a replacement launch path
that knows the same external files and part identifiers.
The Private Filesystem Inside SECOND.EXE
The 1,451,093-byte distribution file is not one enormous compressed program. Its MZ header declares only 27,073 bytes. The packer appends a private filesystem and puts an obfuscated pointer to it in the final four bytes.
The released footer is BA 3F 34 12, little-endian 12343FBAh.
MAIN/U2A.ASM XORs that value with 12345678h, producing 69C2h (27,074),
where the file contains the expected C0 0F marker:
| Range | Bytes | Meaning |
|---|---|---|
0..27,072 |
27,073 | declared loader MZ image |
27,073 |
1 | gap byte after the declared image |
27,074..27,075 |
2 | private-filesystem marker |
27,076..1,451,088 |
1,424,013 | 79 concatenated virtual files |
1,451,089..1,451,092 |
4 | XOR-obfuscated marker pointer |
MAIN/PACKING.INC compiles six words per entry: low position, filename
checksum 1, high position, filename checksum 2, low size, and high size. The
entry sizes account for the payload exactly. They describe 22 child
executables totalling 1,076,674 bytes, 53 vector-scene chunks totalling 293,248
bytes, and four other data files.
The resident loader makes this archive look like ordinary DOS storage. Its
interrupt 21h filter intercepts open (AH=3Dh), read (AH=3Fh), and seek
(AH=42h). On a checksum match it opens SECOND.EXE itself, translates the
child's file position into the embedded range, and decrypts reads in place:
key = filename_checksum_1 + filename_checksum_2
state = absolute_file_position * key
for each byte:
if state < F000h: byte ^= FFh
state += key // 16-bit wraparound
This is packaging obfuscation, not strong encryption. The packer also changes
each embedded child's first two bytes from MZ to EB FA; the custom MZ
loader explicitly accepts either 5A4Dh or FAEBh. A child can consequently
open a name such as TROLL.UP through normal DOS calls, while the release
still consists chiefly of SECOND.EXE and REALITY.FC.
Applying those authored algorithms reconstructs all 79 entries at their exact
shipped lengths. Seventy-five match the source tree after allowing only the
intentional two-byte EXE signature change. The exceptions are useful limits:
LNS&ZOOM.EXE differs by four bytes in length, START.EXE is 11,329 bytes
shipped versus 11,458 in the source, and the shipped U2A.EXE/U2E.EXE are
54,432/46,278 bytes versus 111,894/89,102-byte source copies. The released
source is therefore tightly tied to the product, but is not a bit-perfect
rebuild snapshot.
Representative reconstructed entries:
| Virtual file | Absolute offset | Bytes | Role |
|---|---|---|---|
ALKU.EXE |
206,902 | 31,103 | opening credits and horizon |
GLENZ.EXE |
374,314 | 57,206 | translucent polygon objects |
MNTSCRL.EXE |
489,614 | 77,047 | forest/mountain scroller |
U2A.EXE |
574,056 | 54,432 | first vector sequence |
U2E.EXE |
628,488 | 46,278 | second vector/city sequence |
TUNNELI.EXE |
808,708 | 33,038 | dot tunnel |
3DSINFLD.EXE |
901,660 | 28,208 | rolling height field |
CRED.EXE |
964,964 | 148,711 | illustrated credits |
PAM.EXE |
1,214,851 | 172,476 | opening animation |
TECHNO.EXE |
1,407,911 | 31,849 | EGA interference part |
REALITY.FC Starts With Music Data
REALITY.FC begins with a compact container header and then recognizable
Scream Tracker module material:
00000000 10 00 00 00 a0 f8 05 00 ...
00000010 55 6e 72 65 61 4c 20 5d 5b 20 2d 20 54 68 65 20
00000020 32 4e 44 20 52 65 61 6c 69 74 79 00 ...
0000003d 53 43 52 4d
Decoded as text, the title is:
UnreaL ][ - The 2ND Reality
The first two little-endian dwords are not random padding. They point to two embedded S3M modules:
| Container offset | S3M title | Orders | Instruments | Patterns | Visible credit evidence |
|---|---|---|---|---|---|
00000010h |
UnreaL ][ - The 2ND Reality |
80 | 44 | 77 | sample text says Start & End music and composed by Skaven/FC |
0005F8A0h |
UnreaL ][ / PM |
100 | 54 | 77 | instrument text says By Purple Motion of, Future Crew 1993, and Big thanx to Skaven / FC |
Both modules have SCRM at module offset 002Ch, tracker word 1300h, and
file-format word 0002h. The first module's early sample names include
HiStrings.HiQual(Marcato), Noisy StringBass (Mixed), Big Cymbal Hit (Mixed), Blipp (looped), SonixLead, and several StarShip samples. The
second module starts with text-like instrument names: By Purple Motion of,
Future Crew 1993, Big thanx to Skaven / FC, then greeting/name strings.
This matters for the visual clips because REALITY.FC is not just a late
bitmap bundle. The runtime shell and part launcher are wrapped around a shared
resource file whose first-class payloads include the music timeline. For a demo
as synchronized as Second Reality, the resource boundary is part of the
effect boundary.
Patch Launcher Part Names
The 1994 2NDFIX.EXE patch launcher carries a compact part-name region around
file offsets 0DC6h..0E32h. It is not a clean C string table; high-bit bytes
and small control bytes are interleaved with ASCII names. The readable anchors
are still useful:
0DC6h STARTMU2
0DDDh ALKU
0DE5h PAM
0DEAh BEGLOGO
0DFBh TUNNELI ; appears across flagged/control bytes
0E13h MNTSC
0E1Dh LNS&ZOO
0E2Eh MINVB
This table is the strongest available package-side map for the runtime
sequence. MNTSC appears immediately before LNS&ZOO and MINVB, supporting
a split between landscape, object, and later visual families without
pretending these strings are recovered renderer function names.
Authored Child Sequence And Resident Services
MAIN/U2.ASM supplies the exact sequence that the abbreviated patch strings
could only suggest. STARTMUS.EXE starts the resident music/timing layer;
START.EXE handles setup. The visual children then run in this order:
DDSTARS, ALKU, U2A, PAM, BEGLOGO, GLENZ, TUNNELI, TECHNO,
PANICEND, MNTSCRL, LNS&ZOOM, PLZPART, MINVBALL, RAYSCRL,
3DSINFLD, JPLOGO, U2E, ENDLOGO, CRED, ENDSCRL
partexecute clears the three copper callback slots after each child returns,
so a departing renderer cannot leave a stale interrupt target installed. The
command-line starts are part masks over this sequence, coupled to exact module,
order, and speed-adjustment restarts. They are authored entry points, not
timestamps reverse-engineered from video.
The children communicate through the Demo Interrupt Server on interrupt
FCh. Its services expose the current part start, frame wait and skipped-frame
state, exit state, loader calls, four 64-byte message areas, music row/frame
and synchronization values, copper callbacks, and video-mode state. This is
why separately linked programs can use incompatible VGA layouts without each
owning sound playback or global timing: the resident loader polls STMIK and
the keyboard, advances the copper counter, and supplies a common clock while
each child owns one renderer.
GLENZ: XOR Edge Events, Not Alpha
GLENZ/MAIN.C advances simulation separately from display. dis_waitb()
returns the number of elapsed ticks, and while (repeat--) applies every
missed update: the outer object's X and Y angles advance by 32 and 7 units,
wrapping at 3 * 3600. The object is rotated once, passed through a diagonal
scale plus translation matrix, and rotated again before projection. Before
frame 800 it is also passed through ccliplist; from frame 800 onward a second
object receives independent one-third-rate angles and scale. The bounce code
reverses and damps vertical velocity at impact, while the jello term expands
X/Y as it contracts Z. Frame skipping therefore changes neither the authored
rotation nor the squash-and-stretch trajectory.
The distinctive compositor is in GLENZ/NEW.ASM, not in a conventional
alpha-blended polygon loop. __newgroup converts every non-horizontal polygon
edge into a 16.16 X coordinate and slope, clips negative starting Y, and links
the edge into its first scanline. Identical shared edges are detected by
matching end Y, X and slope; their colour values are XORed so an internal
boundary can cancel rather than being drawn twice.
ng_pass2 then processes exactly 200 rows. It inserts newly starting edges,
insertion-sorts the active list by 16.16 X, advances every X by its slope, and
emits (absolute pixel position, XOR colour transition) records. The storage
provides 256 row heads and at most 512 16-byte edge records; raster X is clamped
to 1..319. Transitions landing at the same X are XOR-combined. Two 32 KiB
record areas alternate by XORing the stream pointer with 8000h. Finally,
ng_pass3 merges the current and previous transition streams. Only spans where
their active XOR states differ are rewritten, and each output byte is the
saved background byte ORed with the current indexed colour state:
for each non-horizontal polygon edge:
x = x0 << 16
dx = ((x1 - x0) << 16) / (y1 - y0)
link (x, dx, y_end, xor_colour) at y_start
for y = 0 .. 199:
add edges beginning on y; insertion_sort(active, by_x)
for edge in active:
emit(y * 320 + clamp(edge.x >> 16), edge.xor_colour)
edge.x += edge.dx
merge(current_transitions, previous_transitions):
XOR colours at each event
where current_state != previous_state:
video[position:end] = background[position:end] OR current_state
This explains both the translucent-looking overlap and the efficient repair of moving faces: transparency is an indexed XOR/OR composition rule, while the old transition stream identifies which spans actually changed.
TECHNO: Four Planes, Eight Pages, One Music-Row Pulse
TECHNO/KOE.C constructs sixteen 16-colour palettes. For each four-bit colour
index it counts the enabled bits, derives a base contribution, scales the RGB
channels by palette level and clamps them to the VGA DAC's 0..63 range.
waitborder() watches the shared music row. When the row changes and
(row & 7) == 7, it resets curpal to 15; each displayed frame uploads that
palette through ports 3C8h/3C9h and decrements the index. The flash therefore
has a precise score-driven attack and a 16-frame decay.
Two 16-by-256 signed-byte power tables precompute a * b / 15. For each
frame, doit1() clears an 8 KiB plane workspace, derives two rotating basis
vectors from the sine table, and sends eleven quads (c = -10 .. 10, step 2)
through asmbox. That routine XORs the clipped quad edges into a 40-byte by
200-row one-bit buffer. blit16 carries the preceding pixel state across each
row and uses a 256-entry lookup table to turn edge-transition bits into filled
spans; its hot loop is 200 rows by 20 unrolled word operations.
clear 8000-byte edge buffer
for each of 11 clipped quads:
XOR its four edges into the 1-bit rows
for each of 200 rows:
state = 0
repeat 40 source bytes:
transitions = source_byte XOR state
filled_byte, state = parity_lookup[transitions]
write filled_byte to the selected VGA plane
The selected VGA plane mask cycles 1, 2, 4, 8 after every eight pages, while
CRTC start address high selects page plv * 20h for plv = 0 .. 7. Later
variants add accelerating rotation, CRTC start-address scrolling and Attribute
Controller horizontal pel panning. The 16-colour image is consequently the
combination of four independently refreshed one-bit planes, with eight display
phases inside each plane—not a chunky 16-colour buffer copied once per frame.
The separately prepared mirrored-circle interference screens use shifted plane
images and palette cycling; they are related material, not this blit16 loop.
PANICEND: VGA-Latch Copies And A Geometric Collapse
PANIC/SHUTDOWN.C first precomputes 64 complete 768-byte palettes using
(white * 63 + original * (64 - white)) / 64. Its setup downsamples every
fourth source row into a 320-by-100 strip, then switches VGA Graphics Controller
mode 5 to 41h and enables all four Sequencer planes. In that mode a read loads
the VGA latches and a subsequent write replicates those latched plane bits;
PANIC/ASMYT.ASM::copyline can therefore move a planar row with only 80
movsw iterations.
The collapse radius follows a = a * 5 / 6, beginning at 32 and ending above
2, producing 32, 26, 21, 17, 14, 11, 9, 7, 5, 4 and 3. CRTC register 9 and
Graphics Controller register 5 receive 41h, the CRTC offset becomes 10, and
the map mask becomes 0Fh. On each step the code selects fadepals[63-a],
duplicates blank/top strips symmetrically around the centre, and maps source
row 400 * b / a into each narrowing destination band. It then restores
Graphics Controller mode 5 with 4005h, closes the remaining centre line from
X=20 toward X=160 in three-pixel steps, and pulses palette entry 1 for 60
frames with 31*cos(3*pi*frame/60)+32. This is a deliberately staged latch
transfer and raster-geometry collapse, not a generic bitmap scaler.
LNS&ZOOM: Offline Distortion, Unrolled Runtime Rows
The radial lens is expensive only during asset generation. LENS/CALC.C uses
a 150-by-120 workspace centred at (76,58), an elliptical Y term y * 9 / 8,
and 250 / pow(max(59^2 + 50^2 - radius_squared, 1), .69) with a small random
perturbation. It writes the resulting row offsets and source/destination deltas
into LENS.EX1 through LENS.EX4. LENS.EX0 is metadata: width, height, three
RGB shade additions, text, and random filler—not a fifth row table.
At runtime drawlens() walks the top and bottom halves symmetrically and calls
four band routines with shade bits 40h, 80h, C0h, and zero. The hot path
in LENS/ASM.ASM does not calculate a radius or divide. dorow enters a fully
unrolled 64-word body, performs indexed background reads from the precomputed
offset list, ORs in the band bits, and writes the pair. dorow2 consumes
source/destination delta pairs for displaced writes; dorow3 restores the
unshaded band. The later path is itself precomputed in pathdata1, and skipped
display ticks advance at most three path records before the next draw. The
visible lens is thus a compact interpreter for offline-generated address
lists, with its inner row body branch-free.
PLZPART: 16.16 Quad Edges And A Jump-In Filler
PLZPART/SPLINE.ASM splits path position into an integer segment and a
fractional index (position & 255) * 2. Eight outputs—including translation,
distance, object rotation and light rotation—are each a sum of four control
values multiplied by coefficients from four 64-by-8 banks. The 32-bit result
is shifted into the fixed-point output with shld.
PLZFILL.C::do_poly finds the top of a four-vertex polygon and walks both edge
chains. X, U and V and all three edge increments are 16.16 values; the texture
corners are fixed at (64,4), (190,4), (190,60), (64,60). For each Y run
it calls do_block. The assembly clips rows to 0..133, records previous and
new extents in clrtau, and converts X to planar byte positions with x >> 2.
For an interior wider than two bytes it enables all planes, divides U/V deltas
once by byte_count - 1, then jumps into the appropriate tail of a generated
200-entry unrolled writer whose bodies each emit two destination bytes.
Separate one- and two-byte paths use start/end masks so clipped edge pixels
preserve neighbouring plane bits. do_clear compares old and new extents row
by row and erases only the newly exposed intervals.
for each scanline run of the quad:
advance left/right 16.16 X,U,V edges
bytes = (right_x >> 18) - (left_x >> 18)
if bytes > 2:
du = (right_u - left_u) / (bytes - 1)
dv = (right_v - left_v) / (bytes - 1)
jump into tail of 200-write unrolled texture body
mask and draw the partial first/last planar bytes separately
clear(old_extent - new_extent), not the full frame
MINVBALL: 512 Three-Divide Projections And Exact Repair
The source/release boundary is unusually firm for this part. The reconstructed
7,395-byte MINVBALL.EXE is one of the shipped children matching its
MAIN/DATA source-tree counterpart after the container's EB FA/MZ
signature normalization. UNP restores that packed child to 10,372 bytes:
f4ecbf68fd60ebf73ed0e709b4d1b8fbbbda75ab58435d46db7e0fdb738ea071 packed MINVBALL.EXE
34847f16d9ce2859d5af19ce1765b6e212751aadc6f74ed7a7ceff03ca473a4a restored MINVBALL.EXE
34847f16d9ce2859d5af19ce1765b6e212751aadc6f74ed7a7ceff03ca473a4a DOTS/DOTS.EXE
The restored child is therefore byte-identical to the retained source build,
not merely a similar compile. drawdots begins at restored load-image offset
0D28h (file offset 0F28h) and agrees instruction-for-instruction with
DOTS/ASM.ASM.
Simulation Ticks And Display Frames Are Separate
The part owns 512 particles and a 512-entry shuffled update order. A call to
dis_waitb() returns the elapsed simulation-tick count. The inner
while (repeat--) loop consumes every missed tick, but each tick replaces only
one selected particle and advances the shuffled index modulo 512. drawdots
is called once after those updates and processes all 512 records exactly once.
If the machine misses two display ticks, the part advances two respawns and two
rotation steps before drawing one frame; it does not draw the intermediate
state.
The authored update ranges are exact:
| Frame range | One-record replacement |
|---|---|
1..499 |
three independent sine/cosine paths; zero vertical velocity |
500..899 |
X/Z ring of radius 55; y=dropper; vertical velocity -260 |
900..1699 |
frame-modulated X/Z ring; y=8000; vertical velocity -300 |
1700..2359 |
random X/Z and random Y below 8000; zero vertical velocity |
2360..2399 |
no record replacement; first palette-fade phase |
2400..2439 |
no record replacement; second palette-fade phase |
2440 onward until exit |
no record replacement or new palette calculation; drawing continues |
dropper starts at 22,000 and loses 100 per simulation tick until it reaches
4,000, so that descent lasts exactly 180 ticks. The shuffled order means a
whole population takes 512 simulation ticks to adopt a new range's equation;
the scene transition is a rolling replacement, not an instantaneous object
swap.
The 16-Byte Record And Projection
Each record is eight words:
+00 x +02 y +04 z +06 old shadow address
+08 old ball address +0A/+0C unused +0E vertical velocity
The sine table is scaled by 64 before the assembly loop. The exact depth path uses the high words of two products independently:
depth = high16(z * rotcos) - high16(x * rotsin) + 9000
t = arithmetic_shift_right_32(x * rotcos + z * rotsin, 8)
screen_x = (t + arithmetic_shift_right_32(t, 3)) / depth + 160
shadow_y = 524288 / depth + 100
ball_y = (y << 6) / depth + 100
The assembly contains a conspicuous mov ax,ax and subtracts an old BX from
the low product word in the depth calculation. That low result is discarded,
and the following instruction uses SUB DX,CX, not SBB; the effective depth
really is the independent high-word equation above. The horizontal sum, by
contrast, propagates its carry and uses SHRD/SAR as a signed 32-bit shift.
Unsigned comparisons against 319 and 199 reject negative coordinates as well
as values beyond the right or bottom edge.
Gravity and bounce happen after the shadow passes clipping. Each displayed
frame adds gravity to velocity and velocity to Y. At y>=8105, the new
velocity is (-velocity * gravityd) >> 4; the normal gravityd=13 retains
13/16 of the speed in the opposite direction. The corrected velocity is added
once more before storing Y, pulling the record back from the floor rather than
leaving it beyond the boundary.
Fixed Footprint, Depth Shade, And Old-Frame Cost
Depth does not resize a ball. (depth >> 6) & ~3 is a byte offset into three
dword tables, equivalent to selecting entry floor(depth/256). Those tables
provide a fixed 2/4/2-pixel footprint: two bytes at row+1, four at the next
row, and two at row+641. Only the palette indices change with depth. The
shadow is a separate two-byte 57h,57h mark at
y=524288/depth+100.
The record retains addresses, not saved pixels. bgpic is a pristine 64,000-
byte copy of the initialized Mode 13h background. On the fully visible path,
each particle restores its old two-byte shadow and old 12-byte ball from that
copy, then writes the new two-byte shadow and eight-byte ball:
| Per displayed frame | One fully visible particle | All 512 particles |
|---|---|---|
| signed rotation multiplies | 4 | 2,048 |
| signed perspective divides | 3 | 1,536 |
| static-background reads for repair | 14 bytes | 7,168 bytes |
| framebuffer repair writes | 14 bytes | 7,168 bytes |
| new shadow/ball writes | 10 bytes | 5,120 bytes |
| total framebuffer writes | 24 bytes | 12,288 bytes |
| depth-table reads | 8 bytes | 4,096 bytes |
A floor bounce adds one multiply for that record. If only the projected ball Y clips, the loop has already replaced the shadow; it restores the 12 old ball bytes but emits no new ball, reducing that record to 16 framebuffer-write bytes. If X or shadow Y clips, it restores both old shapes and skips gravity, the ball projection, and all new drawing.
There is no Z sort and no rectangular masked sprite. Input order is painter
order, the footprint is emitted by one word, one dword, and one word store, and
cleanup touches exactly the old footprint. The fully clipped branch at 0E83h
also exposes a real fragility: after restoring the old shadow it stores the low
word from the last background dword into the shadow-address field. That is not
a valid invalid-address sentinel. It is present in both the released child and
the retained source build, so the authored trajectories—not a robust clip-state
protocol—are what keep this sparse repair scheme visually stable.
3DSINFLD: A Generated 192-Depth Column Program
COMAN/DOLOOP.C is a code generator: it emits a 5,230-line theloop.inc,
eliminating the runtime depth-loop branch. The generated schedule samples
depths 0 through 64, then 66, 68 ... 190; at 64 the X/Y wave increments double.
Each stage advances indices through two 32,768-word wave tables, adds
zwave[j] = 16*sin(6*pi*j/192), and subtracts 240. Its projection accumulator
uses a 2,560 step and custom word-swapped carry arithmetic rather than ordinary
16.16. A hidden sample performs no fill, while a newly visible sample writes
upward in 160-byte steps—up to three pixels per straight-line block—before
rechecking the terrain envelope.
screen = bottom_of_column
for depth in [0..64, 66, 68, ... 190]:
height = wave1[x] + wave2[y] + zwave[depth] - 240
if ray_height < height:
colour = (height + 120 - depth/8) >> 1
while ray_height < height:
screen[0] = colour; screen -= 160
ray_height += depth * 2560
ray_direction += 2560
ray_height += ray_direction
if depth >= 64: ray_height += ray_direction
COMAN/MAIN.C derives two rotating ray bases and invokes that column program
160 times. Odd and even columns are separated into 80-byte groups, then
docopy uses plane masks 03h and 0Ch and 20 unrolled dword stores per row
to assemble 140 display rows. Alternating CRTC starts select the two page
groups. This is front-to-back horizon filling over generated code, not a mesh
of polygons.
VISU: 2.14 Matrices And Ordered Five-Plane Clipping
The shared vector engine defines one fixed-point unit as 16384 (unitshr=14)
and uses unsigned 16-bit angles, where 65,536 represents one turn.
VISU/ACALC.ASM::_calc_rotate evaluates each transformed coordinate as three
signed 32-bit products and sums, shifts right 14, and adds translation.
_calc_project clamps near Z for safe division while preserving a near flag,
flags far points, then computes X and Y by signed multiply/divide and
adds the screen centre. Its defaults are Z 256..1,000,000,000, multipliers
250/220, centre (160,100), and screen bounds 0..319 by 0..199. Projection
also records the four screen-boundary bits.
VISU/ADRAW.ASM::draw_polylist computes both the bitwise AND and OR of all
vertex visibility flags. A nonzero AND trivially rejects a polygon whose every
vertex lies beyond the same boundary; a zero OR bypasses clipping. Otherwise
VISU/ADRAWCLP.ASM::newclip clips near Z first because a behind-camera vertex
has no valid screen coordinate, then runs only the up, down, left and right
passes named by the aggregate OR. Near intersections are calculated in 3D and
projected; screen intersections use a 0..16384 fraction
distance_to_boundary << 14 / total_distance to interpolate the other
coordinate. The active Gouraud path uses the same fraction for intensity; the
retained clipper does not interpolate texture coordinates despite comments and
reserved fields suggesting that extension. Each pass suppresses duplicate
output vertices and swaps between two temporary polygon buffers. This ordered
pipeline explains how the city flight can cross the camera plane and screen
edges without feeding invalid projected points to its polygon drawers.
Corrected Media-To-Source Ledger
The source release removes the ambiguity left by the patch strings.
MAIN/U2.ASM gives the authored child order, while individual build scripts
name the executable produced by each source directory. The published GIFs are
therefore mapped as follows:
| Published clip | Authored owner | Source proof and evidence boundary |
|---|---|---|
| opening shaded landscape | ALKU.EXE |
MAIN/U2.ASM launches ALKU; ALKU/ owns the planar opening. |
| near-white title fade | PAM.EXE / BEGLOGO.EXE title transition |
The loader runs those children consecutively before GLENZ; the timestamp-less GIF is not used to invent their exact cut point. |
| nested translucent polyhedra | GLENZ.EXE |
The loader labels this child Glenz; GLENZ/ contains its polygon renderer. |
| point tunnel, rings, white transition | TUNNELI.EXE for the opening dot portion only |
The GIF crosses visibly distinct material and has no surviving absolute source timestamp. The later rings/white portion is not assigned to a child here. |
| foliage and pink geometric form | MNTSCRL.EXE |
FOREST/X.BAT copies READ2.EXE to MAIN/DATA/MNTSCRL.EXE. This is the forest/mountain part, not the lens. |
| face, lens and zoom sequence | LNS&ZOOM.EXE |
LENS/MAKEFILE copies LENS.EXE to MAIN/DATA/LNS&ZOOM.EXE; decoded LENS.EXB is the exact face/corner-object source image. |
| rolling blue surface | 3DSINFLD.EXE |
COMAN/MAKEFILE copies its output to 3DSINFLD.EXE; the script calls the part Comanche = 3D-Sinusfield. |
| late city flight | U2E.EXE / VISU |
The second vector child consumes the retained city scenes, models and camera data. |
This ledger controls the placement and wording below. A GIF proves visible runtime behavior; source proves the owning child and mechanism. Neither is silently substituted for the other.
Direct Silent Runtime And Present Provenance Limit
The original analysis pass recorded a silent DOSBox-X 2026.01.02 run of the
unpatched SECOND.EXE with no part selector. Its setup selected Sound Blaster
Pro, High quality so the demo's music-position machinery could synchronize
the visuals, while SDL sent host audio to a dummy device. The recorded working
capture had one lossless FFV1 video stream and no audio stream.
Machine: S3 VGA, 16 MB RAM
CPU: normal core, fixed 50,000 cycles
Memory: XMS and EMS enabled
Main path: SECOND.EXE, no argument, no keys after launch
Main capture: 957.0 seconds, all visual stages and nearly all credits
End check: SECOND.EXE 5, the documented original ending start
Final state: distribution/contact screen and DOS prompt at about 7:40
The run notes say the main capture reached the execution-cell ceiling roughly
half a minute before the preserved 16:29 presentation endpoint. A second run
used documented parameter 5 and reached the contact screen and DOS prompt.
Those notes explain how the GIF set was produced, but the two full working
captures and their extraction log are no longer in the repository. This page
therefore does not present the old run summary as freshly reproducible proof.
The eight published GIFs are each six seconds at 10 fps. Their original full-run extraction timestamps were not recorded in the repository, and the 957-second working capture is no longer present locally. This revision therefore does not invent absolute timestamps. It verifies every GIF across its full duration, uses authored order and build outputs only where the visual identity is distinctive, and leaves mixed or ambiguous material explicitly unassigned.
The opening clip belongs to ALKU.EXE. ALKU/MAIN.C and its tweaked VGA code
use a 320x400 planar layout and separate palette work for the horizon and
credits. The runtime shows a densely shaded landscape moving below the star
field while credit text fades independently:

The loader places PAM.EXE and BEGLOGO.EXE consecutively in the title
transition. The timestamp-less clip is assigned only to that combined title
family: it shows the washed-out blue SECOND REALITY emblem and central
creature gaining contrast through a near-white fade, but cannot establish the
exact hand-off between the two children:

GLENZ.EXE owns the nested polyhedra. Its source defines explicit points,
edges and polygons, then turns sorted 16.16 edge crossings into XOR colour
transitions. The visible “transparency” is indexed XOR/OR composition rather
than alpha blending. Overlapping faces reveal the red outer shell and smaller
multicoloured inner polyhedron as they rotate separately:

The opening portion of this clip matches TUNNELI.EXE.
TUNNELI/ROUTINES.ASM retains old point positions, erases them incrementally,
and plots new projected points through a 200-entry row-offset table. Its hot
path replaces only 64 points per call in a 7,000-position history ring:
repeat 64 times:
A000[old_position] = 0
x = point.x + moving_x
y = point.y + moving_y
if x < 320 and y < 200:
position = row_offset[y] + x
A000[position] = 15
old_position = position
The long trail is retained state, not a full clear/redraw. The GIF then cuts to concentric rings with changing radius/spacing and fades toward white. Because the retained six-second GIF has no absolute source timestamp, this article does not pretend the later ring/white frames belong to the same child:

The foliage clip is MNTSCRL.EXE, built from the FOREST/ directory. Static
foreground leaves mask a blue cloud-textured background while a pink hollow
geometric form rotates, enlarges, and passes behind them. The crisp occlusion
shows layer order. This clip must not illustrate LNS&ZOOM.EXE or its lens
offset tables:

The face clip belongs to LNS&ZOOM.EXE, built by LENS/MAKEFILE. The source
asset LENS.EXB (64,784 bytes; SHA-256
4f76b23b3931ee15b4b348978bb5b51794a0137de76b6f40ea7d8644f1b267dc)
decodes to the exact central head and blue-grey corner objects visible here.
LENS/CALC.C performs the expensive radial distortion offline, using a
250 / max(59^2 + 50^2 - radius_squared, 1)^0.69 scale term with small
perturbations. It writes four row tables, LENS.EX1 through LENS.EX4;
LENS.EX0 holds metadata. The runtime consumes the four lists to draw three
palette-shaded classes and one unshaded restore class before its
rotating/zooming image path. The excerpt visibly rotates, shrinks, and
multiplies copies into a repeated depth-like field. Unlike the previous
article revision, this is the clip beside the lens/zoom explanation:

The blue height field is 3DSINFLD.EXE, built from COMAN/. Its generated
column walker advances through two 32,768-entry wave tables front-to-back and
fills only newly exposed vertical intervals into alternating VGA pages. At
each depth it projects the summed height; if the result rises above the
highest screen Y already filled, it paints only that newly visible interval.
Occluded samples cost table and projection work but no fill. The runtime shows
a continuous rolling surface rather than polygon edges:

The late city flight is inside U2E.EXE and the shared VISU vector engine.
VISU/ACALC.ASM supplies fixed-point matrix operations and several rotation
orders. ADRAWCLP.ASM clips against near Z and then the four screen boundaries,
interpolating Gouraud intensity—but not texture coordinates—when it creates a
boundary vertex.
The retained 3D Studio city projects, ship models and VUE camera data match the
banking camera following a small craft between flat-shaded buildings and green
low-polygon forms:

CRED.EXE later uses a 320x400 split-screen illustrated-credit layout, while
ENDSCRL.EXE switches to 640x350 16-colour EGA and scrolls by changing the
display start. Continuity belongs to the loader and DIS, not to one universal
framebuffer.
Runtime-To-Package Concordance
The runtime shows sharply different authored phases under one loader and shared
REALITY.FC timeline. The source independently proves that ALKU, PAM,
BEGLOGO, GLENZ, TUNNELI, MNTSCRL, LNS&ZOOM, 3DSINFLD, and U2E
are separate child executables; that conclusion no longer rests on visual
difference alone.
The readme's part parameters and patch-launcher anchors are coarse secondary markers. The source scheduler, extracted 79-entry filesystem, build outputs, and child code now provide the exact architectural map that the earlier article incorrectly said was still missing. They do not repair the absent GIF extraction timestamps; binary/source ownership and clip provenance remain separate claims.
The 1994 timer patch remains historically relevant: its note says some fast motherboards could make the demo run only a few frames per second. The original capture notes say it was not needed in that machine profile. The current audit can verify the published pixels, the retained source and the reconstructed container; it cannot retroactively recover absolute timestamps that were never recorded with the GIFs.