← All projects
Project record1 mention
Originally shared on Hacker News

From-scratch JavaScript 3D engine

A 3D engine written from scratch in JavaScript, specialized for the author's game. It deliberately avoids object orientation and heavy code organization to minimize complexity, memory usage, download time, and CPU time, and minimizes GPU draw calls so more varied graphics can be rendered at the same speed.

Last shared
01 / The problem

What it addresses

Existing 3D libraries add unnecessary complexity and overhead on top of the OS and browser; reducing code complexity, memory, download/CPU time, and GPU draw calls lets the device's full power be used for rendering.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. From-scratch JavaScript 3D engine

    A 3D engine written from scratch in JavaScript, specialized for the author's game. It deliberately avoids object orientation and heavy code organization to minimize complexity, memory usage, download time, and CPU time, and minimizes GPU draw calls so more varied graphics can be rendered at the same speed.

    Problem: Existing 3D libraries add unnecessary complexity and overhead on top of the OS and browser; reducing code complexity, memory, download/CPU time, and GPU draw calls lets the device's full power be used for rendering.

    Posted by @kbrecordzz · Original source ↗

    Source text · @kbrecordzz · · Source ↗

    Tried to rewrite the Javascript 3D library three.js to make it smaller and more specialized for my game. Today I’m ending that and instead starting to write a 3D engine from scratch with the knowledge I learned from this rewrite process.