Innovative Game Worlds

Game-Project
↓ ↓ ↓ ↓ ↓

Nightfair

Project Overview

Development: 3 months – ongoing
Team: Solo project
Software: Unity, Rider, AntiGravity, ZBrush, Substance Painter
Platform: PC (targeting 60+ FPS on RTX 3060)

My Contribution

As the sole developer, I handled the complete production pipeline:

  • Art Direction & Asset Production: Designed and maintained a cohesive visual style, creating all 3D assets from scratch (modeling, sculpting, texturing)
  • Technical Architecture: Built custom editor tools, rendering pipelines, and simulation systems in Unity/C#/DOTS
  • System Design: Architected high-concurrency AI, procedural generation, and performance-critical audio systems

Build the park. Please the dead.

The framework is intended to drive a Ghost Theme Park simulation, featuring organic building mechanics, spectral crowd simulation, and discoverable attractions. Full game design documentation will follow as the simulation layer matures.

Art-first approach: I created the full asset library before building editor tools, allowing the visual style to drive technical architecture rather than adapting visuals to pre-existing systems.

Technical Art

Unlike a traditional game project, this initiative focuses on establishing a production-ready technical foundation. The objective was to architect a robust development environment where tooling and rendering systems are fully optimized prior to gameplay implementation. By removing the constraints of rapid prototyping, I was able to prioritize architectural integrity, high-fidelity rendering targets, and comprehensive tool creation.

The resulting toolset is engineered for maximum feature depth while remaining strictly designer-friendly. This page provides a small technical dive into the architecture and specific capabilities of each system.

Screenshots

Utility AI

High-Concurrency Simulation Engine (Massive-Scale Utility AI)

A behavioral architecture orchestrating 10,000+ active agents via a pure Data-Oriented (DOTS) approach. This system replaces legacy object-oriented state machines with a high-bandwidth, unmanaged simulation pipeline.

Case Study: High-Throughput Agent Logic

  • Problem: Scaling complex NPC behaviors to massive populations without main-thread saturation. Traditional MonoBehaviours incur excessive overhead from transform hierarchy updates and cache misses due to scattered heap memory.

  • Solution: Re-engineered the simulation into a Structure of Arrays (SoA) memory layout. Decision logic is executed via Burst-compiled Jobs across worker threads, utilizing 128-bit bitmask filtering for ultra-fast intent culling.

  • Technical Challenges: Eliminating race conditions and data-tearing in parallel job execution. Solved by implementing a Double-Buffering pattern for agent state, ensuring deterministic “Snapshot Consistency” across every simulation step without the use of expensive mutexes.

Engineering Highlights

  • Tri-Layer Behavioral Hierarchy: Decouples logic into tiered priorities: Survival (Physical Needs), Reaction (Social Influence/Emotion), and Strategy (Long-term Habits/Memory).

  • SIMD-Friendly Memory Layout: Optimized unmanaged structs for L1/L2 cache prefetching, achieving ~15x instruction throughput compared to traditional C# logic.

  • Generational Tracking: Implemented a “Stale Reference” protection system using generational ID incrementing, allowing asynchronous jobs to safely query pooled entities without main-thread synchronization.

  • Eikonal Navigation Integration: Leverages GPU-precalculated Vector Fields (Flowfields) for $O(1)$ navigation lookups, bypassing the $O(N \log N)$ cost of traditional pathfinding.

Vat Baker

Advanced GPU Rendering & VAT Pipeline

A comprehensive vertex animation pipeline that eliminates runtime skeletal evaluation by baking animation data into textures, enabling massive-scale crowd rendering via GPU Instancing.

