hn.today

Hedra is a 3D open world game I wrote from scratch while in highschool

github.com145 points29 comments
Screenshot of Hedra is a 3D open world game I wrote from scratch while in highschool

Hedra is a complete 3D open-world, low-poly RPG written from scratch while the author was in high school, with a codebase around 100k lines. It offers procedurally generated, effectively infinite voxel-based worlds (only the player state and world seed are saved), class and skill trees, procedurally generated quests and structures, 100+ items with rarities, fishing, crafting, trading, companions, multiple dimensions, and Steam integration. The game is structured as a mod layered on top of a base engine to encourage modding, and it ships cross-platform support for Linux and Windows with CI workflows targeting a Steam beta branch.

The engine implements a modern OpenGL renderer with skinned and static mesh support, dynamic shader reloading, screen-space reflections and ambient occlusion, bloom, FXAA/MSAA, shadows, instanced particle rendering, Bullet physics, runtime LOD mesh simplification, chunked infinite-world support, and a Marching Cubes/Tetrahedra isosurface extractor to turn voxels into smooth geometry. Notable technical decisions include a WorldRenderer that renders the world in just three glMultiDrawElements draw calls, custom C# primitives and stack/heap allocators to minimize GC pressure, IronPython mod scripting (example Fishing.py), a Collada/PLY-only model pipeline (plaintext, no textures), an asset bundler, extensive test suites, and build instructions using submodules and platform-specific dependency scripts.

Read on github.com29 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Other

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.