Vectra
The Quarantine Matrix: constraining neural hallucinations in 3D Gaussian environments
Generates 3D objects from text or images and drops them into scanned Gaussian-splat environments without breaking the scene. The whole generative stack runs on one consumer 8 GB GPU, with no cloud.
- 60 FPS
- Browser viewport while idle
- 30 FPS
- Still navigable during inference
- 7.8 GB
- Peak VRAM, inside the 8 GB budget
- 120 s
- Average round trip, slice → textured mesh
Purpose
Why Vectra
Digital twins and generative AI are converging, but putting an AI-generated object into a scanned real-world space is still painful. It usually needs cloud GPUs, and the result often clips through walls or flickers against the scene. Vectra makes it work locally, on one consumer GPU, with clean geometry.
-
Hardware bottlenecks
Text-to-image and image-to-3D models together exceed consumer VRAM and crash with out-of-memory errors when loaded at once.
-
Geometric artefacts
New meshes inside dense Gaussian-splat scenes suffer from occlusion, Z-fighting and clipping.
-
Cloud dependence
Sending scans and prompts to an external service adds cost, latency and privacy risk.
What Vectra does about it
Vectra runs the full generation pipeline on an 8 GB edge GPU, carves a clean space in the scene without touching the source data, and confines every generated asset to validated coordinates.
Abstract
In short
Generative AI is rewriting how 3D content is made, yet turning everyday 2D inputs such as text prompts and flat images into interactive 3D objects is still a bottleneck. Vectra is an end-to-end framework that generates, extracts and simulates 3D objects directly from simple visual and textual input, inside a photorealistic scan of a real space. A decoupled client–server design keeps the browser at real-time frame rates while the heavy models run on a local GPU, and the Deep Splat Excavation algorithm lets new objects sit inside dense Gaussian-splat scenes without clipping.
Exploration Mode
Select documentation perspective
Pipeline
Four pipelines, one GPU
From the paper: how a real space is captured, how objects are extracted or created, and how they become physical. Models run one after another, never side by side, so every chain fits inside 8 GB of VRAM.
- Data
- Model / compute
- Processing
- Control step
- Output / guard
- 1 LiDAR + photogrammetry Scan the real space
- 2 Point cloud Geometry + colour
- 3 3D Gaussian splats Position · covariance · SH · α
- 4 gsplat.js · WebGL Tile rasteriser, depth-sorted
- 1 Viewport selection 2D box → off-screen capture
- 2 U²-Net mask rembg on CUDA
- 3 Alpha flattening Pure white background
- 4 TripoSR Triplane → NeRF → marching cubes
- 5 DBSE + inject .glb at excavated centroid
- 1 Text prompt Semantic intent
- 2 SDXL-Lightning FP16 · 2D image
- 3 Flush VRAM empty_cache + GC
- 4 TripoSR Peak 7.8 GB
- 5 Spawn .glb Into the scene
- 1 Scene bounds Floor + wall clusters
- 2 Static colliders Cannon.js, infinite mass
- 3 Dynamic rigidbody Mass · friction · restitution
- 4 Per-frame sync Position + quaternion → Three.js
System topology · decoupled and asynchronous
Client · presentation layer
Runs entirely in a standard browser: renders the splat scene, captures user intent and runs collision physics. It never runs a model and never blocks while one is running.
- Three.js
- gsplat.js
- Cannon.js
Server · local GPU forge
A FastAPI backend on a consumer GPU that cycles the models through VRAM and returns a lightweight textured .glb mesh.
- FastAPI
- U²-Net
- SDXL-Lightning (FP16)
- TripoSR
Method
How it works
-
01
Deep Splat Excavation (DBSE)
Rays cast through the selected box and the depth buffer define a 3D volume. Splats inside it get their opacity set to zero in the fragment shader, a non-destructive "hole-punch" that removes clipping and Z-fighting without editing the source .ply.
-
02
Sequential VRAM orchestration
Models never load at the same time. SDXL-Lightning runs in FP16 (half the memory), the cache is purged with torch.cuda.empty_cache() plus garbage collection, and only then is TripoSR loaded.
-
03
Asynchronous, non-blocking UX
The client sends a small JSON or base64 payload and returns straight to its render loop, showing progress and ghost meshes until the .glb comes back.
-
04
Quarantine Matrix
Generated assets are confined to validated spatial coordinates, so a hallucinated object cannot escape into the rest of the digital twin.
Results
What it delivers
Outcomes
- The full extraction and creation pipelines run on a single RTX 4060 (8 GB) with no out-of-memory crashes.
- Rendering stays real-time during generation: 60 FPS idle, around 30 FPS while models run.
- DBSE removed the Z-fighting and geometric intersection seen with standard additive insertion.
- Live web portal at vectra.parsabe.com and a first-person Unity simulation built on the same kernel.
Runs on
- GPU
- NVIDIA RTX 4060 or equivalent
- VRAM
- 8 GB minimum · peaks at 7.8 GB during TripoSR
- OS
- Ubuntu / Debian-based Linux recommended
- Cloud
- None required: everything runs locally
Two products, one repository
Interactive Simulation
The Vectra Video Game: Surviving the Quarantine Anomaly
Beyond the academic paper, Vectra includes a standalone first-person 3D simulation video game built with Unity (C#). Set inside a digital twin of an academic facility corrupted by generative hallucinations, the player navigates unstable Gaussian coordinate spaces, solves mainframe encryption puzzles, and interacts with an on-premise AI operator.
Local Ollama Operator
A real LLM operator agent responding dynamically to player state, anomalous observations, and puzzle queries with zero cloud connectivity.
Bark Neural Voice Comms
In-game procedural radio communications synthesized on-the-fly using Suno's Bark neural TTS model, paired with atmospheric low-pass radio audio filters.
ROT13 Mainframe Puzzles
Retro terminal stations requiring players to inspect corrupted memory registers and decipher encrypted system overrides using Caesar and ROT13 ciphers.
Quarantine Matrix Slicing
Direct implementation of Deep Splat Excavation (DBSE) as an active player tool to excise hallucinated geometry and restore spatial boundaries.
System Architecture
Video Game Simulation Architecture
The video game architecture coordinates three decoupled subsystems: a real-time Unity 3D engine loop, a local AI bridge executing Ollama and Bark inference, and a deterministic gameplay state machine.
Unity (C#) Client
- First-Person Controller with physical inertia & camera bob
- Custom Gaussian Splat point-cloud and mesh hybrid shaders
- In-world interactive terminal UI with CRT scanline post-processing
- Raycast spatial trigger & inventory collection mechanics
Local AI & Audio Microservice
- Local Ollama container serving fast quantized agent models
- Suno Bark neural TTS pipeline generating expressive WAV streams
- Asynchronous worker queue preventing game render hitching
- Localhost HTTP/WebSocket protocol for low-latency IPC
State Machine & Ciphers
- Mainframe ROT13 / Caesar algorithmic cipher evaluation
- Spatial bounding validation preventing out-of-bounds clipping
- Multi-stage lockdown progression (Breach → Solve → Purge)
- Dynamic audio ducking and environmental feedback triggers
The ROT13 Mainframe Cipher Loop
During the investigation, security blast doors lock down affected sectors. To reopen them, the player must interact with cathode terminals, extract scrambled hex and ASCII logs, and input decoded system keys through a terminal console:
> LOG_DUMP: SEC_ALERT_0x89F
> CYPHER: Gur Dhnenagvar Zngevk vf Pbzcebzvfrq
> STATUS: OVERRIDE LOCK ACTIVE
> SOLUTION: The Quarantine Matrix is Compromised
> SYSTEM: MATRIX DECRYPTION ACCEPTED
> ACCESS: AIRLOCK UNSEALED
Inspect the game code & branch
The complete Unity project, scripts, audio assets, and shader files are available on GitHub.
Acknowledgements
Developed at TU Bergakademie Freiberg. Vectra builds on the open-source U²-Net (rembg), SDXL-Lightning, TripoSR, gsplat.js, Three.js and Cannon.js projects.
BibTeX
@misc{vectra2026,
author = {Besharat, Parsa},
title = {{Vectra}: The Quarantine Matrix, Constraining Neural Hallucinations in 3D Gaussian Environments},
year = {2026},
institution = {TU Bergakademie Freiberg},
url = {https://www.researchgate.net/publication/408133286}
}