Case Study: VRAM & Instruction Efficiency

  • Problem: Skinned Mesh Crowds consume unsustainable amounts of VRAM and CPU cycles for skinning, making thousands of animated meshes unplayable on target hardware and are no longer batchable.

  • Solution: Developed a custom GPU-driven VAT (Vertex Animation Texture) pipeline. By encoding vertex data into a relative Local Bind-Positional space, the system achieves 8-bit precision with zero visual artifacts.

  • Technical Challenges: Normal precision loss and “Quantization Jitter” at 8-bit depths. Solved via Octahedral Normal Reconstruction (packing 3D vectors into 2-channel 2D mapping) and range-remapping based on object-space bounding boxes.

Engineering Highlights

  • 8-Bit Delta-Pose Quantization: Maximizes precision by encoding vertex animation data as compressed delta offsets relative to the first frame (Averaged Pose), enabling high-fidelity 8-bit storage without quantization artifacts.

  • Atlas Restitching: Automates the merging of disparate VAT textures into unified mega-atlases, handling complex bounds re-normalization and generating essential JSON metadata for seamless runtime lookups.

  • Stable Screen-Door LOD Dithering: Custom HLSL implementation using stable, pixel-space dither noise to ensure flicker-free transitions between LOD levels regardless of camera movement.

  • JSON-Driven Multi-LOD Baking: A non-destructive editor suite that automates the generation of multi-resolution VAT textures with automatic range-normalization.

Root Motion Builder

Procedural Root Motion (Tweening)

A specialized motion-authoring tool designed to inject organic “Synthetic Weight” into assets that lack skeletal animation data.

Case Study: Motion Fidelity in Instanced Environments

  • Problem: GPU-instanced assets (VATs) lack native skeletal bone data to drive movement, often resulting in visual “gliding” and lack of physical presence.

  • Solution: Developed a Synthetic Motion “Engine” that applies procedural displacement via high-performance Bézier-spline evaluation. To maintain runtime efficiency for thousands of agents, the Root Motion Builder bakes authoring curves into 256-step LUTs, enabling ultra-fast, constant-time sampling in multi-threaded Jobs.

  • Technical Challenges: Frame-perfect synchronization between CPU-side displacement and GPU-side VAT playback. Historically, the primary friction point has been making this programmatic tweening stack designer-friendly; solved by implementing a custom GUI that bridges raw math with visual curve manipulation.

Engineering Highlights

  • Non-Destructive Modifier Stack: Procedural movement layer supporting Perlin Noise, Quantization, and Time-Shifting to generate infinite organic variations from a single source clip.

  • Bézier Trajectory Evaluation: Highly optimized math stack for evaluating complex movement curves mid-job with minimal cycle count.

  • Decoupled Authoring Workflow: A bespoke editor window providing 1:1 visual parity between authored curves and runtime execution. Offers many presets

``Feel`` Camera System

Gimbal-Physics Camera & Control System

A production-grade camera system engineered for management simulations, featuring a dedicated physics engine to convey weight, momentum, and cinematic impact.

Case Study: Perceptual Responsiveness

  • Problem: Large-scale cameras often feel “floaty” or detached. High-speed viewing (e.g., coaster tracking) frequently causes motion sickness without proper dampening and warping. Also I use world bending which causes extra motion sickness without a good physical feeling.

  • Solution: Engineered a G-Force Physics Gimbal that integrates centripetal forces to drive procedural shake, camera lag, and dynamic FOV warping based on real-time physics data. It feels like flying a drone.

  • Technical Challenges: Maintaining interactivity during high-momentums. Solved by using non-linear Hermite-Spline sensitivity scaling and Edgecase handling (magicsnapping), ensuring that panning responsiveness remains consistent across different zoom altitudes.

Engineering Highlights

  • Hybrid Motion Banking: Synthesizes a cinematic “roll” effect (Z-axis rotation) by interpolating between the physics rig’s centripetal acceleration vector and the user’s raw input direction, simulating aerodynamic banking.
  • Automated Indoor Detection: Utilizes specialized collision masks and raycast culling to reconfigure camera behavior (smoothing/clipping) in enclosed or interior spaces.

  • Hybrid Stabilization Algorithm: Blends world-space and local-space up-vectors to mimic professional stabilized gimbal hardware.

  • Verlet-Based Dampening: High-performance momentum dampening that preserves player intent while adding a premium sense of physical mass.

