Analysis model: gpt-5.5 xhigh

Luminous by Scoop - Technical Dissection

Scope

Luminous is the Scoop MS-DOS/GUS demo that placed second in the PC Demo competition at The Gathering 1995, between Complex's Dope and Sorrox's Over The Edge. This writeup is based on the public luminous.zip archive, the included release notes, recovered Linear Executable objects, static disassembly, and direct inspection of the graphics/music assets.

Public references:

Offset notation:

The LE files are not source-level reconstructions. Absolute operands in the disassembly are Watcom/PMODE data offsets before runtime relocation, so the stable references here are file/object offsets and the instruction behavior.

Credits and Release Context

The release text identifies this as a rushed The Gathering 1995 production by Scoop. It says one intended demo part was missing and a light-glow sphere/face sequence was substituted. It also explains the unusual file layout: the demo uses two protected-mode interfaces and a conventional-memory GUS player, and a packer/depacker bug forced the graphics, animations, and music to remain raw.

Credits from the release notes:

The release notes contain period contact details and distribution addresses; those are intentionally not reproduced here.

Archive Layout

Archive contents:

DOS4GW.EXE      254,556 bytes
FILE_ID.DIZ         124 bytes
LUMINOUS.000    778,592 bytes
LUMINOUS.001    581,360 bytes
LUMINOUS.002    431,291 bytes
LUMINOUS.003    179,237 bytes
LUMINOUS.004    621,231 bytes
LUMINOUS.005    683,160 bytes
LUMINOUS.006    246,049 bytes
LUMINOUS.EXE     73,492 bytes
READ.ME            4,015 bytes
SCOOP14.TXT       25,778 bytes
scene.org           1,989 bytes

Important hashes:

d251d6a3249e000e92a53a343eb024265ae0487cef136cf7a14b1a6a6f77550e  luminous.zip
f8d9b6c0a4f44024475daccbab8f530f6bfc817ae4d20639d5747f33ad0ae1ca  LUMINOUS.EXE
04f243359a0bac3d279605042ed620c125297f41f4326de589b3aaa7558c1722  LUMINOUS.000
4e5fea6c23e7cda1c04e4bdc9009140eb841511014cf3f2351a7a938c85ad5bd  LUMINOUS.001
badd77a0afa5b3889e60e2963e417a898afd3887aa58f03419aeff05463b9d62  LUMINOUS.002
2c405a58ca869ae176fefa7abc348d96c97a468d1dc77bb48934041400d384ca  LUMINOUS.003
f9b6710993faf4455e6a957b94f6aa9373d6a6ebd31027774b42915791a9fe7a  LUMINOUS.004
6151369ff534d1aa776ab76836822f29a67e6f136a2d6e29054b90386f940586  LUMINOUS.005
d105b63c345e9d20eeed00b22870307a78ce57b65e1a6ae8916876b04c0b5423  LUMINOUS.006

File Roles

The public archive is not one executable with appended assets. It is a small launcher, two protected-mode visual modules, two music modules, and three graphics containers.

LUMINOUS.EXE  DOS/4GW/Watcom LE launcher. Runs the PMODE/W demo/end modules.
LUMINOUS.000  PMODE/W LE main demo part.
LUMINOUS.006  PMODE/W LE end part.
LUMINOUS.001  DSM module, title "NES-TEA -PC-".
LUMINOUS.002  DSM module, title "AMORE".
LUMINOUS.003  320x200 8-bit PCX title image.
LUMINOUS.004  Separator-delimited set of nine 8-bit BMP images/stills.
LUMINOUS.005  Separator-delimited set of forty 160x100 8-bit BMP frames.
DOS4GW.EXE    Bundled DOS/4GW extender for the launcher layer.

LUMINOUS.000 and LUMINOUS.006 both contain:

PMODE/W v1.01 DOS extender - Copyright 1994, Daredevil and TranZ

That matches the README's warning that the demo ended up using more than one protected-mode interface. The top-level launcher is DOS/4GW/Watcom-shaped; the actual visual parts are PMODE/W LE modules.

LE Object Layout

The three executable files are MZ-wrapped Linear Executables with two objects: one code object and one data/BSS object. Their LE page maps are sequential page-number entries; the raw page data starts at the absolute file offset held in the LE data pages offset field.

