
AI 原生浏览器 3D 引擎:在 WebAssembly 中运行 Rust 核心,用于工作线程,支持 WebGPU 和 WebGL2 渲染,以及带有 three.js 风格名称的 TypeScript API。
概览
一款用于游戏和重型3D应用的浏览器3D引擎。它的Rust核心运行在工作线程上,使用WebGPU或WebGL2绘制,你可以用TypeScript写3D场景,命名为three.js风格。 预测试版:null3D还没有发布。npm上还没有任何内容。 快速入门 ·功能 ·工作原理 ·运行地点 ·文档 ·从three.js移植 ·路线图 ⭐ 如果你想看到这个引擎被建造出来,星星能帮助其他人找到它。 基准场景S1:10万个方块,草图代码每帧移动,由Null3D用WebGPU绘制。 null3D 是一个浏览器 3D 引擎,旨在替代 CPU 时间限制场景的three.js。这种情况适用于许多移动物体、深度场景图、动画和剔除。该引擎的核心是编译成 WebAssembly 的 Rust,运行于 worker 线程上,因此页面的主线程保持空闲。 它用 WebGPU 绘制,也用 WebGL2(缺少 WebGPU)绘制相同的草图代码。这在手机上尤为重要,因为许多设备仍然没有 WebGPU。
概述(AI 翻译)
零3D
一个用于游戏和重型3D应用的浏览器3D引擎。它的Rust核心运行在工作线程上, 它用WebGPU或WebGL2绘制,你用TypeScript写3D场景,命名为three.js风格。
预备测试版:null3D尚未发布。 NPM上还没有任何内容。
快速入门 ·特色 ·工作原理 ·它的流向 ·文档 ·从three.js移植 ·路线图
⭐ 如果你想看到这个引擎被建造出来,星星能帮助其他人找到它。
基准场景S1:10万个方块,草图代码每帧移动,由Null3D用WebGPU绘制。
什么是null3D?
null3D 是一个浏览器 3D 引擎,旨在替代 CPU 时间限制场景的three.js。这种情况适用于许多移动物体、深度场景图、动画和剔除。该引擎的核心是编译成 WebAssembly 的 Rust,运行于 worker 线程上,因此页面的主线程保持空闲。
它用WebGPU,以及缺少WebGPU的WebGL2,都使用相同的草图代码。这在手机上尤为重要,因为许多设备仍然没有WebGPU。在GPU是极限时,null3D则力求匹配three.js,因为两个引擎使用相同的浏览器图形API。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
null3D
A browser 3D engine for games and heavy 3D apps. Its Rust core runs on worker threads, it draws with WebGPU or WebGL2, and you write your 3D scenes in TypeScript with three.js-style names.
Pre-alpha: null3D has no release yet. Nothing is on npm yet.
Quickstart · Features · How it works · Where it runs · Docs · Porting from three.js · Roadmap
⭐ If you want to see this engine built, a star helps other people find it.
Benchmark scene S1: 100,000 boxes that sketch code moves every frame, drawn by null3D with WebGPU.
What is null3D?
null3D is a browser 3D engine that aims to replace three.js where CPU time limits a scene. That happens with many moving objects, deep scene graphs, animation and culling. The engine’s core is Rust compiled to WebAssembly, and it runs on worker threads, so the page’s main thread stays free.
It draws with WebGPU, and with WebGL2 where WebGPU is missing, from the same sketch code. That matters most on phones, where many devices still have no WebGPU. Where the GPU is the limit, null3D aims to match three.js, because both engines use the same browser graphics APIs.
Quickstart
The first release, 0.1.0, puts the packages on npm. Until then, run the demos from a clone of this repository.
Install the engine from npm and import it, as you would three:
bun add @null3d/engine
bun add -d vite @null3d/vite-plugin
The Vite plugin sends the headers that worker threads need, builds the sketch worker, and compiles your WGSL for WebGPU and WebGL2:
// vite.config.ts
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add null3d-engine/null3d