Audio Middleware

Sonic Engine

A high-performance, zero-allocation audio ecosystem engineered to handle thousands of concurrent spatial emitters with DAW-grade precision. Handles all the things a middleware has to handle like Rtcps, Envelopes, Variants, Ducking, Profiling, Language and Layering.
Structrually it is seperated in the track entry between realtime (cheaper) vs “baker” (expensive) section, so the artist can always come back and make edits without switching programs or performance cost.

Case Study: High-Throughput Acoustic Simulation

Problem: High-density environments with thousands of agents cause “Audio Mush” and persistent GC spikes. Traditional audio middleware (e.g., FMOD/Wwise) introduces significant API bottlenecks when spawning and updating thousands of individual emitters per frame, making them unsuitable for massive-scale simulations.

Solution: Orchestrated a Custom Jobified Audio Ecosystem. By bypassing managed API overhead and offloading individual source physics (Muffling, Air Absorption, Diffraction) to worker threads via RaycastCommand.ScheduleBatch, the system achieves high-fidelity spatialization for thousands of concurrent sources.

Technical Challenges: Achieving frame-perfect synchronization for moving emitters while maintaining zero GC allocations under extreme load. Solved by implementing a pre-warmed generational object-pooling system and intelligent HDR-based voice virtualization that prioritizes audible content over silent or distant sources.

Engineering Highlights

  • Burst-Compiled DSP Pipeline: Leverages SIMD kernels for all audio transformations (6-Band Parametric EQ, Multi-Model Dynamics, Spectral De-Noising) on worker threads, maintaining sub-millisecond latency. Supports surgical Mid/Side processing and real-time coefficient ramping to prevent interpolation artifacts.

  • Physical Acoustic Propagation: Sophisticated path-tracing algorithm for spatial diffraction with frequency-dependent filtering based on occlusion depth and material density. Jobified RaycastCommands detect obstructions without impacting the main thread, while mathematical air absorption models simulate high-frequency energy dissipation over distance.

  • HDR Loudness Virtualization: Dynamic floating-point loudness window creates a “Director’s Mix” by automatically virtualizing sounds outside the active range. Silent voices persist their state machine (playback time, pitch logic, envelope) and seamlessly realize back based on HDR priority, ensuring zero-alloc lifecycle management.

  • Physics-Driven Timeline Editor: Frame-locked synchronization with physics spring simulations for elastic clip scaling and tactile feedback during sound design. Enables high-fidelity audio authoring with sub-frame precision.

Localisation & Dialogue

Global Localization & Dialogue Tooling

A scalable, mission-critical pipeline for managing branching narrative and multi-language assets at scale.

Case Study: High-Fidelity Narrative Tooling

  • Problem: Managing thousands of dialogue keys across non-linear branching narratives leads to high error rates and broken context for translators. Traditional spreadsheet-based workflows lack the visual topology required for complex quest logic.

  • Solution: Engineered a visual Dialogue Graph that compiles into an optimized, flat data structure for zero-allocation runtime traversal. This system serves as the source of truth for both narrative logic and the Context-Aware Localization Suite, featuring ‘Translator Vision’ for automatic visual auditing.

  • Technical Challenges: Ensuring topological validity and synchronizing graph-state with localized buffers. Solved by implementing a full Unicode CLDR Rule Engine and a custom Asset Post-Processor that validates rich-text formatting tags.

Engineering Highlights

  • Custom Visual Node Editor: A production-grade graph suite that empowers designers to author branching logic with direct bindings to dynamic Voice Profiles and facial animation triggers.

  • Context-Aware Auditing: ‘Translator Vision’ automatically captures high-resolution visual context for every dialogue node during the localization audit phase.

  • Zero-GC String Formatting: Optimized string manipulation and macro-replacement logic to prevent heap allocation during narrative-heavy sequences.

  • Automated QA Crawler: A project-wide tool that identifies hardcoded strings in binary assets and validates rich-text formatting tags.

