The console cell is the final display format; it does not dictate how much work can happen before the image reaches it.
Daniel Rippa — console-gpu v5 cockpit demonstration. Video published July 15, 2026. This companion article draws on the source code and project notes; the video has no captions.

The surprise is at the end of the pipeline

The video shows a terrain flyover with the coarse, distinctive texture of console output. The important detail is that those cells are the presentation destination of a real GPU pipeline. The scene is computed before it is reduced to the characters that the console can display.

In the v5 cockpit demo, a WSH JScript program coordinates the application through COM wrappers. RSL source is compiled into OpenCL C, and the OpenCL runtime compiles and dispatches the resulting kernels. A later reduction pass turns the pixel results into console character and attribute data. The compositor then presents the regions through the console API.

That division lets an old scripting host orchestrate work far beyond what I would want to calculate in a JScript pixel loop. The script describes state and sequence. Native code handles the platform boundary. The GPU evaluates the large collection of independent samples. Each part gets a job suited to it.

WSH JScript: camera, controls, application lifecycle
    → RSL source compiled to OpenCL C
    → GPU render kernels produce sub-pixel values
    → GPU reduction produces console cell data
    → region compositor
    → WriteConsoleOutputW
Animated frames from the terrain flyover, showing the generated console landscape.
A short animated preview of the flyby. The video above shows the full cockpit and movement.

The landscape is a function

The terrain is built from shared functions in terrain.rsl. A value-noise function interpolates samples from a deterministic hash. Several noise octaves contribute at different scales and amplitudes, producing the layered variation associated with fractal Brownian motion. The height function also blends a flatter area around the runway into the surrounding landscape.

This gives the renderer a compact way to ask for a height at any horizontal position. There is no need to load a large terrain mesh just to discover the surface along a ray. The scene kernel forms a ray from the camera through each sub-pixel and advances along it, comparing the ray's height with the terrain function.

When the ray crosses the terrain, the shader refines the interval through bisection. The demo exposes controls for octave count, marching steps, bisection steps, step scale, and minimum step. Those controls make the quality-cost relationship visible while the application is running. The configured frame target is 30; that is an application setting, not a benchmark claim for every device.

Light and atmosphere give sparse output depth

The shader adds more than a height silhouette. It calculates terrain lighting, a day-night factor, sky brightness, a sun disc, stars, clouds, fog, and runway markings. Water uses a compact shading approximation with a view-dependent term and a controllable sun glint. These operations help a restricted output medium communicate distance, orientation, and changing conditions.

The final scene output is luminance. A sixteen-entry palette turns the reduced values into the green-toned image visible in the demonstration. Changing the palette and changing the geometry are separate choices. The script keeps the console palette and the GPU's palette information aligned when the theme changes.

Character cells have physical proportions, so the camera calculation also accounts for cell aspect and the current viewport. Treating a console coordinate as an ordinary square pixel would distort the result. The terminal's dimensions and font metrics are inputs to rendering rather than incidental facts discovered after the image has been generated.

A cockpit assembled from regions

The application combines several shader programs: the flight view, a sonar-style display, a terrain profile, a map, a topographic view, and a terrain-height query. Prefixes keep their compiled kernel names distinct. Shared terrain functions let the programs work from the same underlying landscape.

The layout describes a large scene row, a row of instruments, and a status region. The scene and instrument areas are converted from terminal rectangles to sub-pixel rectangles before dispatch. Their shaders write into the appropriate regions, while the application framework manages borders, menus, and presentation.

Switching between the instrumented view and fullscreen changes which compositor regions are visible. The main layout does not need to be reinvented on every toggle. Resizing does require rebuilding the relevant surfaces and region attachments, because the terminal geometry has changed. Those are different events with different responsibilities, and the source makes that distinction explicit.

Reduction is a first-class stage

In this demo the GPU surface uses quadrant mode. A terminal cell corresponds to a two-by-two sub-pixel area, and the reducer chooses the character and palette attributes used to represent it. The final buffer is suitable for the console's character-cell presentation path.

The ordering in the application is easy to follow: upload the current parameters, dispatch the scene and instruments, run the small terrain query, reduce, and flush. Reduction has to happen before flushing because flushing consumes the already converted cell data. The compositor then combines the regions and decides what to present.

This boundary is what makes the experiment interesting to me. The GPU's result is a useful intermediate image. A console reducer is one way to consume it. Other presentation adapters can have different formats, while the scene mathematics retains its purpose. The v5 demonstration specifically follows the classic console path through WriteConsoleOutputW; the fact that the final display is text cells does not make the computation a text-only problem.

The educational value is in the visible chain

The broader console-gpu project explores GPU computation, language tools, and educational machine-learning experiments. The cockpit is a particularly tangible way to exercise the infrastructure: a wrong coordinate transform is visible, a stale buffer is visible, and a region boundary mistake is visible. The result gives the abstractions something concrete to answer to.

Controls connect to named commands and domain models. Shader parameters expose the cost of the scene. The terrain query feeds information back to the flight logic. Shutdown releases the GPU resources and captured mouse. The demo is a small application assembled from cooperating systems, and its source lets me follow those relationships.

I enjoy this use of older technology because it opens an unexpected path to current hardware. WSH, COM, a custom shader language, OpenCL, and a console screen buffer can form one understandable chain. The video shows that chain in motion; the source explains why it works.