LUMINOUS.EXE
  LE header:        0x2998
  data pages:       0x4e00
  pages:            10, 4096-byte page size, last page 1738 bytes
  entry:            object 1 + 0x013c
  stack:            object 2 + 0x2770
  object 1 code:    vsize 0x746d, stored 29,805 bytes
  object 2 data:    vsize 0x2770, stored 5,834 bytes plus zero-fill

LUMINOUS.000
  LE header:        0x1f30
  data pages:       0x11c00
  pages:            167, 4096-byte page size, last page 1291 bytes
  entry:            object 1 + 0xecac
  stack:            object 2 + 0x91f90
  object 1 code:    vsize 0x17469, stored 95,337 bytes
  object 2 data:    vsize 0x91f90, stored 582,923 bytes plus zero-fill

LUMINOUS.006
  LE header:        0x1f30
  data pages:       0x4800
  pages:            53, 4096-byte page size, last page 586 bytes
  entry:            object 1 + 0x392c
  stack:            object 2 + 0x2f790
  object 1 code:    vsize 0x703d, stored 28,733 bytes
  object 2 data:    vsize 0x2f790, stored 180,810 bytes plus zero-fill

All three entry points immediately jump into a shared Watcom startup/runtime tail. In the main part, for example:

LUMINOUS.000:obj1+ecac: jmp  0xed26
...
LUMINOUS.000:obj1+ed27: and  esp,0fffffffch
LUMINOUS.000:obj1+ed49: mov  ah,30h
LUMINOUS.000:obj1+ed4b: int  21h
...
LUMINOUS.000:obj1+ee06: int  31h

That is runtime setup, not an effect. It aligns the stack, queries DOS, manages DPMI/DOS memory, copies command-line/environment material, and then reaches the application code. This is why starting at the LE entry point and naming the first code "the demo loop" would be misleading.

Launcher

LUMINOUS.EXE has the two child module names in its data object:

obj2+0x0004  luminous.000
obj2+0x0011  PANIC : Couldn't execute demo.
obj2+0x0031  luminous.006
obj2+0x003e  PANIC : Couldn't execute endpart.

The shared DOS EXEC wrapper is at LUMINOUS.EXE:obj1+0x0c80. The hot part is:

obj1+0c91: push ds
obj1+0c92: pop  es
obj1+0c96: mov  [saved_ss],ss
obj1+0c9d: mov  [saved_esp],esp
obj1+0cbf: push eax
obj1+0cc0: mov  ah,0bh
obj1+0cc2: int  21h
obj1+0ccf: mov  edx,[ebp+0ch] ; child filename pointer
obj1+0cd2: mov  ah,4bh       ; DOS EXEC
obj1+0cd4: int  21h
obj1+0cd6: mov  ss,[saved_ss]
obj1+0cdd: mov  esp,[saved_esp]
obj1+0cf9: mov  ah,4dh       ; get child return code
obj1+0cfb: int  21h

So the public LUMINOUS.EXE is mainly a robust DOS runner. It preserves the real-mode stack/segments around the child process call, executes the requested module, restores state, then collects the return code. The visual engine lives in .000 and .006.

Asset Containers

Music

LUMINOUS.001 and LUMINOUS.002 begin with DSm 1a, the DSM module signature. Their embedded titles are:

LUMINOUS.001  "NES-TEA -PC-"
LUMINOUS.002  "AMORE"

Both contain the Jogeir Liljedahl / Virtual Dreams credit text in the sample metadata. The README credits Jogeir for the demo music.

PCX Title

LUMINOUS.003 is a 320x200 8-bit PCX image. It is the rendered Luminous title. The main binary contains multiple copies of the same simple PCX depacker, which skips the 128-byte PCX header and writes exactly 0xfa00 bytes, i.e. 320x200 chunky 8-bit pixels.

BMP Still Set

LUMINOUS.004 is not one BMP despite its first header. It is nine 8-bit BMP images separated by one byte 0xff before the next BM header:

0  256x256  66,614 bytes
1  256x256  66,614 bytes
2  320x47   16,118 bytes
3  256x256  66,614 bytes
4  320x400 129,078 bytes
5  320x200  65,078 bytes
6  256x256  66,614 bytes
7  320x240  77,878 bytes
8  256x256  66,614 bytes