Record

Undo/Redo & Branching History

A sophisticated, non-linear state restoration pipeline engineered for high-fidelity editor tooling and complex simulation-state auditing.

Case Study: Non-Linear State Restoration

Problem: Standard linear Undo/Redo stacks are inherently destructive—recording a new action while in a “Redo” state permanently wipes the future timeline. In complex creative workflows (e.g., Audio Timeline editing or Camera Pathing), this leads to high-friction data loss and prevents the exploration of alternative design branches.

Solution: Engineered the UndoRedoManager, a tree-based history architecture that treats the undo/redo timeline as a Directed Acyclic Graph (DAG). By utilizing HistoryNode Branching, the system allows developers to traverse multiple “futures,” ensuring that new edits create parallel branches rather than overwriting existing historical data.

Technical Challenges: Managing “Memory Bloat” and “Identity Drift” in branching trees that can quickly exhaust VRAM/RAM. Solved by implementing a Serialized Delta-Budgeting system that proactively prunes the oldest leaf-nodes based on strict memory-limit thresholds and utilizes State Hash Auditing to prevent “Blind Undo” artifacts.

Engineering Highlights

  • Tree-Based Branching History: Replaces legacy stack model with non-linear DAG architecture enabling parallel timeline preservation. Developers can explore alternative design branches without losing previous work.

  • Deterministic Memory Budgeting: Enforces strict overhead limits (200MB+ configurable) through automated pruning. Calculates node size and detaches oldest branches when thresholds are exceeded.

  • Sub-Second Action Merging: Collapses rapid-fire inputs (slider dragging, orbital movement) into atomic units using temporal windows (500ms default), preventing history saturation during granular edits.

  • Context-Aware Snapshots & Integrity Auditing: Captures environment metadata (UI states, viewport orientation) via IUndoContext protocol. Pre-execution hash verification detects state drift and warns before destructive operations.

Debug

Global Debug Infrastructure

A scalable, mission-critical pipeline for managing runtime simulation states, reflection-driven command protocols, and high-fidelity diagnostic telemetry across thousand-agent systems.

Case Study: High-Performance Telemetry & Unified Diagnostics

Problem: Managing diagnostic noise across disparate systems (AI, Grid, Audio) leads to “noise saturation” and unsustainable CPU stalls in standard Debug.Log implementations. Traditional logging wrappers pollute the callstack, breaking Unity’s one-click “Source Navigation” and forcing developers to traverse multiple files to locate the original call site.

Solution: Engineered GLog—a zero-dependency telemetry framework utilizing Atomic Bitmask Filtering to achieve O(1) diagnostic early-exit and sub-microsecond filtering performance. Coupled with the Console Service, it provides a unified source of truth for all developer interactions and simulation-state auditing across the entire project architecture.

Technical Challenges: Ensuring callstack transparency while preventing “Double-Click Drift” and maintaining human-readable, color-coded output without incurring string allocation or callstack overhead penalties. Solved by implementing an Editor-Driven StackTrace Rewrite Engine that reconfigures the Unity Logic Pipeline to bypass the utility wrapper entirely.

