[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112915":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":14,"starSnapshotCount":14,"syncStatus":15,"lastSyncTime":29,"discoverSource":30},112915,"room-at-dawn","Leonxlnx\u002Froom-at-dawn","Leonxlnx","A photoreal bedroom at dawn, built entirely from code in three.js — procedural geometry and textures, path-traced baked light, 4K HDR film renderer.",null,"JavaScript",107,23,55,0,2,18,51,7,62.19,"MIT License",false,"main",true,[],"2026-11-12 14:19:05","2026-11-23 09:24:57","# 6:51 — a room at dawn\n\nA photoreal bedroom at first light, built **entirely from code** in three.js and running in the browser.\nNo 3D model files, no image textures, no HDRIs — every mesh, texture and light value is generated.\n\n![The room at dawn](docs\u002Fmedia\u002Fhero.jpg)\n\n| | |\n|---|---|\n| ![Windowsill](docs\u002Fmedia\u002Fsill.jpg) | ![Desk, close](docs\u002Fmedia\u002Fmacro.jpg) |\n| ![Duvet](docs\u002Fmedia\u002Fduvet.jpg) | ![Leaves](docs\u002Fmedia\u002Fleaves.jpg) |\n| ![Desk](docs\u002Fmedia\u002Fdesk.jpg) | ![Wide](docs\u002Fmedia\u002Fwide.jpg) |\n\nAll images are frames from the film.\n\n**Film:** a 45-second cinematic rendered from the same scene — 3840×2160, HDR10 (PQ \u002F BT.2020, 10-bit HEVC),\nwith a quiet piano piece and recorded dawn birdsong — is attached to the [latest release](..\u002F..\u002Freleases\u002Flatest), together with SDR 4K and 1080p versions.\n\n## Run it\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen http:\u002F\u002F127.0.0.1:5319 and click to enter.\n\n| Key | |\n|---|---|\n| `W A S D` \u002F arrows | walk |\n| mouse | look |\n| `Shift` | walk slowly |\n| `Ctrl` or `Q` | crouch |\n| `C` | play the film's camera moves live |\n| `M` | mute |\n| `Esc` | release the mouse |\n\nResolution adapts to hold frame rate; it was tuned on an integrated GPU (Radeon 780M).\n\n## How it works\n\n- **Geometry** — furniture, cloth, plants and trees are generated procedurally with seeded randomness\n  (`src\u002Fscene`). The duvet is a designed height field with folds, piping and a hand-drawn print; the pothos\n  vines hang on catenary curves with instanced leaves; the trees outside grow from a branching skeleton\n  with ~118k leaf cards.\n- **Textures** — synthesised at load time from noise and Canvas2D drawing (`src\u002Fcore\u002Ftex.js`,\n  `src\u002Fscene\u002Fmaterials.js`): woodchip wallpaper, oak laminate, linen weave, cable knit, leaf atlases, postcards.\n- **Light** — there are no real-time lights. A small CPU path tracer (`src\u002Fbake`, web workers +\n  [three-mesh-bvh](https:\u002F\u002Fgithub.com\u002Fgkjohnson\u002Fthree-mesh-bvh)) traces sky light through the window:\n  a first pass of full paths, then a final gather with next-event estimation through the window opening\n  combined by multiple importance sampling. Irradiance and its dominant direction are stored **per vertex**\n  (`public\u002Fbake\u002Fgi.bin`), so normal maps still shade. Reflections come from a box-projected capture of the room.\n- **Wind** — the trees sway in the vertex shader (crown lean → limb → branch → leaf flutter under a\n  travelling gust field), a pure function of time so offline frames can sample the shutter.\n- **Picture** — HDR pipeline with contact AO, bloom and a filmic grade (`src\u002Frender\u002Fpipeline.js`). The film\n  renderer averages jittered sub-frames per frame for anti-aliasing, thin-lens depth of field and a 180°\n  shutter, then writes HDR10 and SDR masters through ffmpeg.\n\nMore detail: [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md).\n\n## Re-baking and rendering\n\nNeeds Chrome (or Edge) and, for the film, ffmpeg on the PATH. With `npm run dev` running:\n\n```bash\nnode tools\u002Fshot.mjs bed wide            # stills of named cameras -> shots\u002F\nnode tools\u002Fshot.mjs --bake 256          # re-bake the lighting (CPU, ~20–30 min)\nnode tools\u002Ffilm.mjs                     # render the film shots (GPU), intermediates in out\u002F\nnode tools\u002Ffilm.mjs --concat            # final HDR10 + SDR encodes (adds out\u002Fsoundtrack.m4a if present)\n```\n\n## Notes\n\n- Sound is recorded, never synthesised: a piano piece by Kevin MacLeod and field recordings of a dawn chorus\n  and rustling leaves, filtered as if heard through the closed window. See [CREDITS.md](CREDITS.md).\n- Reference mood: early morning, lamps off, blue light, a lot of green outside.\n\n## License\n\nMIT — see [LICENSE](LICENSE). Built with [three.js](https:\u002F\u002Fthreejs.org).\n","这是一个完全通过代码实时生成的、高度逼真的黎明卧室三维场景，基于Three.js在浏览器中运行。项目不依赖任何外部3D模型、图像纹理或HDR环境贴图，所有几何体（家具、织物、植物）、程序化纹理（壁纸、木纹、亚麻等）和全局光照数据均通过JavaScript动态生成；采用CPU路径追踪预烘焙光照（顶点级辐照度+主方向），结合HDR渲染管线与电影级后期处理，输出4K HDR10\u002FSDR视频及交互式Web体验。适用于WebGL图形技术演示、程序化内容生成教学、实时渲染研究及沉浸式数字艺术展示。","2026-11-24 04:44:35","CREATED_QUERY"]