The visual material includes textures, a font strip, a 320x400 rendered image, a 320x200 Scoop logo panel, and title/logo stills. The code frequently uses source + 0x436, which is the pixel-data offset for these 8-bit BMPs: 54-byte BMP header plus 1024-byte palette.

Glow Animation

LUMINOUS.005 is forty 160x100 8-bit BMP frames. The layout is exact:

40 * (17,078-byte BMP + optional one-byte separator)
= 683,160 bytes

Each frame is a prerendered zoom/light flare over a blue face/sphere-like image. This matches the release note that a missing part was replaced by a pre-rendered light-glow sequence. Technically it is cheap at runtime: decode or skip the BMP header, copy 160-byte rows, and use the palette hardware for most of the perceived motion/fade.

VGA Synchronization

The demo has small vertical-retrace gates repeated in the main and end modules. The common idiom is:

obj1+2a63: pushad
obj1+2a64: pushfd
obj1+2a65: mov  dx,03dah
obj1+2a69: in   al,dx
obj1+2a6a: test al,08h
obj1+2a6c: jne  2a69h   ; wait until not already in retrace
obj1+2a6e: in   al,dx
obj1+2a6f: test al,08h
obj1+2a71: je   2a6eh   ; wait for retrace to start
obj1+2a73: popfd
obj1+2a74: popad
obj1+2a75: ret

This is the standard VGA status-register bit 3 handshake. It avoids tearing and also gives the palette fades a stable rhythm. The code does not simply blast the DAC whenever it wants; the longer palette loops frequently wait for retrace between fade steps.

Palette Fades

The palette fade loops are one of the cleanest code families in the binary. The version at LUMINOUS.000:obj1+0x3cc2 takes a BMP palette and converts it to VGA DAC values:

obj1+3cc2: mov dx,03c8h
obj1+3cc6: mov al,[palette_start_index]
obj1+3ccb: out dx,al
obj1+3ccc: inc dx              ; 03c9h DAC data

; One entry:
obj1+3cdd: mov al,[ebx+edi+2]  ; BMP R
obj1+3ce1: shr al,2            ; 8-bit -> VGA 6-bit
obj1+3ce4: xor ah,ah
obj1+3ce6: cmp byte [fade_dir],0
obj1+3cef: add ax,[fade_amount]
obj1+3cff: sub ax,[fade_amount]
obj1+3d06: cmp ax,0
obj1+3d10: mov ax,0
obj1+3d14: cmp ax,3fh
obj1+3d1e: mov ax,3fh
obj1+3d22: out dx,al

Then it repeats the same clamp/write for green and blue:

obj1+3d23: mov al,[ebx+edi+1]  ; BMP G
...
obj1+3d69: mov al,[ebx+edi+0]  ; BMP B
...
obj1+3db2: inc [palette_index]
obj1+3db8: add [palette_offset],4
obj1+3dbf: dec cx
obj1+3dc1: jne 3cc2h

The important details:

PCX RLE Depacker

LUMINOUS.000:obj1+0x5832 is a compact PCX RLE decoder. There are near-copies at 0x747b, 0xae93, and elsewhere, probably because each visual module or part carries its own local loader code.

The loop state is:

source index: obj/static dword, starts 0
dest index:   obj/static dword, starts 0
source base:  input pointer
dest base:    output buffer pointer

The inner loop:

obj1+5865: mov edi,[src_index]
obj1+586b: add edi,80h
obj1+5871: add edi,[source_base]
obj1+5877: mov al,[edi]
obj1+5879: test al,0c0h
obj1+587b: je  588dh

; run packet
obj1+5881: and al,3fh
obj1+5883: mov [run_count],al
obj1+58c0: mov esi,[src_index]
obj1+58c6: add esi,81h
obj1+58cc: add esi,[source_base]
obj1+58d2: mov al,[esi]
obj1+58d4: mov cl,[run_count]
obj1+58dc: mov edi,[dest_index]
obj1+58e2: add edi,[dest_base]
obj1+58e8: cld
obj1+58e9: rep stosb
obj1+58f2: add [dest_index],run_count
obj1+58f8: add [src_index],2
obj1+58ff: cmp [dest_index],0fa00h
obj1+5909: jb  5865h