Engineering Highlights

  • O(1) Bitmask Early-Exit & Dependency-Isolated Architecture: Maximizes runtime performance using a 64-bit atomic mask (EnabledMask) with sub-microsecond bitwise AND operations to skip string-formatting and heap-allocation costs before entering the Unity Log subsystem. Designed as a zero-dependency assembly to enable usage in the lowest engine layers (Math, Data Structures) while preventing circular reference chains.

  • Callstack-Transparent Auditing & Trace Pruning: Utilizes HideInCallstack and intelligent StackTraceLogType configuration to strip the logging wrapper from the Unity Console, ensuring double-clicking a log entry directs developers to the actual logic site. Automatically reconfigures editor stack-trace settings (StackTraceLogType.ScriptOnly) for standard logs while preserving full error-traces for exceptions.

  • Reflection-Driven Command Registry & Deterministic Simulation Control: Zero-boilerplate CLI pipeline with automatic method discovery via ConsoleCommand decoration. Includes production-grade simulation cheats (Sub-Tick Frame Stepping, spatial teleportation, NoClip camera) and Trauma & Behavioral Auditing for thousand-agent simulations with automated Stuck Detection and Queue Abandonment Crawling.

  • High-Fidelity Visual Topology: IMGUI-based overlay with 16+ hex-coded categories (e.g., #AB47BC for Audio, #66BB6A for Grid) and HSL-balanced spectrum mappings. Transforms raw console data into recognizable visual patterns for rapid anomaly detection and systemic interplay identification.

Irregular Grid

Procedural Topology & Irregular Grid

An organic gridgeneration designed to break Cartesian layouts using topological operators

Case Study: Organic Topological Continuity

  • Problem: Standard square/hex grids feel artificial. Procedurally generating irregular geometry often results in T-junctions or gaps between asynchronously generated chunks.

  • Solution: Implemented Conway Polyhedron Subdivision (Ortho) on top of Lloyd-relaxed lattices. This creates organic “cul-de-sac” structures that remain topologically quad-dominant.

  • Technical Challenges: Asynchronous Chunk Seaming. Solved by implementing a Seeded Noise Frontier—a deterministic boundary algorithm that ensures vertices between independently generated chunks remain perfectly aligned. In other words… stitching the chunks with worldspace noice blending.

Engineering Highlights

    • Dual-Pipeline Algorithms: Implements Lloyd’s Relaxation to warp regular lattices for organic flow, and Conway Operators (Hex-to-Quad subdivision) to generate complex, irregular street layouts with natural cul-de-sacs.

    • Unified Rolling Grid: Supports infinite worlds via a robust Chunk Stitching System. Uses positional quantization to identify and “weld” boundary vertices, ensuring seamless topology across scrolling chunks.

    • Navigation Graph: The generated topology serves directly as the spatial graph for Flowfield Pathfinding, removing the need for a separate baked NavMesh.

    • High-Performance Generation: The entire pipeline is Burst-compiled and Jobified, generating massive grids (10k+ cells) in milliseconds without main-thread stalling.

Conclusion

Future Roadmap

Compared to other projects, this one operates at a significantly higher level of professionalism and architectural maturity. While each system is clearly separated into its own module, the complexity scales accordingly—the camera system alone comprises approximately 40,000 lines of code. To ensure stability and maintainability at this scale, I’ve implemented thousands of unit tests across the codebase.

This project has reinforced a critical lesson: building feature-rich, production-grade systems not only advances the technology itself but fundamentally elevates the developer’s engineering capabilities. Investing in depth and robustness yields far greater long-term value than rushing through prototype-style implementations.

While there are currently no plans to release this as a commercial game, maintaining a dedicated side-project has proven invaluable for creating purpose-driven, production-quality systems.

Planned Systems:

  • Building System Overhaul: Transitioning from placeholder stats to a fully-realized construction pipeline with structural integrity and resource dependencies.
  • Procedural Level Generation: Dynamic world creation with algorithmic terrain and biome distribution.
  • Advanced Spawner System: Granular entity spawning with wave management, density regulation, and condition-based triggers.
  • Deckbuilder-Automation Hybrid: Strategic resource management coupling deckbuilding mechanics to automated production flow (Ectoplasma).
  • Quest & Attraction System: Discovery-driven objectives for procedurally-placed landmarks and points of interest.
  • Narrative Framework: Story-driven progression integrating character arcs with gameplay milestones.

These systems provide concrete design challenges that drive architectural decisions while creating a comprehensive portfolio showcase.