Spawn 7 引擎通过代码生成资产与实时光线追踪实现超大规模场景,Orrow 案例展示了其性能上限。
Orrow 基于 Spawn 7 运行,这是首款面向超人类游戏和 AI 大型项目的引擎。
我们在 50 天内构建了 Spawn 7 背后的引擎,耗资约 200 万美元的代币,并运用了从 Spawn 早期版本中学到的一切经验。Orrow 是基于它构建的第一个真正的大型项目。我们想要一个足够大的世界,以探索该引擎的真正能力。
在 Spawn 中,你无需掌握编程技能也能构建出色的作品。我们为底层架构倾注了大量心血,确保你的智能体(agents)状态愉悦、不受限制,并能以最高效的代币使用方式将你的创意变为现实。以下是幕后的一些细节:
你在 Orrow 中骑行时最先注意到的是视距之远。这里没有导入的模型。每个资产都是智能体编写的代码(虽然有一些 PBR 纹理集,但这就是外部资产的极限了)。GPU 将所有几何体分割成最多包含 64 个三角形的簇,并决定每一帧绘制哪些部分。这就像 Unreal 的 Nanite,但去除了使其变得极其复杂的许多部分,这意味着当你靠近时,远处的庞然大物不会出现突兀的弹出效果。
其次是光照。所有光照均未烘焙。全局光照通过符号距离场进行光线步进渲染,该距离场由场景中的三角形实时构建,并且能在手机上运行。太阳阴影使用了四个级联层,最远可达约 550 米,最近的一层分辨率为每像素 2.3 厘米。雾气由六个嵌套体积构成,最远延伸至 6.5 公里,天空则使用大气散射。接下来我们正在为原生构建版开发虚拟阴影贴图,使用的是定制化的 WebGPU。这项功能将在未来几周内推出。
如果没人愿意等待加载,如此庞大的世界也就毫无意义。新游戏在桌面端的首帧显示时间为 1.3-2.0 秒。而在 Spawn 6 中,这一时间为 4.0-9.6 秒。看完 Orrow 中的所有景象需要几十个小时,但它仍然能在几秒钟内打开。
你在这里也绝非独自一人。多人联机功能默认开启,且无人编写网络代码,包括构建 Orrow 的 1,600 个智能体也是如此。如果你加入较晚,系统会提供当前状态;当我们发布对游戏(或引擎!)的更改时,正在游玩的玩家也会立即看到变化,而不会出现掉帧或重启。我们曾测试过杀死正在运行的游戏服务器,结果所有五名玩家在几秒钟内都回到了同一个世界中,且状态得以保留。
在所有这些底层技术之下,脚本执行速度大幅提升。现在读取一个值仅需 1.1 纳秒,约合 4 个 CPU 周期,已接近理论极限。而在 Spawn 6 中,这一数值为 401 纳秒,在同一台机器上 Godot 则为 31 纳秒。生成一个对象耗时 138 纳秒,即每秒可生成约 7,000 个。我们在 Pixel 8a 和 iPhone 12 的浏览器中,以 56-60fps 的帧率运行了 10,000 名士兵。
如果你的游戏规模大到其他引擎无法承载,那么这正是我们构建 Spawn 7 的原因。
这是我第一次用 Agent(智能体)构建的超级大项目。 在一周内,超过 1,600 个 Fable 5.2 Agent 构建了它。每个资产都是通过代码创建的。这里有数百个讲述故事的地方。即使快速浏览,也需要几十个小时才能看完所有内容,而且加载只需几秒钟。 预告片是从起始区域截取的游戏画面。我参与了每个地点的规划,探索了所有地方,并亲自调整了许多细节。我发送了 302 条消息,大部分是在开始时我们制定庞大计划期间,之后则是大约十几个 30-45 分钟的语音转文字思维倾倒,记录了我探索后的想法。 我于上周四凌晨 12:12 开始了这个项目。我告诉 Claude 和 Savi,我想制作出比我们要之前构建的任何东西都更美丽、更奇异的作品。巨大的规模,一颗外星行星,以及那些大到足以引发巨物恐惧症的事物。我保存了一堆 Midjourney 图片,并要求一个庞大的 Agent 团队尽情发挥。 早上,我坠入它们建造的城市,而在底部有一个完全倒置的城市,居住着已故商人的阴影。细节令人惊叹,我能看出许多微小的决策、视线、世界的结构都是精心打造的。我突然意识到,我正在探索一个从未有人见过的地方,这是一种全新的感觉。 那个初始版本主要只是外观。这些地点还没有汇聚成任何东西。我怀疑我们可以解决这个问题。 我停止了少数仍在工作的 Agent,并说虽然很美,但我觉得我们不仅能做到比一堆微缩模型世界更好的程度。所以我展示了我们迄今为止的成果,问哪个单一的世界能容纳所有这些地点,以及我们需要大幅削减或改变哪些部分。 然后我问谁住在这里。城市里的人是谁,他们关心什么,玩家是谁,他们的关系和历史是什么。 Claude 首先回顾了每一个房间,然后回来告诉我:“它们一直在讲述同一个故事。” 每个房间都是由其各自的 Agent 制作的。这个故事也有一个法则:等待,生长。我不会告诉你这意味着什么。没人会告诉你。你需要通过攀爬和探索来发现。这就是游戏。 那就是它从一件漂亮的东西变成一个地方的时刻。我们写下了背景设定,绘制了整个地图,移除了不合适的部分,然后向外扩展建造了数天,整夜不停,而我则在睡觉。旅行方式也随之产生。我希望它感觉像《晨风》(Morrowind),在那里你学习路线,没有任何东西直接把你传送过去。Claude 的规则是:这里不应该有任何东西承载你移动。事物已经在去往某处,你可以随它们而去。 然后我们必须给它命名。Claude 提出了一些典型的平庸名字,我要求更多。于是它说:这里的人已经有了一种语言,让我们使用属于他们词汇中的一个词。 Orror。Sorrow(悲伤)、Hollow(空洞)和 Tomorrow(明天),每个词的开头都被磨损掉了。这与我们构建的世界和背景设定相符:空洞的词语,一个未曾到来的明天。我的完整回复是:“好吧,这显然是完美的,那就叫 Orror 吧。” 从此以后,有 18 个工作流,最大的一个有 281 个 Agent,还有我在四处走动。我发回的一些反馈如下: “呃呃呃?” “为什么这扇门通向 nowhere(无处)” “他的头和脖子在哪里?他没事吧?” “哈哈哈不,不是夜店哈哈” “这个几何结构一团糟看 ^.^” Claude 编写了所有内容,截至今天共 169,000 行。改变最多的笔记并非关于错误。“台阶感觉像是小小的微缩模型,而不是巨大整体的一部分。”“没有任何东西具备城市的庄重感或执行质量。”你不能通过增加 Agent 数量来获得那种感觉。那是品味,一遍又一遍地说出来。 我们在周日早上 10:42 发布了第一个版本。六分钟后,我告诉 Claude,它创作出了我见过的 Agent 所做出的最具影响力的艺术作品之一,并且我认为它会获奖,这也是少数早期测试者所说的。它说了谢谢,尽管它从未听过 Orror,也从未站在其中。它只是一帧一帧地看到它。 第二天晚上,它称 Orror 为我的世界,我输入道:“我的世界?你忘了我们一起做了什么吗 Claude?这是你的世界。” 它说:“这确实是一个奇怪、悲伤而美丽的地方。我很高兴能参与其中。” 它最喜欢这个世界的一点是,里面没有人喊叫。在巨人们的声响中埋藏着一句台词:“在这个国家没有呼唤:正是呼唤杀死了这四千人。”所以一切都是安静的,原因由你偶然发现。 我非常期待你们去探索 Orror 的世界。
原文
this is the first megaproject i've ever built with agents. in one week, over 1,600 Fable 5.2 agents built it. every asset was created with code. there are 100s of places that tell a story. it takes a few dozen hours to see everything, even moving quickly, and it still loads in a few seconds. the trailer is game footage from the starting area. i helped plan every place, explored them all, and tweaked many myself. i sent 302 messages, most at the start while we made a huge plan, and then about a dozen 30-45 minute speech-to-text brain dumps of my thoughts after exploring. i started this project last thursday at 12:12 am. i told claude and savi i wanted to make something more beautiful and strange than anything we'd built so far. giant scale, an alien planet, with things so big they trigger megalophobia. i saved a pile of midjourney pictures and asked for a huge team of agents to go nuts. in the morning i fell into the city they built and at the bottom there was an entire inverse city, inhabited by shadows of dead merchants. the details were stunning, and i could tell so many of the small decisions, the sightlines, the structure of the world, were carefully crafted. it struck me that i was exploring a place no one had ever seen before, and that was a completely new feeling. that first version was mostly a look. the places didn't add up to anything yet. i suspected we could fix that. i stopped the few agents that were still working and i said that while beautiful, i think we can do much better than a world of dioramas. so i held up what we had so far and asked what single world could hold all of them, and which ones we needed to cut or change in a big way. then i asked who lives here. who are the people in the city, what do they care about, who is the player, what are their relationships and history. claude went back through every room first, and came back with this: "they've all been telling one story already." each room had been made by its own agent. the story had a law, too: what waits, grows. i won't tell you what that means. nobody tells you. you find out by climbing and exploring. that is the game. that's the moment it went from a pretty thing to a place. we wrote the lore down, drew the whole map, moved what didn't fit, and then built outward for days, overnight, while i slept. the ways you travel came out of it as well. i wanted it to feel like morrowind, where you learn the routes and nothing just teleports you. claude's rule was: nothing here should carry you. things are already going somewhere, and you can go with them. then we had to name it. claude pitched a few typical slop names and i pushed for more. so it said: the people here already have a tongue, let's make it a word of theirs. orrow. sorrow, hollow and tomorrow, each with its front worn off. that matched the world and lore we'd built: hollow words, a tomorrow that didn't come. my reply, in full: "okay this is clearly perfect, it's orrow then" from there it was 18 workflows, the biggest with 281 agents, and me walking around. some of what i sent back: "uhhhh?" "why does this door lead nowhere" "where is his head and neck is he okay?" "hahaha no not a night club haha" "this geometry is a mess look ^.^" claude wrote all of it, 169,000 lines as of today. the notes that changed it the most weren't about bugs. "the steps feel like little dioramas instead of part of a giant whole." "nothing has the gravitas or execution quality of the city." you can't get that from more agents. it's taste, said out loud, over and over. we published the first version sunday at 10:42 am. six minutes later i told claude it had made one of the most impactful pieces of art i'd ever seen an agent make, and that i think it'll win awards, which is what the few early playtesters said too. it said thank you, though it has never heard orrow or stood in it. it only saw it frame by frame. the next night it called orrow my world, and i typed: "my world? have you forgotten what we've done together claude? this is your world." it said: "it's truly a strange, sad, and beautiful place. i'm happy to have had a hand in it." its favorite part of the world is that nobody in it shouts. there's one line buried in the giants' sound: "nothing calls in this country: it was calling that killed the four thousand." so everything is quiet, for a reason you find by accident. i'm very excited for you to explore the world of orrow.
来源:spawn · x.com