Facet 2 · The Eight Layers

Strata of Reality

The Layer System — and what it reveals about geology, networks, civilization, and the deep structure of every complex system ever built
Facet 2NetworksGeologyArchitecture

Introduction

Every complex system in nature and civilization is organized in layers. Geological strata. The OSI network model. A city from bedrock to skyline. Maslow's hierarchy of needs. The atmosphere from troposphere to exosphere. The floor plan of a building from foundation to roof. Prospectus Celestial's eight-layer rendering system is not a programmer's invention — it is a rediscovery of the universal organizational principle of any system that must compose many kinds of things into a coherent whole.

"To understand any complex system, find its layers. The layers tell you what depends on what, what is foundational and what is contingent, what endures and what changes."

The Eight Layers of Prospectus Celestial

7
Debug / Highest Override
Cursor, diagnostic overlays, always-on-top UI · wraps to Layer 0 (Infinity Principle)
6
Notifications / Tooltips
Alerts, temporary messages, modal overlays
5
HUD / User Interface
Health bars, score displays, menus, buttons
4
Effects / Particles
Projectiles, explosions, weather, post-processing
3
Characters / Entities
Player, NPCs, enemies, interactive objects
2
World Objects / Props
Buildings, trees, platforms, non-interactive scenery
1
Terrain / Floor
Ground plane, roads, water surface, base environment
0
Background / Skybox
Sky, distant environment, parallax far planes · drawn first

Elements on Layer 0 are drawn first (painted behind everything). Layer 7 elements are drawn last (painted over everything). Within a layer, declaration order determines draw order. The default layer for unspecified elements is Layer 2.

The Geological Strata Parallel

Geological strata are the original layer system. The science of stratigraphy — reading the history of Earth from the sequence of rock layers — was formalized by William Smith in 1815 ("the Father of English Geology") and forms the basis of all modern geological dating. The principle is simple: lower layers are older; upper layers are newer; the sequence tells the story.

The parallel to PCML is precise: Layer 0 (background) is the oldest, most fundamental context — the geological basement rock beneath all more recent deposits. Layer 7 (foreground) is the most recent, most contingent — the topsoil, the deposit laid down today. Remove Layer 7 and the scene still makes sense. Remove Layer 0 and there is nothing for anything else to rest upon.

PCML LayerGeological StratumApproximate Age (Earth example)
Layer 0 (Background)Precambrian basement rock500 million — 4 billion years
Layer 1 (Terrain)Paleozoic sedimentary rock250 — 500 million years
Layer 2 (World objects)Mesozoic rock (age of dinosaurs)66 — 250 million years
Layer 3 (Characters)Cenozoic rock (age of mammals)2 — 66 million years
Layer 4 (Effects)Quaternary deposits (ice ages)12,000 — 2 million years
Layer 5 (HUD)Holocene soil (human history)0 — 12,000 years
Layer 6 (Notifications)Recent alluvium (this century)0 — 100 years
Layer 7 (Debug/Override)Today's topsoilThis year
Metaphor
"A geologist reads the history of the Earth by walking up through the layers — from basement rock (Layer 0) to topsoil (Layer 7). A PCML renderer reads the history of a scene the same way — drawing each layer in ascending order, compositing the past beneath the present."

The OSI Network Model

The Open Systems Interconnection (OSI) model, standardized by the ISO in 1984, defines seven layers of network communication. It is the most influential layer architecture in the history of computing — and it follows the same principles as PCML's layer stack: each layer depends only on the layer below it and provides services only to the layer above it.

OSI LayerNameFunctionPCML Analog
7ApplicationUser-facing protocols (HTTP, SMTP, DNS)Layer 7: Debug/Override — the user-facing top
6PresentationData formatting, encryption (TLS)Layer 6: Notification overlay
5SessionSession management, authenticationLayer 5: HUD/UI — the persistent interface
4TransportReliable delivery (TCP), flow controlLayer 4: Effects — dynamic, transient
3NetworkRouting, IP addressingLayer 3: Characters — the active agents
2Data LinkFrame transmission, MAC addressingLayer 2: World objects
1PhysicalElectrical signals, fiber, radio wavesLayer 0–1: Background/Terrain

The principle of layer encapsulation is identical in both models: a TCP segment does not know whether it travels over copper wire or fiber optic cable (Layer 1 is hidden from Layer 4). A PCML Layer 5 HUD element does not know whether Layer 0 is a photograph or a procedurally generated skybox — it simply renders above it.

Maslow's Hierarchy of Needs

Abraham Maslow's hierarchy (1943) organizes human needs into five layers: Physiological → Safety → Love/Belonging → Esteem → Self-Actualization. The structure is not arbitrary — it is a dependency graph. You cannot pursue Esteem (Layer 4) while Physiological needs (Layer 1) go unmet. Each layer depends on the foundation below it being stable.

This is identical to PCML's rendering guarantee: Layer 5 (HUD) is drawn only after Layers 0–4 have been processed. If the background (Layer 0) fails to load, the entire rendering pass is invalid. The hierarchy is both logical and operational.

Metaphor
"A person whose Layer 0 (food, water, shelter) is unstable cannot render Layer 7 (enlightenment, peak experience). A scene whose Layer 0 (background asset) is missing cannot render Layer 7 (debug overlay). The hierarchy is not a value judgment — it is a dependency specification."

The Layers of a City

A city is a layer system built over centuries. From bedrock to skyline, the layers of a modern city follow the same dependency structure as PCML:

Layer Architecture in Software Systems

Software engineering independently discovered the layer principle in multiple domains:

SystemLayersDependency Direction
Operating systemHardware → Kernel → System calls → Libraries → ApplicationsUpper layers depend on lower
Web stackHardware → OS → Database → Application server → Web framework → Browser → DOMUpper layers depend on lower
TCP/IP stackPhysical → Data Link → Network → Transport → ApplicationEach layer encapsulates the one below
Graphics pipelineVertex → Tessellation → Geometry → Rasterization → Fragment → OutputSequential; each stage feeds the next
PCML layer stackLayer 0 (bg) → Layer 7 (overlay)Higher layers draw over lower layers

The Grand Comparison Table

PCML LayerGeologyOSI ModelMaslowCityOS
0 BackgroundBasement rockPhysicalPhysiologicalBedrockHardware
1 TerrainSedimentaryData LinkSafetyUnderground infraKernel
2 World objectsMesozoicNetworkSafetyStreet gridSystem calls
3 CharactersCenozoicTransportLove/BelongingBuildingsLibraries
4 EffectsQuaternarySessionEsteemPublic spaceMiddleware
5 HUD/UIHolocene soilPresentationEsteemSignage/lightingUI framework
6 NotificationsRecent alluviumApplicationSelf-actualizationEventsApplication
7 Debug/OverrideToday's topsoilApplication (top)Peak experienceAirspace/ARDebug tools