AMAZINGINDEX.COM 每天一点 Amazing
47.9
VOL. 2026.10
2026.10.23
← 返回 2026.10.23 日报
日报快照 · Daily Snapshot
NO. 018

高中生手搓10万行代码3D引擎

#ARTICLE HackerNews 2026.10.23
推荐指数 42.0 NO. 018 · 2026.10.23
发布2026/10/22Score61Comments14

作者15岁起从零用OpenGL构建低多边形开放世界RPG,含程序化生成、技能树、职业系统等完整机制,引擎与游戏双线开发。对AI工程师的启示在于:复杂系统的模块化架构能力比调参更能定义技术天花板,且纯CPU端程序化生成思路对轻量化AI场景有借鉴价值。

这个项目最被低估的不是完成度,而是作者在高中学业压力下坚持了多年的工程纪律。10万行代码没有变成不可维护的废墟,说明他早期就建立了清晰的模块边界——这正是很多AI创业公司训练框架与推理系统混为一谈导致技术债务的根源。

程序化生成在游戏领域是成熟方案,但当前AI生成内容(AIGC)团队过度依赖扩散模型,对轻量可控的算法生成反而生疏。Hedra的地形与任务生成逻辑可以迁移到AI NPC行为树、低成本元宇宙场景构建等场景。

如果你正在做端侧AI或需要脱离GPU依赖的生成系统,建议直接读它的world generation模块源码,比啃学术paper更接地气。

意见分歧 14 条评论

核心争论:手写代码锻炼心智 vs AI 生成等同甚至超越人类创作

maxilevi

I started this game almost 10 years ago in high school as a way to learn OpenGL. Scope creep quickly took over, and it eventually became a full 3D game and engine with animations, rendering effects, dynamic terrains, etc, with ~100k lines of code and native Linux and Windows support. Thought I'd sha

jh3nd3rs0n

Thanks for sharing. It's nice to see a game made without AI.

sublinear

I hope I don't sound rude for saying this, but "relic of another era" isn't how I'd describe the time before LLMs. We're very much still in the same era as back then. I hope every dev realizes by now that there's no meaningful difference between a git clone back then and using LLMs now. Projects lik

替代方案: vibe coded gamesopus 5.5
查看原文 →