; literal packet
obj1+588d: mov ebx,[dest_index]
obj1+5893: add ebx,[dest_base]
obj1+5899: mov edi,[src_index]
obj1+589f: add edi,80h
obj1+58a5: add edi,[source_base]
obj1+58ab: mov al,[edi]
obj1+58ad: mov [ebx],al
obj1+58af: inc [src_index]
obj1+58b5: inc [dest_index]

This is a PCX-style RLE path tuned to the shipped image:

No per-line PCX logic is visible here. The file is trusted to decode to one linear 320x200 8-bit chunky screen.

Chunky Framebuffer Paths

The main visual parts use 320x200 mode-13h-style chunky buffers for several effects. A full frame is 320*200 = 64000 bytes, or 0x3e80 dwords.

At LUMINOUS.000:obj1+0x57c3:

obj1+57c3: mov edi,[work_buffer]
obj1+57c9: mov ecx,3e80h
obj1+57ce: mov eax,7f7f7f7fh
obj1+57d4: rep stosd        ; clear to mid-gray

obj1+57d6: cmp [mode_flag],0
obj1+57e3: call 5310h       ; one renderer path
obj1+5806: call 4e15h       ; alternate renderer path

obj1+580b: mov esi,[work_buffer]
obj1+5812: mov edi,0a0000h
obj1+5817: mov ecx,3e80h
obj1+581d: rep movsd        ; present 64 KB to VGA

The same 0x3e80 dword pattern appears throughout the demo. It is the simple presentation path: draw into system memory, then copy to VGA memory in one linear block.

There are smaller blitters for the forty-frame glow animation. The routine at LUMINOUS.000:obj1+0x8200 copies a 160x100 image into a 320-wide destination:

obj1+8200: mov [row],0
obj1+820a: mov esi,frame_pixels + source_row_offset
obj1+8215: mov edi,[dest_buffer]
obj1+8220: add eax,[dest_y]
obj1+8226: cmp eax,0c8h
obj1+8231: shl eax,2
obj1+8234: add edi,[row_offset_table+eax]
obj1+823a: add edi,[dest_x]
obj1+8240: mov ecx,28h
obj1+8246: rep movsd        ; 40 dwords = 160 bytes
obj1+8248: inc [row]
obj1+824e: add [source_row_offset],0a0h
obj1+8258: cmp [row],64h
obj1+825f: jb  820ah

That is the practical reason to store the glow as 160x100 frames. The blitter only copies half-width rows and lets the surrounding code position/fade them.

The same block has a 160x100 buffer clear/border helper:

obj1+8262: mov edi,3c498h
obj1+8267: mov ecx,0fa0h
obj1+826c: xor eax,eax
obj1+8272: rep stosd        ; 16,000 bytes

obj1+8275: mov edi,3c498h
obj1+827a: mov ecx,50h
obj1+827f: mov eax,40404040h
obj1+8285: rep stosd        ; top line/band
...
obj1+82b1: mov [edi],dl
obj1+82b3: mov [edi+1],dl
obj1+82b6: mov [edi+9eh],dl
obj1+82bc: mov [edi+9fh],dl
obj1+82c2: add edi,0a0h
obj1+82c8: dec ecx
obj1+82c9: jne 82b1h

Here 0xa0 is the 160-byte stride. The writes at 0, 1, 0x9e, and 0x9f draw a two-pixel left/right border.

Tweaked Planar VGA Path

The 320x400 BMP in LUMINOUS.004 is handled by a different path. Around LUMINOUS.000:obj1+0x9a30, the code switches into an unchained/planar VGA configuration and uploads the image plane by plane.

Setup:

obj1+9a73: mov ah,10h
obj1+9a75: mov al,1
obj1+9a77: mov bh,91h
obj1+9a79: int 10h
obj1+9a7b: mov dx,03c4h
obj1+9a7f: mov ax,0604h
obj1+9a83: out dx,ax       ; sequencer memory mode
obj1+9a85: mov dx,03ceh
obj1+9a89: mov ax,4005h
obj1+9a8d: out dx,ax       ; graphics controller mode
obj1+9a8f: mov dx,03d4h
obj1+9a93: mov ax,0014h
obj1+9a97: out dx,ax
obj1+9a99: mov ax,0e317h
obj1+9a9d: out dx,ax
obj1+9a9f: mov dx,03c4h
obj1+9aa3: mov ax,0f02h
obj1+9aa7: out dx,ax       ; enable all planes for clear
obj1+9aae: mov edi,0a0000h
obj1+9ab3: mov ecx,4000h
obj1+9ab9: rep stosd

