3D scenes for AI tools

Cogniform

A 3D engine that lets software and AI tools change a scene, then inspect images and object data from the same scene version.

Early, unreleased engine. The linked capture is a small local cube example, not a general AI benchmark.

Color observation of the reference cube against a dark backgroundColor
Grayscale depth observation of the same reference cubeDepth
Colored faces showing the reference cube's world-space surface directionsWorld normals
Single palette-colored silhouette identifying the reference cubeEntity identity
Actual captures / Four views of one frame

Latest verified change · CF083 / PR #84 ↗ · Merged

MCP images with a canonical observation behind them

CF083 adds optional bounded PNGs for color, depth, normals and entity IDs to observe_scene. COGOBS01 remains authoritative. Complete PNGs are capped at 1 MiB; visibility PNGs reject, and presentation failure preserves the prior retained resource.

Verified · CF083 / PR #84 · 11de27aa4f14

Accepted architecture · CF085 / PR #86

Bounded glTF scene import contract

Accepted ownership, identity and lifecycle design. The runtime still rejects glTF scenes and nodes; implementation has not landed.

Reviewed main head · 618312ce6c93

Read the source decision ↗

Read the architecture note →

Source checked . Documentation and retained evidence review, not a new runtime test.

Read change evidence ↗

Professional relevance

Useful for experiment design, simulation-based diagnosis and machine-readable feedback. Recorded results remain bounded by their original test conditions.

Explore the engineering background →

Inspect the latest evidence

Color · Depth · World normals · Entity IDs

  1. Validate request. Reject visibility PNG before service creation.
  2. Prepare both views. Canonical envelope first, then optional PNG up to 1 MiB.
  3. Commit complete result. Replace retained resource only after every step succeeds.
Contract diagram derived from CF083. PNG is a diagnostic view; COGOBS01 retains exact numeric values, stable identities and causal metadata.

Omitting presentation preserves the previous result shape. Failed image preparation preserves the previous retained resource. Display colors can collide, and PNG work is cooperatively bounded rather than preemptible. This diagram is not a new rendered capture.

Inspect pinned MCP image contract ↗

In plain terms

Give an AI tool a scene it can inspect, including what each object is and how far away it is.

Why it matters

A picture alone does not tell a software tool which object it is looking at. Cogniform returns a view of the scene together with data that helps a tool interpret it.

Follow the example, step by step
  1. Describe a scene

    Supply objects and their positions through a structured command.

  2. Keep a numbered version

    The engine checks the change and records the resulting scene version.

  3. Inspect the result

    Color, distance, surface direction and object identity all refer to the same version.

Decision and trade-off

Validate a patch before changing the world

Documented approach

The accepted atomic-world decision uses preflight over touched entities, followed by a prepared commit plan. Stable external IDs remain separate from recyclable internal ECS handles.

Alternative and scope

The record considers cloning the full ECS before each patch and applying changes before attempting rollback. It rejects whole-world copying for sparse edits and the partial-mutation risk of undo-based recovery.

Cost of the choice

Entity and idempotency capacities are bounded and fail closed. Allocation failures and internal invariant panics are process-fatal, rather than recoverable rejected patches.

What the evidence establishes

This is the accepted CF002 decision record, not a fresh benchmark or a statement that later features were absent forever. The current profile and README describe the subsequently expanded engine.

Read the decision source (opens in a new tab)
Source-backed system map

A world and its evidence

Atomic world revisions and revision-linked observations sit behind bounded local adapters. The envelope detects corruption; it does not authenticate a remote caller.

A world and its evidenceLOCAL INTERFACE: Inherited streams / MCP. Bounded requests; no listener. AUTHORITATIVE WORLD: Atomic, revisioned scene. Deterministic hierarchy and replay. OBSERVATION EVIDENCE: Color, depth, IDs and normals. Linked to the producing revision. These are selected boundaries, not a sequential execution trace.
Selected documented boundaries, illustrated here; not a runtime screenshot or complete execution trace. Read the diagram source (opens in a new tab)
01

Inspect an image without replacing the exact observation

Merged CF083 / PR #84 accepts presentation: png for color, depth, normal and entity-ID observations. Omitting it preserves the previous result shape. Visibility PNGs and invalid presentation values reject before lazy service creation.

One borrowed-input encoder is shared with the CLI. It bounds the complete PNG to 1,048,576 bytes independently of the canonical envelope. The adapter prepares the canonical resource, then the image, then the complete result before replacing the retained resource. Failed presentation preserves the previous resource.

PNG is diagnostic only: numeric depth and normals, stable identity and causality remain authoritative in COGOBS01. Entity display colors can collide; synchronous encoding is cooperatively bounded rather than preemptible. No new renderer, remote authority, resource history or persistence is introduced. The diagrams here describe the contract, not a new GPU run.

02

Observe the canonical scene after a verified change

Merged CF082 adds a create-new render-scenario bundle over the fixed canonical flow: create a room, table, light and camera, change the table, query revision two, then verify the accepted-event chain and matching replay hash. Four subsequent observations export color, depth, normals and identity PNGs plus a manifest.

The source validation records frames 4 through 7 with separate observation identities but the same revision and camera. Unlike the earlier cube example, these images are sequential requests. The diagnostic PNGs do not export exact numeric depth or normals, accept an arbitrary scene, or establish portable screenshot baselines.

The new bundle remains local and its manifest requires review before sharing. This portfolio shows a source-derived sequence diagram and keeps the earlier 64 by 64 cube captures labeled as their original experiment. It has not run Cogniform again or published unreviewed adapter or run identifiers.

03

Intent becomes an accountable world

Cogniform is built around a strict causal loop: bounded intent becomes an atomic scene revision; rendering produces color, depth, normal, entity-ID, and visibility observations; each result stays linked to the revision that produced it.

That boundary gives human and software-agent callers the same inspectable world model without requiring a window or a remote service.

04

Ownership is explicit across the engine

The Rust workspace separates protocol, deterministic compilation, content-addressed assets, procedural scene patches, authoritative world state, replay, rendering, orchestration, storage, and the local CLI.

  • Transactional mutation, canonical events, logical hashing, and deterministic replay
  • Bounded GLB admission with caller-driven decode, upload, persistence, and rehydration
  • A headless GPU renderer with revision-linked machine-readable observations
  • Local typed service, inherited-stream sessions, and a bounded MCP stdio adapter
05

Evidence includes the boundary

The repository checks in dependency sources for offline locked builds and documents validation, recovery behavior, threat boundaries, architecture decisions, and release readiness alongside the implementation.

The project remains an early core. Its supported imported materials and headless observations are bounded subsets; remote transport, automatic rollback, and a published release remain outside the documented baseline.

Captured diagnostic example

One frame, four observations

A fresh run of Cogniform's built-in headless cube example produced these four unmodified 64 × 64 diagnostic images. All belong to frame 1, scene revision 0 and the same camera, as recorded in the original manifest.

Compare the four captured observations ↑

Captured on 10 September 2026 with the Vulkan backend on an NVIDIA GeForce RTX 5070, using a debug build of source revision 7e607c515b50. This single local example is not a performance benchmark, protocol payload, conformance result or cross-adapter baseline.

Read the pinned capture guide (opens in a new tab)
Continue the engineering story
Engineering history
Source snapshot

Inspect the checked source

Evidence reviewed . Individual decisions and captured examples retain their own source revisions and limitations.

Read the checked README (opens in a new tab)

Technical footprint

Repository-described tools and interfaces, not a proficiency rating.

  • Rust
  • wgpu
  • GLB
  • DX12 / Vulkan