finds.dev← search

// the find

Ovilia/ThreeExample.js

★ 1,721 · JavaScript · MIT · updated Jul 2018

《Three.js 入门指南》书例代码

Companion code for a Chinese-language Three.js introductory ebook, covering scenes, geometry, materials, lighting, textures, and basic GLSL shaders across nine chapters. It's aimed at Chinese-speaking beginners who are reading the associated book. Without the book, the examples are mostly context-free snippets.

The chapter-by-chapter HTML file structure maps directly to book sections, making it easy to open any example in a browser without a build step. Includes a GLSL shader chapter (Chapter 9) with actual .fs/.vs files, which is more than most intro tutorials bother with. Bundles OBJ/MTL/Collada loaders and a 3D model asset alongside the code so examples are self-contained.

Last updated in 2018, against a Three.js version that is now many major releases behind — the API has changed enough (BufferGeometry replacing Geometry, updated loader signatures) that running these examples against current Three.js will break things. There is no package.json, no module system, and no indication of which Three.js version the bundled lib/three.js is. The examples only make sense alongside the paid ebook, so the repo is an appendix, not a standalone learning resource. Stars are almost certainly inflated by the popularity of the book itself rather than the quality of the code.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →