Skip to content
Niffoxic

Ogon

My game-asset toolkit: LODs that keep the windows, tighter collision, occluders and repair, measured against the standard tools.

Type
My tool · C++23 · Vulkan
Role
Sole developer: design, architecture, all code, GPU work, tests and UI
Stack
C++23 · Vulkan 1.3 compute · Slang · SDL3 · RmlUi · CMake · GoogleTest
Links
ogon.dev ↗
Ogon

Building LOD 25,612 → 6,344 triangles with the windows kept, where meshoptimizer stalls at 18,060.

building LOD triangles, windows kept (meshoptimizer stalls at 18,060)
25,612 to 6,344
townhouse collision triangles that still fit (V-HACD 4.1 uses 564)
2,146 to 32
collision for 13 models vs V-HACD, with 8× fewer triangles
80 s to 3.3 s
building occluder triangles, hiding 88.8% of sight lines
45,122 to 12

Overview

Game assets from asset packs, AI generators and scans arrive too heavy and broken for real games: too many triangles, no LODs, bad collision, holes, wrong scale, oversized textures. Fixing them by hand in Blender takes hours per model, and the standard free tools (meshoptimizer, V-HACD) fail on the hardest cases, like flat-shaded buildings. Ogon is the native desktop app I'm building for my own games, on Windows and Linux. Drop in a model, a texture or a whole folder: Asset Doctor scores every asset for your engine and platform, then one tool or a chained recipe fixes it, a compare view shows the result against the standard tool, and it writes engine-ready files. Where the standard algorithms fail, I wrote my own. The full write-up, with every method and benchmark, is on ogon.dev.

The full demo, with captions: Asset Doctor, the LOD chain against meshoptimizer, collision against V-HACD, occluders, mesh repair, recipes and the node editor.

What I built

  • 55 tools LOD chains, collision (including per-bone collision for characters), occluders and shadow proxies, remeshing, mesh repair, hidden-face removal, auto and lightmap UVs, map baking, impostors, texture sets, GPU texture compression with an error heatmap, normal-map fixing, PBR conversion, atlases, skin-weight cleanup and sprite sheets.
  • My own mesh algorithms A seam-aware LOD simplifier (built on Hoppe's points and wedges) that keeps windows on flat-shaded buildings, collision that fits tighter with fewer triangles than V-HACD, and occluders that cover most of a building with 12 to 48 triangles.
  • Asset Doctor, recipes and pipelines Scores every file against the target engine, offers one-click fixes and 18 recipes; a node editor builds pipelines that also run headless in batch, cached by content hash so reruns only redo what changed.
  • Engine link Live link to the Godot editor: right-click an asset in Godot, run a tool, get the result back as one undo step.
  • Architecture A headless core of small libraries shared by the app, the command line and CI. Each tool publishes a schema, and the settings panel, pipeline node, CLI flags and engine menus are all built from it. Bindless Vulkan 1.3 with automatic barriers and my own job scheduler.
  • Quality bar About 184,000 lines of C++23 and 1,082 automated tests, with AddressSanitizer, UBSan and fuzzing. Every method has a separate judge that shares no code with it, and every Vulkan path runs clean under the validation layers.

Results

10 figures
Asset Doctor checks a whole folder against the target engine and platform, scores it and recommends a recipe that fixes everything it found.
FIG. 1Asset Doctor checks a whole folder against the target engine and platform, scores it and recommends a recipe that fixes everything it found.
LOD chain on a 12,404-triangle building, run side by side. meshoptimizer's last LOD still keeps 100% of the triangles; ogon-lod 1.1 gets to 31% and keeps every window.
FIG. 2LOD chain on a 12,404-triangle building, run side by side. meshoptimizer's last LOD still keeps 100% of the triangles; ogon-lod 1.1 gets to 31% and keeps every window.
Same building, 75% fewer triangles. meshoptimizer stalls at 18,060 and tears the roof; ogon-lod keeps the windows at 6,344.
FIG. 3Same building, 75% fewer triangles. meshoptimizer stalls at 18,060 and tears the roof; ogon-lod keeps the windows at 6,344.
Collision against V-HACD 4.1 on the same building: 16 shapes in 3.2 s, against 10 tighter shapes from ogon-collision in 0.2 s.
FIG. 4Collision against V-HACD 4.1 on the same building: 16 shapes in 3.2 s, against 10 tighter shapes from ogon-collision in 0.2 s.
32 collision triangles that still fit the house, vs 564 from V-HACD 4.1. At the same budget V-HACD loses the shape.
FIG. 532 collision triangles that still fit the house, vs 564 from V-HACD 4.1. At the same budget V-HACD loses the shape.
A 12-triangle occluder covering 86.5% of the building's volume, plus a 124-triangle shadow proxy (1% of the model).
FIG. 6A 12-triangle occluder covering 86.5% of the building's volume, plus a 124-triangle shadow proxy (1% of the model).
Repairing an AI-generated dog: 8 holes filled, 6 faces flipped, loose pieces removed. Holes it can't fill safely are reported, not faked.
FIG. 7Repairing an AI-generated dog: 8 holes filled, 6 faces flipped, loose pieces removed. Holes it can't fill safely are reported, not faked.
Per-bone character collision, checked in the bind pose and in animation: less bare skin than one capsule per bone on 26 of 27 characters.
FIG. 8Per-bone character collision, checked in the bind pose and in animation: less bare skin than one capsule per bone on 26 of 27 characters.
18 recipes chain the tools for a job, like Unity prop, Mobile texture diet and AI and scan rescue.
FIG. 918 recipes chain the tools for a job, like Unity prop, Mobile texture diet and AI and scan rescue.
A node pipeline editor. The same pipelines run headless from the command line, for CI and build machines.
FIG. 10A node pipeline editor. The same pipelines run headless from the command line, for CI and build machines.

Hard parts

  • Beating mature, widely used tools (meshoptimizer, V-HACD, xatlas) on real models, not just test shapes, and trading speed for shape on purpose: my LOD runs 5 to 15× slower than meshoptimizer.
  • Reporting honestly: when the LOD tool hits its error limit before the requested triangle count, it stops and says so instead of wrecking the model.

Limits

What it doesn't do yet
  • Not released yet.
  • The engine link is Godot only: there's no Unreal plugin yet, and the Unity plugin is untested.
  • Texture compression covers BC1/3/4/5.
  • The benchmarks use 10 to 30 example models.
Harsh Dubey

Harsh Dubey

Graphics and game programmer. MSc Games Engineering (Distinction), University of Warwick.

About me