The upload loop at 0x99f4 is the important bit:

obj1+99f4: mov ebx,0a0000h
obj1+99f9: mov esi,[bmp_base]
obj1+99ff: xor ecx,ecx
obj1+9a04: mov ebp,1f400h       ; 320*400 source bytes

obj1+9a09: mov eax,ecx
obj1+9a0b: and eax,3
obj1+9a0e: mov ah,[plane_masks+eax]
obj1+9a14: mov dx,03c4h
obj1+9a18: mov al,2
obj1+9a1a: out dx,ax            ; select VGA write plane
obj1+9a1c: mov edi,ecx
obj1+9a1e: shr edi,2
obj1+9a21: mov dl,[esi+ecx+436h]
obj1+9a28: mov [ebx+edi],dl
obj1+9a2b: inc ecx
obj1+9a2c: dec ebp
obj1+9a2d: jne 9a09h

This is a direct chunky-to-planar upload:

This is not a generic VBE path. It is low-level VGA register work for a tall planar image.

Realtime 3D Transform

The main 3D path begins with fixed-point rotation/projection code around LUMINOUS.000:obj1+0x5924. It uses 1024-entry sine/cosine tables: each angle is masked with 0x3ff, shifted left by two, then used as a dword table index.

Representative section:

obj1+5924: mov edi,[angle_z]
obj1+592a: and edi,3ffh
obj1+5930: shl edi,2
obj1+5933: mov ax,[x]
obj1+5939: mov ebx,[sin_table+edi]
obj1+5940: imul ebx
obj1+5944: mov ax,[y]
obj1+594a: mov ecx,[cos_table+edi]
obj1+5951: imul ecx
obj1+5953: add ebx,eax
obj1+5955: sar ebx,7
obj1+5958: mov [rot_x],ebx

The pattern repeats for the other axes. Projection is a guarded perspective divide:

obj1+5a50: mov ebx,[rot_y]
obj1+5a56: mov eax,[projection_scale]
obj1+5a5b: imul ebx
obj1+5a5d: mov ebx,[rot_z]
obj1+5a63: add ebx,[z_bias]
obj1+5a69: cdq
obj1+5a6a: cmp ebx,0
obj1+5a73: idiv ebx
obj1+5a75: add ax,[screen_center_x]
obj1+5a7c: mov [screen_x],ax

The code explicitly avoids a zero divisor by skipping the divide if the depth denominator is zero; a nearby branch also forces a non-zero depth in one case:

obj1+5a17: sar ebx,7
obj1+5a1a: jne 5a23h
obj1+5a20: or  ebx,1

So the transform pipeline is:

  1. Read object coordinates.
  2. Rotate through table-based fixed-point multiplies.
  3. Scale down with arithmetic shifts.
  4. Add depth bias.
  5. Perspective-divide to screen coordinates.
  6. Store screen X/Y and per-vertex attributes for the rasterizer.

Textured Polygon Rasterizer

The most interesting realtime inner loop is the texture-mapped polygon filler. There are a few variants, but the clearest starts around LUMINOUS.000:obj1+0x5ab5.

Vertex Sorting

The setup first sorts three vertices by Y. It swaps not only coordinates but also all interpolated attributes:

obj1+5ab5: mov eax,[y1]
obj1+5aba: cmp [y0],eax
obj1+5ac0: jle 5b38h
obj1+5ac6: mov eax,[y0]
obj1+5acb: mov ebx,[y1]
obj1+5ad1: mov ecx,[x0]
obj1+5ad7: mov edx,[x1]
obj1+5add: mov [y1],eax
obj1+5ae2: mov [y0],ebx
obj1+5ae8: mov [x1],ecx
obj1+5aee: mov [x0],edx
...
obj1+5b0a: mov eax,[v0]
obj1+5b0f: mov ebx,[v1]
obj1+5b15: mov ecx,[shade0]
obj1+5b1b: mov edx,[shade1]

