[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113777":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},113777,"crimson-loong","ChetasLua\u002Fcrimson-loong","ChetasLua","赤龍 Crimson Loong: a 90 s dragon film in one HTML file. Pure three.js, every mesh, texture and note is code, zero assets.","https:\u002F\u002Fchetaslua.github.io\u002Fcrimson-loong\u002F",null,"HTML",257,49,116,0,3,46,103,9,78.04,false,"main",true,[],"2026-11-13 09:38:11","2026-11-23 08:55:47","# 赤龍 · Crimson Loong\n\nA 90-second dragon film that plays live in the browser from **one HTML file**.\n\n**Watch it live: https:\u002F\u002Fchetaslua.github.io\u002Fcrimson-loong\u002F** (click once for sound)\n\nA red loong lies coiled on a karst spire above a valley of red maples and vermilion halls. A white loong pours out of a storm cloud, the two fight across the sky, plunge into the lake, and rise together after a pearl. Then it loops.\n\n![Stills from the film](stills\u002Fv2-sheet.jpg)\n\n## Pure three.js\n\n- The only library is [three.js](https:\u002F\u002Fthreejs.org) r180, inlined into the page. No add-ons, no post-processing package, no physics engine, no audio library.\n- No assets. There is no image, model, font, HDRI or sound file anywhere in the page: no `data:` URIs and no loaders in use. Every mesh, texture, shader and note is generated by code when the page loads.\n- No network. The page requests nothing after it has been opened; it runs from disk (`file:\u002F\u002F`) as well as from a server.\n- Sound is synthesised in a Web Worker and played through the Web Audio API.\n\n## Watch it\n\nUse the live link above, or download `index.html` and open it in a desktop browser with WebGL 2. It runs straight from disk.\n\n| Input | Action |\n|---|---|\n| Click, tap or `M` | Sound on |\n| `Space` | Pause and resume (picture and sound together) |\n| Pointer | Nudges the camera |\n\nThe page holds 60 frames a second at up to 3.7 megapixels on an Apple-silicon laptop GPU and lowers its internal resolution by itself when a frame runs long.\n\n`v1.html` is the first version: 60 seconds, one dragon.\n\n## How it is put together\n\nSource lives in `src\u002F` as plain scripts that are concatenated in name order. `python3 tools\u002Fbuild.py` inlines three.js and the source into `dist\u002Fcrimson-loong.html`; `index.html` is a copy of that file.\n\n| File | What it makes |\n|---|---|\n| `05_glsl.js` | Shared shader chunks: height fog, aerial haze, drifting cloud shadows, wind |\n| `10_sdf.js`, `15_tex.js` | Signed-distance modelling kit; detail maps baked at load |\n| `20_sky.js` | Ray-marched cumulus baked into drifting layers, the storm, the rift, rain |\n| `30_rock.js` | Karst spires and cliffs from displaced parametric surfaces |\n| `35_arch.js` | Gate, halls, pavilions; lanterns integrated as pendulums; cloth |\n| `40_flora.js` | Maples, Huangshan pines, shrubs, grass, cliff plants |\n| `58_dlook.js`, `60_dragon.js` | The dragons: scale shader, heads, manes, wetness; paths and poses |\n| `66_wake.js` | How plants, dust and stones answer a passing body or a shock front |\n| `68_water.js` | Lake with a planar mirror, current, falls, bow sheets and the splash |\n| `70_fx.js` | Fire, frost, lightning, beam, blast, spray, shed water |\n| `72_air.js` | Flowing mist, birds, leaves, smoke, fireflies, gust fronts |\n| `80_post.js` | HDR target, ambient occlusion, bloom, grade, lens |\n| `85_audio.js` | The score and every sound effect, synthesised |\n| `88_film.js` | Beat sheet, camera, wind |\n| `90_main.js` | Boot, lights, render loop, adaptive quality |\n\nEverything on screen is a pure function of film time, so any frame can be rendered on its own and in any order. Effects that need memory (rings on the lake, torn leaves, swinging lanterns) read tables built once at load.\n\n## Build and test\n\n```bash\npython3 tools\u002Fbuild.py\n```\n\nThe other scripts in `tools\u002F` are the test rig used while making the film: a headless-Chrome capture daemon (`capd.mjs`, `cap.py`) that renders exact frames to images and exports the score as a WAV, a frame-cost probe (`perf.py`), an image diff, and a workspace helper (`ws.py`). They need Node, Python 3 with Pillow, and a local Chrome.\n\n## Credits\n\n- [three.js](https:\u002F\u002Fgithub.com\u002Fmrdoob\u002Fthree.js), MIT licence. The licence text is in `vendor\u002FLICENSE` and the copyright banner is kept in the built page.\n- Made as an answer to scottstts' \"Dragon's Nest\", which used generated 3D assets; this one uses none.\n","赤龍 Crimson Loong 是一个可在浏览器中实时播放的90秒三维动画短片，完全封装于单个HTML文件中。项目基于 three.js（r180）纯代码生成全部内容：所有几何体、纹理、着色器、音效及场景元素均在运行时动态合成，不依赖任何外部资源文件或网络请求，支持离线运行（file:\u002F\u002F）。其技术特点包括SDF建模、程序化纹理烘焙、Web Audio合成音效、自适应渲染分辨率与纯GPU渲染管线。适用于WebGL演示、前端图形编程教学、轻量级交互式数字艺术展示及离线多媒体内容分发等场景。",2,"2026-11-24 04:46:59","CREATED_QUERY"]