跳到正文
Neko Legends· 来源· @softpoo · X·· 2 小时前AI 评分28
正文 · 原文

On more positive note, I'm going to show more tutorials and work in progress things I'm doing in regards to game development, since it's my - er, was my - profession.

Here's a WIP town demo in my Neko-Engine showing off a technique called impostors.

There are a few ways to do impostors — if you just ask an AI to build them, it'll usually crank out janky low-poly 3D models to fake distant trees and buildings.

There's a better trick (not really a secret, just mostly known by game devs): runtime sprite capture that seamlessly swaps between real 3D models and 2D sprites. In other words, distant 3D buildings turn into 2D sprites on the fly — and you can't tell the difference because the sprite re-captures whenever your camera angle changes.

The start frame with it off caps at 222 FPS on a radeon 9700 and 8.4 million triangles.

The end frame with it on caps at 300 FPS with 6.4 million triangles, 2 million triangles less, 78 FPS more, and looks the same.

来源:Neko Legends · x.com