Then it repeats the comparisons for the other two pairs. This is a hand-written three-element sort specialized for triangles.

Edge Slopes

After sorting, it converts the top Y from 16.16 fixed point into an integer scanline:

obj1+5c3e: mov eax,[y0]
obj1+5c43: sar eax,10h
obj1+5c46: mov [current_y],eax

It computes edge heights in integer scanlines and divides attribute deltas by height:

obj1+5c87: mov eax,[y2]
obj1+5c8c: sub eax,[y0]
obj1+5c92: sar eax,10h
obj1+5c9f: mov [remaining_scanlines],ax

obj1+5ca5: mov ebx,[y1]
obj1+5cab: sub ebx,[y0]
obj1+5cb1: sar ebx,10h
obj1+5cb4: mov eax,[x1]
obj1+5cb9: sub eax,[x0]
obj1+5cbf: cdq
obj1+5cc9: idiv ebx
obj1+5ccb: mov [left_dxdy],eax

The same slope calculation is done for texture coordinates and shade. When the current scanline reaches the middle vertex, the code switches to the lower edge slopes:

obj1+5da3: mov eax,[y1]
obj1+5da8: sar eax,10h
obj1+5dab: cmp [current_y],eax
obj1+5db1: jne 5e5eh
...
obj1+5dee: mov eax,[x2]-[x1] / ([y2]-[y1])

Span Setup and Clipping

Per scanline, the rasterizer updates both edges, converts fixed X to integer, and swaps the span endpoints if necessary:

obj1+5e5e: mov ecx,[left_x]
obj1+5e64: add ecx,[left_dxdy]
obj1+5e70: sar ecx,10h
obj1+5e73: mov [x_left],ecx

obj1+5e79: mov ecx,[right_x]
obj1+5e7f: add ecx,[right_dxdy]
obj1+5e8b: sar ecx,10h
obj1+5e8e: mov [x_right],ecx

obj1+5f49: cmp ecx,edi
obj1+5f4b: jle 5f90h
obj1+5f51: xchg edi,ecx
obj1+5f53: xchg edx,eax

The span length is x_right - x_left; non-positive spans are skipped. It clips the row and the horizontal bounds:

obj1+5fb8: cmp esi,0
obj1+5fbb: jle 6109h
obj1+5fc7: cmp ecx,140h      ; left >= 320?
obj1+5fcd: jge 6109h
obj1+6026: cmp [current_y],0c8h
obj1+6030: jae 6109h
obj1+6036: cmp [x_right],140h
obj1+6040: jl  6058h
obj1+6046: sub [span_len],x_right-320
obj1+6058: cmp [x_left],0
obj1+605f: jge 608dh
obj1+6065: neg x_left
obj1+606d: mov [skip_pixels],x_left

The row address uses a precomputed row-offset table:

obj1+5fd3: mov edi,[current_y]
obj1+5fd9: mov edi,[edi*4 + row_table]
obj1+5fe0: add edi,ecx

Inner Span Loop

The primary textured/shaded span loop is at LUMINOUS.000:obj1+0x609e:

obj1+609e: mov dl,[u_accum+2]       ; high byte of U
obj1+60a4: add [u_accum],du
obj1+60aa: mov dh,[v_accum+2]       ; high byte of V
obj1+60b0: add [v_accum],dv
obj1+60b6: mov cl,[texture_base+edx]
obj1+60ba: mov ch,[shade]
obj1+60c0: mov dl,[shade_table+ecx]
obj1+60c6: add [shade_accum],dshade
obj1+60cc: mov [edi],dl
obj1+60ce: inc edi
obj1+60cf: dec [span_len]
obj1+60d5: jne 609eh

That is the whole per-pixel renderer:

This is a classic 1995 software texture mapper: no multiplication in the pixel loop, no division in the pixel loop, just accumulator adds, two indexed loads, and one byte store.

Depth/Transparency Variant

There is a second span variant around LUMINOUS.000:obj1+0x679a:

obj1+679a: mov dl,[depth_accum+2]
obj1+67a0: cmp dl,[zbuffer_ptr]
obj1+67a2: jge 67d7h
obj1+67a8: mov [zbuffer_ptr],dl
obj1+67b0: mov dl,[u_accum+2]
obj1+67b6: add [u_accum],du
obj1+67bc: mov dh,[v_accum+2]
obj1+67c2: add [v_accum],dv
obj1+67c8: mov dl,[texture_base+edx]
obj1+67cc: cmp dl,0bch
obj1+67cf: je  67d7h
obj1+67d5: mov [edi],dl
obj1+67d7: inc zptr
obj1+67d8: inc edi
obj1+67d9: dec [span_len]
obj1+67df: jne 679ah

This path adds two features:

The demo therefore has at least two polygon paths: a fast lookup-shaded mapper and a depth-tested/color-keyed mapper.

Image/Logo Effects

Several parts combine the raw graphics with palette and framebuffer primitives rather than doing everything as realtime 3D.

The title/logo path uses:

The glow substitute part uses:

The large still/texture path uses:

This is typical for a rushed but polished 1995 PC demo: expensive SGI/raytraced imagery is stored raw, then wrapped in cheap realtime VGA transitions.

End Part

LUMINOUS.006 is a separate PMODE/W end module, not merely a data file. It has its own copy of the Watcom startup, video setup, palette routines, scroller, and 3D/object-show transform code.

Mode 13h Setup and Fade

The end part enters mode 13h at LUMINOUS.006:obj1+0x2ba9:

obj1+2ba9: pushad
obj1+2baa: pushfd
obj1+2bab: mov ax,0013h
obj1+2baf: int 10h

It then clears the DAC to black one entry at a time:

obj1+2bbb: mov dx,03dah
obj1+2bbf: in  al,dx
obj1+2bc0: test al,08h
...
obj1+2bc9: mov dx,03c8h
obj1+2bcd: mov al,[palette_index]
obj1+2bd2: out dx,al
obj1+2bd3: inc dx
obj1+2bd9: mov al,0
obj1+2bdb: out dx,al
obj1+2bdc: out dx,al
obj1+2bdd: out dx,al
obj1+2bde: inc [palette_index]
obj1+2beb: jne 2bc9h

Then it clears video memory:

obj1+2bf5: mov eax,0ffffffffh
obj1+2bfa: mov edi,0a0000h
obj1+2bff: mov ecx,3e80h
obj1+2c05: rep stosd

The end part's main fade routine at 0x2c4c is the same BMP-palette to VGA-DAC pattern as the main module: read BGR palette entries, output RGB DAC entries, add/subtract fade amount, clamp to 0..63.

End Scroller

The end text is embedded at LUMINOUS.006:obj2+0x0b72. It is a long lowercase credit/message string using $ as a control/separator. The text renderer is hand-built, not a BIOS text mode routine.

First, each frame scrolls the existing buffer:

obj1+2a02: mov edi,10964h
obj1+2a07: mov esi,10a64h
obj1+2a0c: mov ecx,46c0h
obj1+2a12: rep movsd
obj1+2a14: inc word [frame_subcounter]
obj1+2a1b: cmp word [frame_subcounter],1bh
obj1+2a29: mov word [frame_subcounter],0
obj1+2a33: call 2abch

Every 27 ticks it composes the next text line/glyph group. The measuring pass:

obj1+2abc: mov [text_index],0
obj1+2ac6: mov [line_width],0
obj1+2ad0: mov edi,[text_index]
obj1+2adc: mov al,[edi + text_base]
obj1+2ae4: cmp al,0
obj1+2aec: cmp al,24h          ; '$'
obj1+2af4: cmp al,20h          ; space
obj1+2afc: mov eax,14h         ; space width
obj1+2b06: sub al,61h          ; 'a'
obj1+2b08: shl eax,2
obj1+2b0b: mov eax,[glyph_width_table+eax]
obj1+2b11: add [line_width],eax

On $, it centers the measured text:

obj1+2b1f: shr [line_width],1
obj1+2b25: mov eax,80h
obj1+2b2a: sub eax,[line_width]
obj1+2b30: mov [cursor_x],eax

Glyph drawing uses obj1+0x2a39:

obj1+2a4d: mov edi,[glyph_index]
obj1+2a53: shl edi,2
obj1+2a56: mov esi,22cd2h
obj1+2a5b: add esi,[glyph_offset_table+edi]
obj1+2a61: add esi,[source_row_offset]
obj1+2a67: mov ecx,[glyph_width_table+edi]
obj1+2a73: mov edi,20964h
obj1+2a78: add edi,[dest_row_offset]
obj1+2a7e: add edi,[cursor_x]
obj1+2a85: rep movsb
obj1+2a87: add [source_row_offset],140h
obj1+2a91: add [dest_row_offset],100h
obj1+2a9b: cmp [source_row_offset],1b00h
obj1+2aa5: jbe 2a4dh

Important details:

So the end scroller is a proportional bitmap-font renderer with line centering, then a raw memory scroll.

End Object Show

The end module also contains a smaller copy of the same fixed-point 3D machinery. At LUMINOUS.006:obj1+0x20bf, it masks angles with 0x3ff, indexes dword sine/cosine tables, multiplies coordinates, shifts by seven, and performs guarded perspective divides exactly like the main part. This is consistent with the visible "object show" style ending and with the README's realtime model credits.

GUS-Specific Code

The end module includes direct Gravis UltraSound GF1 register access helpers around LUMINOUS.006:obj1+0x2fa4:

obj1+2fcd: mov dx,0103h
obj1+2fd1: add dx,[gus_base_delta]
obj1+2fd8: mov al,43h
obj1+2fda: out dx,al
obj1+2fdb: inc dx
obj1+2fdd: mov ax,[register_low_word]
obj1+2fe3: out dx,ax
obj1+2fe7: mov al,44h
obj1+2fea: add dx,2
obj1+2fee: mov al,[register_high_byte]
obj1+2ff3: out dx,al

Nearby code probes by writing 0xaa and 0x55 patterns and reading them back. This fits the release note that the GUS player influenced the executable split. The visual code does not call DOS or BIOS for audio in the inner rendering loops; sound hardware support is separated into these register/helper paths.

What Each Part Does

The public file split maps to the demo's runtime parts fairly cleanly:

LUMINOUS.EXE
  DOS/4GW launcher. Sets up a Watcom/DOS execution environment and runs the
  protected-mode child modules.

LUMINOUS.000
  Main visual module. Owns the title/logo stills, palette fades, PCX loading,
  160x100 glow-frame blits, planar 320x400 upload, 320x200 chunky buffering,
  and the realtime texture-mapped polygon renderer.

LUMINOUS.001 / LUMINOUS.002
  DSM music modules. Raw because the packer/depacker path was not usable for
  the release.

LUMINOUS.003
  PCX title/logo image. Decoded by the local PCX RLE loop into a 64 KB screen.

LUMINOUS.004
  Multi-BMP still/texture/font container. Supplies palettes, textures, logo
  material, a font strip, and larger rendered images.

LUMINOUS.005
  Forty-frame 160x100 prerendered glow animation. Runtime code blits rows and
  uses palette fades for presentation.

LUMINOUS.006
  End module. Re-enters video mode, performs palette fades, renders the
  proportional bitmap scroller, contains GUS helpers, and runs the final
  fixed-point object show.

Why It Is Large

The release note's size complaint is technically accurate. The archive is large because it ships:

The realtime code is not especially wasteful. The hot loops are compact and typical for the period: rep movsd for full-screen presents, rep stosd for clears, simple port loops for DAC fades, fixed-point matrix math outside the pixel loop, and accumulator-based texture spans inside the pixel loop. The bulk is in raw media and runtime scaffolding.

Bottom Line

Luminous is a hybrid: partly raw prerendered artwork wrapped with palette timing, partly a real fixed-point 3D engine. The most substantial realtime code is the texture mapper: it sorts triangles, computes edge and span slopes with integer divides, clips scanlines, and then shades pixels through a (shade, texel) lookup table with only byte loads/adds/stores in the inner loop. The showier image sequences are much more media-driven: PCX/BMP decode, row blits, planar uploads, DAC fades, and retrace waits.

That division also explains the production history. Scoop had polished art, music, and a functional software renderer, but the release was constrained by time and tooling. The finished demo leans on raw assets where necessary and spends its realtime budget where it matters: palette control, buffer movement, and the textured object renderer.