AnnoyingC/scene-cv
Tentang
An explorable 3D résumé template: a desk room at a rainy night window, built with Blender and three.js.
Desain dan mediaYang dapat Anda lakukan
- Language - The last item on the bottom line offers English, 简体中文, Français and 日本語. The page changes in place, the computer screen, papers, messages and contact list included, and the next visit opens in the same language
- Hover - Objects brighten and a hint appears next to them; a tape lifts a little out of the rack
- Panel - In the Work view there are ◀◀ ■ ▶▶ controls (keys ← → and Space) and a link to the project
- Notepad / telephone - The contact details are handwritten on the notepad (a decal on the baked paper that follows the desk lamp's light), and the panel has clickable links
Pertumbuhan bintang terukur
- dalam 24 jam
- +17
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliSceneCV · Step into your résumé
English · 简体中文 · Français · 日本語
A 3D résumé template you can walk into.
The old computer tells visitors about you, the papers on the desk are your publications (and a newspaper clipping, if a paper ever wrote about you), the TV plays your work, the bookshelf holds what you have read and the notepad has your contact details. Look around, click things, and get to know someone.
Live demo · Run it locally · Make it yours · What you can do · Credits
https://github.com/user-attachments/assets/072a3eb5-5a7f-4fcb-9067-c764a2a01d85
The film, 3 minutes 20. GitHub starts videos muted: turn the sound on for the score.
Full-quality original: SceneCV-1080p.mp4 (1080p, 539 MB) and English subtitles on the release page.
- The objects are the menu. Click the computer, the papers, a tape, the bookshelf, the cork board or the notepad, and the camera flies over and opens that section. The books on the shelf are real books: click one and it slides out, flies up to you and opens. The top navigation bar and the address bar follow along, so every view has a link you can share.
- The view outside is alive. Rain keeps falling over Tokyo at night under low clouds lit by the city, office and home lights switch on and off, car lights crawl along the streets and the expressway, obstacle lights blink on the high-rises, and now and then a few drops fall from the eaves into the gutter.
- The lighting is baked. Blender scripts build the room and bake its lighting into textures, so the browser only has to display it; the first visit downloads about 13 MB. Switching lamps on and off or changing tapes still changes the light in the room.
- One page, two ways to see it. The 3D room and the plain-text version read the same
index.html; devices that cannot run the 3D room get the text version automatically. - A static site with no dependencies. There is no build step and no npm dependency. Edit
index.htmland put it on GitHub Pages, Vercel or Netlify.
Inspired by Felix Rieseberg's 3D room at felixrieseberg.com. The name, résumé, work, reading list, photos and contact details in this repository are all samples; replace them with your own.
A look around
https://github.com/user-attachments/assets/0c012f05-fda7-4ef7-8263-f7515045f4ca |
https://github.com/user-attachments/assets/33406382-5451-4920-a9b5-262ca0cb8a5f |
| Opening The first half-minute of the film: the camera comes down out of the rain clouds over Tokyo, Tokyo Tower rises into view, the title settles over the city, and a scan line turns the whole picture into the pixel art of the computer's screensaver. |
Making of the view How the city outside the window was built: 17,000 buildings from PLATEAU and OpenStreetMap as a white model, windows cut from three night photographs, satellite night-light data for the distant glow, the trees of the palace grounds, a cloud with real depth, and the camera's path back to the window. |
https://github.com/user-attachments/assets/9bd4adf4-3b86-425b-9b5f-b8c794015703 |
https://github.com/user-attachments/assets/02776670-15a5-4dad-9a9a-710481661cf1 |
| Computer · About While nobody uses it, the computer runs a screensaver: the view outside the window as pixel art, with the title. Click it and, as the camera reaches the screen, the saver dissolves into a screen laid out like an 80s Japanese adventure game: a pixel scene, a command list (who I am, what I'm up to, how I got here, how I think, ask me) and a message box where the text types itself out page by page. |
Papers Click the stack next to the keyboard: a folded newspaper unfolds and two printed papers fan out behind it. The stapled conference paper lifts a corner and turns each page over its staple; for the journal article the paper clip comes off, the top sheet goes to the back and the clip goes back on. |
https://github.com/user-attachments/assets/00c514d9-40ac-4fc0-affc-f9814c34ce23 |
https://github.com/user-attachments/assets/49e96251-a085-443c-8fb1-bfd7db526b52 |
| VCR · Work Each tape is a short programme in chapters, with subtitles under the TV and, if you like, a narration. Click a tape on the rack and it flies into the VCR; after a burst of static it starts playing and the TV's colours light up the room. When a programme ends, the next tape goes in. The first sample tape, Unfog, is a made-up project told the way a finished programme looks. |
Bookshelf · Reading list Turn left to the bookshelf. Click a book and it slides out, flies up to you and opens: the left page carries the book's signature line, the right pages carry your highlights. |
![]() |
![]() |
| Cork board · Photos Aged photos are pinned in two loose rows under the wall clock, with their corners curling. Up close you can drag them around. |
Lights The desk lamp and the room lights can be switched off, leaving only the screens and the city outside. The image has a cinematic grade: warm lights bleed an orange-red halo, small bright lights draw thin horizontal streaks, and the focus follows whatever the camera is looking at. |
![]() |
![]() |
| Turn left · Bookcase Drag left and the camera turns past a painting on an easel in the corner to the bookcase on the left wall. Every book on its shelves can be pulled out and read. |
Record player · Music Two records come with the template, sides A and B of the Open Goldberg Variations (public domain). Side A starts playing on its own; click the record player to change records, set the volume or switch the vinyl sound off. |
https://github.com/user-attachments/assets/83799c29-4751-493d-af0f-064885b21a7d |
https://github.com/user-attachments/assets/3266b5bc-f9f4-431d-9087-a6c6a343a723 |
| Answering machine · Messages At the left end of the desk, the red light next to the MESSAGES key blinks once for every message you haven't heard. Click the machine and the messages play as subtitles, word by word, with who left them underneath. They are what other people say about you. |
Telephone · Leave a message Pick up the rotary phone: after the dial tone the dial turns for three digits and ticks its way back, it rings once and the answering machine takes the call: visitors write in the same subtitle area, and Enter sends it to your email through a form service. In this template the line is a demo and nothing is sent. |
![]() |
![]() |
| Activity Almanac · Usage A carved wooden calendar hangs beside the bookshelf. Each tile is a day over the last twelve weeks, stained darker the busier it was. Click a carving to switch between GitHub contributions and Codex or Claude tokens, and a tile to read that day. The template shows labelled sample data; a local script fills it with your own. |
Look out the window Click the window to see Tokyo Tower on a rainy night. Drag to look around, then choose Back to desk to return. |
Interface language and fonts
The interface comes in English, 简体中文, Français and 日本語. The last item on the room's bottom line opens the choice (the text version lists the four under the title); the page switches in place without reloading and remembers the choice. A first visit follows the browser's language, and ?lang=zh-CN (or en, fr, ja) picks one in a link. What the interface says is translated: the navigation bar, the hints on objects, the achievements, the panels, the record card, the papers viewer, the answering machine and phone captions, the loading screen and the computer's prompts; dates follow the language too. The template's sample content comes in all four languages as well: the computer's menu, the three papers on the desk, the contact list and the messages on the answering machine. The sample books stay in English, as do the credits entries and the words printed on objects in the room (the calendar cubes, the record labels, the newspaper's masthead).
Fonts live in assets/fonts/ (Latin subsets, SIL OFL; the licence texts are in the same folder): Cinzel for the navigation and headings, EB Garamond for hints, panels and buttons, Playfair Display for the big titles on the tape sleeves and the newspaper headline, UnifrakturMaguntia for the newspaper's masthead and Caveat for the handwritten notes on the papers. The papers' body text uses Times, Georgia and Helvetica from the system. Chinese uses Songti and Japanese Hiragino Mincho or Yu Mincho from the system, set apart so that Japanese text gets Japanese glyph forms; neither is ever slanted into a fake italic, and their sizes and spacing are tuned separately. The Chinese and Japanese papers are set the way papers are in those languages: Song or Mincho text with sans headings and captions. The site serves its own font files and makes no requests to Google.
Run it locally
You need Node.js 22 or newer. There are no npm dependencies and nothing to install or build:
node scripts/serve.mjs
Then open http://localhost:5173. ?room=1 forces the 3D version and ?plain=1 forces the text version. Everything is static files, so the folder can go straight to GitHub Pages, Vercel or Netlify.
Click the window to move from the desk to the glass and look over the original Tokyo nightscape. Drag or use the arrow keys to look around. Choose Back to desk or press Escape to return. The window seat also has a direct link at ?room=1#window. The optional lighting comparison is available at ?room=1&window=compare#window.
Scope: the repository contains the desk room, its front-end interactions, the Blender scripts that build it and a local static file server. There are no accounts, no database, no API for saving a résumé and no online editor. Three.js and the Draco decoder load from a CDN, so the first run needs a network connection.
Checks: npm test covers the local server's access rules, the credits list and the language tables; npm run audit:public scans tracked files for local paths, common credential patterns, contact details and files that should not be published. You can also keep a .private-terms word list that stays out of Git, listing words that must not appear in public files (see scripts/audit_public.py). Automated scans do not replace reading new content and third-party assets yourself.
What you can do
| Interaction | Details |
|---|---|
| Opening view | The camera faces the computer on the desk under the window and orbits around it. Drag left to turn past the painting on the easel in the corner and stop facing the bookcase on the left wall, the whole of it in view (the orbit centre slides over to the bookcase as you turn, and slides back when you turn back; leaving the bookshelf view also brings you back here); drag right to see the record player on the sideboard and the cork board (the centre shifts right and forward, the camera pulls back and tilts down slightly so the record player fits, and returns the same way). Scroll or pinch to zoom. The TV starts playing your work as soon as the page opens and cycles through the tapes |
| Navigation bar | Your name on the left; About / Papers / Work / Books / Photos / Contact on the right. Clicking an item does the same as clicking its object: the camera flies over, the panel opens and the address changes. Hovering an item highlights its object. The current item is shown inverted; click it again or click your name to return to the desk. At first only About / Work / Contact are readable: Papers, Books and Photos are blurred placeholders that cannot be clicked (hovering says "Not yet discovered") until the visitor finds them in the room (see Achievements). The text version has no locks |
| Language | The last item on the bottom line offers English, 简体中文, Français and 日本語. The page changes in place, the computer screen, papers, messages and contact list included, and the next visit opens in the same language |
| Achievements | Steam-style: the first time a visitor finds something, an achievement card slides in at the bottom right (it moves aside when a panel is open there): picking up the papers on the desk (Paper Trail), walking to the bookshelf (Bookworm) and taking a closer look at the cork board (Pinned Memories). At the same moment the matching navigation item comes into focus and becomes clickable. Unlocks are remembered in the browser (localStorage), so returning visitors don't have to find them again |
| Hover | Objects brighten and a hint appears next to them; a tape lifts a little out of the rack |
| Computer | Idle, the screen shows a screensaver: the view outside the window drawn as pixel art (twinkling stars, the odd window light switching, the obstacle lights blinking) under the title and the Trendoday laurel. Click the computer and the camera flies to the screen, where the saver dissolves into a screen laid out like a PC-98 adventure game: a scene window (the same pixel view, reframed for each item), a command window listing the items of the .pc-menu inside #about, and a message box. Each item is a page of text or a list you can open (a timeline, notes, Q&A); the text types itself out a page at a time, ▼ meaning there is more. ↑↓ select, Enter / → / Space open or turn the page, Esc / ← go back, number keys open an item directly and L switches language (one menu per language). A timeline entry with data-tape adds "Play on the TV" for the matching tape. A minute after the visitor leaves the computer, the screensaver comes back |
| Papers | The stack left of the keyboard: a folded newspaper lying across a stapled conference paper and a paper-clipped journal article. Click it and the whole stack comes up to the viewer (#papers, #papers/conference, #papers/journal): the newspaper unfolds in front, the papers fan out behind it. ← → turn pages: newspaper pages turn over their left edge; the stapled paper lifts the corner of the page, which then stands up around the staple and goes to the back; for the paper-clipped one the clip slides off, the top sheet moves behind the others and the clip slides back on. After the last page the next document comes to the front. The buttons below jump to a document, and a data-pdf attribute adds a download button. Old #resume links still work |
| Answering machine · Messages | At the left end of the desk, behind a black rotary phone. While there are messages the visitor has not heard, the small red light next to the MESSAGES key blinks once per message, then pauses. Click the machine: the tape starts, it beeps, and each message appears word by word at the bottom of the screen, with who left it underneath; click again to skip to the next one. Two beeps and "End of messages" close it, and the light stays off for that visitor until the messages change. The camera does not move; Esc stops playback |
| Telephone · Leave a message | The black rotary phone in front of the answering machine. Click it: the handset is picked up, the line rings once, the machine answers with a beep and its light stays on while the visitor writes. The message is typed straight into the caption area at the bottom (same type as the messages), with an optional line for name and how to reach them; Enter sends it to your email through a form service, Esc hangs up and keeps the draft. One message a minute. With the template's example address the phone runs as a demo: everything works except that Enter sends nothing and says so. With no address at all the phone simply opens Contact |
| TV / tape rack | Work. The tapes on the rack (a Sketchfab model) stand upright in sleeves that the page draws from #work: the name runs down the spine, the front looks like an old rental tape and the back carries the summary and a barcode (the name is the <a> text, the colour is data-color). Click any tape: the previous one flies back to its slot, the new one lifts out whole and flies into the VCR, and after the static it starts playing while the TV's colours light the room. A tape can be a short programme in chapters (title card, an animation drawn in code, number cards, images, before/after wipes, video, side-by-side comparisons, end card), with subtitles and chapter marks under the TV; a programme can also carry a narration, with its subtitles appearing sentence by sentence in time with the voice. ↑↓ or clicking the TV changes chapters, and when it ends the next tape goes in. The TV keeps playing while you look elsewhere in the room, but its sound (static, tape hiss, narration, soundtrack) is only heard in the Work view |
| Panel | In the Work view there are ◀◀ ■ ▶▶ controls (keys ← → and Space) and a link to the project |
| Notepad / telephone | The contact details are handwritten on the notepad (a decal on the baked paper that follows the desk lamp's light), and the panel has clickable links |
| Bookshelf | On the left wall (drag left to turn towards it). The camera flies over without opening a list: the shelf itself is the table of contents, so visitors click the book they want (hovering shows its title). Books slide out a little on hover; clicked, a book slides out, flies up and opens (the address becomes #shelf/<title>), again without a panel. Books with many highlights have several pages: click the right page to turn forward, the left page to turn back, and anywhere else to put the book back; ← → turn pages and move to the next book at the end, Esc closes it |
| Cork board · Photos | Under the wall clock, with aged photos pinned to it. Click it and the camera moves up to the board, where the photos are viewed in place (#photos) and can be dragged around |
| Record player | The first record starts playing on its own once the room has loaded: browsers don't let a page make sound before the visitor does something, so it starts at their first click, drag or key press. A visitor who pauses it is remembered and it won't start on its own next time, and switching Sound off in the footer pauses it too. Click the record player to open the record card: choose a record, play or pause, set the volume and switch between a vinyl sound and the clean recording; the record on the turntable takes the label of the chosen record, spins up to about 33⅓ RPM and slows to a stop when paused. Two records come with the template: Bach's Goldberg Variations played by Kimiko Ishizaka, side A (the Aria and Variations 1–7, the default) and side B (Variations 13 and 30 and the closing Aria), both public domain (see Make it yours to use your own music). With no tracks listed the turntable holds a blank record |
| Desk lamp, floor lamp, cabinet lamp | Click to switch them on and off; the lighting changes in real time |
| Credits | The "Credits" link in the footer (#credits): the author, original link, licence and changes for every third-party asset in the room. The camera stays where it is and only the panel opens |
| Routes | #about #papers #work #shelf #photos #online #credits are real addresses you can share; the browser's back button, the on-page "← Back", Esc and the name in the navigation bar all return to the desk |
| Loading | A download progress bar (about 13 MB); devices that cannot run WebGL2 go straight to the text version |
| Phones | Phones get the text version first (the room is made for big screens and downloads about 13 MB), with a link at the top to open the 3D room anyway; the choice is remembered. In the room, the hint says "Tap" instead of "Click"; in portrait the panel sits at the bottom and the camera tilts down to keep the object above it; resolution drops automatically and bloom and depth of field are switched off to keep the frame rate up |
Make it yours
All content lives in index.html: the 3D version reads it, and the text version is that HTML itself. How to write each section is explained in comments inside index.html.
- Navigation: every
<section>with adata-navattribute gets an item in the top bar, labelled with thedata-navvalue. If you add a section that has no object in the room yet, its navigation item opens that section of the text version. - Name and introduction:
<h1>,.taglineand#about. The computer's menu is the.pc-menuinside#about(one per language). - Languages: the interface's words live in
js/i18n/<code>.js, one table per language;en.jsis the reference, andnpm testchecks that the others have the same keys and placeholders. To add a language, copyen.jsand translate it, add a line toLANGSinjs/i18n.js, and add it to the default list in the small script at the top ofindex.htmland to theBOOTtable injs/boot.js(the loading screen appears before anything else has loaded).<html data-langs="en zh-CN">limits the choice. Content can come in several languages too: write a block once per language with the samedata-l10nand its ownlang, as the papers,#messages,#onlineand the.pc-menus do, and the page shows the version that matches the interface, or else the one withoutlang. If you only write in one language, delete the other versions. Section names in the navigation follow the interface while they keep the template's English names; once you rename a section your name is used, or give one per language withdata-nav-fr,data-nav-jaand so on. - Papers:
#papersholds three documents (article.pp-doc), front to back as they sit in the hand: a newspaper (front page and an inside page), a two-column conference paper and a two-column journal article.data-bindsets how each is held together (fold,staple,clip),data-tabsadds sticky tabs,data-pdfa download button; each page is a fixed 794 × 1123 layout (.pp-newsfor the front page,.pp-news.pp-news-infor an inside page,.pp-conf,.pp-jour). The red-pen notes and highlights are optional marks you can delete. Keep a newspaper page only for a story that really ran. Your own papers can go inassets/papers/papers.htmlinstead (same markup; the folder is ignored by Git). The desk shows each document's first page as a baked texture: after changing them, runnode scripts/render-papers.mjsand bake the room again. - Work: each
<li>in#workis a tape; the rack on the desk holds 4.data-tapepicks what the TV shows:bars/synth/bounce/rainare pictures drawn in code, andshowis a programme in chapters whosedata-showpoints to its programme file (assets/tapes/<name>/show.json; the chapter types are documented at the top ofjs/tapes/show.js, and there are samples inassets/tapes/sample/: a placeholder programme, and Unfog, a made-up project told as a finished, narrated programme). Animations used in programmes are written injs/tapes/anims.js.data-colorsets the colour of the sleeve and of the TV's light. - Reading list: each
<li>in#shelfis one book:<a>holds the title and link,.bythe author,<blockquote class="key">the line printed on its own on the left page, and the other<blockquote>s the highlights on the right pages.data-size(width × height × thickness in mm),data-kind(hardcover / paperback),data-color/data-ink,data-style(the style of the generated cover) anddata-read/data-progress(when you finished it / how far you are) are explained in the comments. Changing the number of books or their sizes means re-baking the room, because the books are modelled from those sizes. Books fill the shelves in list order: first the shelf at eye level, then the one below, then the top one, and the remaining gaps are filled with old books. Real covers go inassets/books/covers/together with acovers.json(title → image file); that folder is ignored by Git, andjs/main.jsadds the covers by title at load time, falling back to generated covers. - Photos: each
<li>in#photosis an<img>plus an optional caption. Age your photos first: put the originals inphotos-src/and run/Applications/Blender.app/Contents/MacOS/Blender -b --factory-startup --python blender/age_photos.py -- --src photos-src --out assets/photos. This produces<name>.webp,<name>.board.webp(for the board, 1024 px on the long side) and aphotos.jsonlist; when that list exists the cork board uses those photos, otherwise it uses the ones in#photos. Ageing means yellowing, fading, blotchy stains and mould spots, worn corners and creases; the curling corners are real geometry in the page. Photo positions are remembered in the browser; run__room.cmd('photos-reset')in the console to put them back. Ageing re-encodes the images, so the originals' EXIF data (capture time, GPS location) is not carried over.photos-src/andassets/photos/are ignored by Git; the template uses nine aged photographs of Tokyo. Photographers and CC0 sources. - Contact details:
#online, shown both on the notepad and in the panel. You can also write them inassets/resume/contact.html(a few<li>s, ignored by Git);js/main.jsswaps them into#onlineat load time. - Messages: each
<li>in#messagesis one message on the answering machine, meant for what other people say about you:data-whenis the time the machine announces, the<blockquote>is what they said (keep it spoken, like a voicemail),<p class="from">holds<b>Name</b>, role, and an optionaldata-audiopoints to a recording (otherwise the words appear at reading pace over a little tape hiss). Real messages can go inassets/messages/messages.htmlinstead (ignored by Git). With no messages the light stays off and a click only beeps. - Leave a message: the
<form class="leave-message">at the end of#messages. Put your form service's address inaction(for example a Formspree form,https://formspree.io/f/…, which emails you every submission); the phone in the room and the text version then let visitors write to you. The template ships with the example addresshttps://formspree.io/f/your-form-id: the phone then runs as a demo (nothing is sent, and visitors are told so) and the text version hides the form. Leaveactionempty and the phone opens Contact instead. If you copy this template, change the address so messages do not go to someone else. - Wall poster and prints: the wall between the corner easel and the window has room for one large poster and five small prints below it (taped up like printouts in a lab; their sizes and places are
POSTERSinblender/bake_room.py, keysposter,poster_2…poster_6). Age each image with/Applications/Blender.app/Contents/MacOS/Blender -b --factory-startup --python blender/age_poster.py -- --src <image> --out assets/posters --name <name> --key <key> --title "<hover text>": a magazine cover gets faded ink, yellowed paper, a sun-bleached side, fold lines, worn edges and faint water stains; for a paper figure add--sheet 1.414 --margin 0.06 --folds 0 --age 0.45to lay it on a lightly aged sheet of white paper. Each run adds its entry toassets/posters/posters.json; the folder is ignored by Git, since covers and figures are usually someone else's work. The public template uses Decomposition of Light as the main poster with five historical scientific prints below it. Both sets share the room’s baked lighting and white corner tape. Prints and sources. - Personal mode: the private files above (
assets/papers/,assets/resume/,assets/books/covers/,assets/photos/photos.json,assets/posters/posters.json) are only read when the page is opened with?personal(for examplehttp://localhost:5173/?personal) or the<html>tag carries adata-personalattribute. The default view uses the template samples, even if private assets exist on your machine. - Music: the repository ships with two records, sides A and B of The Open Goldberg Variations (Bach played by Kimiko Ishizaka, released under CC0; the files and how they were made are in
assets/records/). To play your own music, put mp3 files inassets/audio/(ignored by Git, since most music is copyrighted) and replace or extend the list injs/music-tracks.js(id, title, artist, mp3 path, and the colour and text of the record label; the file has an example), and the record player works: the first record in the list starts on its own when the room has loaded, a track loops once it plays, the default volume is 30%, the chosen record and volume are remembered in the browser, and audio only loads when you press play. The vinyl sound softens the highs and adds a little hiss and sparse crackle in real time; the files themselves are untouched. - A new kind of TV picture: write a module in
js/tapes/with the interfacemount({ ctx, width, height, tape }) → { frame(t, dt) }and register it injs/tapes/index.js.
Activity Almanac
Open ?room=1#activity or click the wooden calendar beside the bookshelf. Select a carving to switch sources and a tile to read a day. Keys 1–3 select a source, and arrow keys select a day. The mug has its own close-up at ?room=1#mug.
The template includes a labelled 12-week sample. To see personal usage locally, run python3 scripts/sync-activity.py (days follow your computer's time zone; --timezone Asia/Tokyo picks another) with an authenticated GitHub CLI and Agent HUD running on macOS, then open ?room=1&usage#activity. Rerun the command to refresh. GitHub supplies daily contributions. Agent HUD supplies locally indexed input plus output tokens. Gray tiles mark unavailable history. The ignored snapshot at assets/activity-local/daily.json contains daily counts and timestamps and is excluded from the Pages build.
Code layout
| File | Purpose |
|---|---|
js/main.js |
Checks the device and loads the 3D version or the text version; builds the navigation bar; swaps in local papers, a contact list and a cover list when they exist; scales the papers in the text version |
js/nav.js |
The navigation bar: built from the section[data-nav] elements; in 3D it calls the scene's go() (the same entry point as clicking an object), in the text version it uses in-page anchors; items not found yet are locked (blurred, not clickable) |
js/achievements.js |
Achievements: the list, the Steam-style card in the corner, unlocking navigation items, remembering unlocks in localStorage |
js/content.js |
Reads the content out of the HTML (introduction, menu, work, books, photos, contacts) |
js/i18n.js / js/i18n/ |
Interface language: picks the language, holds one table of interface strings per language, shows the matching version of content written in several languages (data-l10n), and switches everything in place |
js/lang-picker.js |
The language switch: the last item on the room's bottom line, and the row of names under the title in the text version |
js/baked.js |
Loads the baked scene (with progress), the lightmap shader, hotspot highlighting, the notepad decal, and splits the tapes into objects that can move on their own |
js/room.js |
Interaction: the camera (orbiting the computer and flying to objects), picking, routing, panels, tape animations, TV subtitles, lights |
js/grade.js |
Rendering and the overall look: the scene pass (multisampled) with white balance and depth of field, horizontal light streaks, then colour grading, vignetting, sharpening / softening, noise / grain and the VHS effect, with several presets |
js/pc.js |
The computer screen: the PC-98 adventure-game layout (scene window, command window, message box), paging and typing, keyboard and mouse, language switching, and switching between the screensaver and the menu |
js/screensaver.js / js/pc-pixel.js |
The screensaver's animation (title shine, stars, window lights, obstacle lights, the laurel appearing) and the pixel-drawing helpers the screen shares with it: the palette, 5 × 7 letters, system text thresholded to look like a 16-dot bitmap font, Bayer dissolve masks |
js/papers.js |
The papers on the desk: the stack comes up from the desk, the newspaper unfolds, page turning for each binding (newspaper, staple with a lifted corner, paper clip), switching documents, reading closer |
js/sleeves.js |
The tape sleeves: drawn from #work; sleeve and tape are merged into one box, with the sleeve's open top and finger notches filled in |
js/tv.js / js/tapes/ |
The TV and each tape's picture (drawn on a 2D canvas used as a texture); show.js plays programmes in chapters, anims.js holds the animations drawn in code |
js/books.js |
The real books on the shelf: covers (spine and cover drawn on canvas, or real covers), sliding out on hover, flying up to the viewer, and opening as a live-lit book (signature line and reading status on the left page, highlights from the right page on, overflowing onto later pages, with a page that bends as it turns) |
js/photos.js |
The photo wall: a cork layer over the board, aged photos pinned on it (pins, shadows, curled corners), draggable |
js/music.js / js/turntable.js / js/vinyl-audio.js / js/music-tracks.js |
The record card and playback, the spinning record on the turntable, the vinyl sound, the track list |
js/window-view.js |
The rainy night outside: two layers of city panorama (read from data maps: the odd window light switching, traffic, obstacle lights), a live sky (for Tokyo: low rain clouds lit warm-grey by the city; for the old procedural city: stars, the Milky Way turning around the pole, the moon, drifting clouds) and rain |
js/deskcal.js |
The perpetual calendar on the desk: its cubes, weekday roller and month bars turn to today's date; click it to scramble them |
js/answering.js |
The answering machine at the left end of the desk: the blinking message light, playback of #messages as captions, and the beeps and tape hiss (generated in the browser, no sound files) |
js/phone.js |
The rotary phone: leave-a-message composer in the caption area, sending to the form address in #messages; a demo that sends nothing with the template's example address, and Contact when no address is set |
js/dial.js |
The phone's finger wheel (split out in blender/bake_room.py, manifest.phone.wheel): dialling a digit winds it clockwise to the finger stop and lets it return at ten steps a second, one tick per step, like a real governor |
js/activity/ |
The Activity Almanac beside the bookshelf (board.js: the carved board, figures and day tiles; calendar.js: twelve weeks of sample data, or the local snapshot with ?usage) and the steam over the mug (steam.js) |
js/sfx.js / js/sfx-synth.js |
Sound: rain outside the window with the odd drip from the eaves, a quiet soundtrack, tape hiss and narration while the TV plays a project, and short effects for books (scaled by each book's weight), papers, photos, switches, tapes, the calendar and the computer menu. Every effect is levelled to the same loudness first, and the background follows where you look: at the TV the rain and the record step back, at the window the rain comes forward. The drips and the VCR taking a tape are synthesised in sfx-synth.js rather than recorded. Sound starts after the first click (browsers do not allow it before that); the "Sound on / off" link at the bottom is remembered. The files, their CC0 sources and the measured mix are in assets/sfx/README.md |
js/paint.js |
The notepad page |
blender/ |
Python scripts that render the night view, build the room and bake its lighting; age_photos.py / age_poster.py age photos and the wall poster |
blender/answering_prep.py |
Rebuilds the scanned answering machine as a clean shell (the scan's surface is lumpy) and bakes the scan's colours onto it; run it once after downloading the model, before baking the room |
blender/render_view.py and helpers |
The view outside: plateau_prep.py converts PLATEAU CityGML, osm_city.py builds the OpenStreetMap buildings, roads and Tokyo Tower, street_detail.py the utility poles, trees, gardens and shop fronts, window_atlas.py / sign_atlas.py make the facade-photo and shop-sign atlases, postfx.py adds bloom and AgX tone mapping |
assets/vendor/ |
The list of third-party 3D assets (credits.json) and notes on their licences |
scripts/fetch_assets.mjs |
Downloads the original third-party files used in the room into vendor-src/ (not in the repository) |
scripts/fetch_city.mjs |
Downloads the city data for the view outside (OpenStreetMap, PLATEAU, three night photos) into vendor-src/ and builds the intermediate files |
scripts/credits_html.mjs |
Generates the credits list in index.html from credits.json |
scripts/render-papers.mjs |
Captures the first page of each document in #papers into output/papers-tex/, the textures of the paper stack on the desk (run before baking the room) |
scripts/sync-activity.py |
Writes your own daily GitHub contributions and Codex / Claude token counts to assets/activity-local/daily.json (not in the repository) for the Activity Almanac |
scripts/make_screensaver.py |
Draws the screensaver into assets/screensaver/: projects the two window panoramas from the window (following turn and moon in view.json) and repaints them layer by layer as 320 × 240 pixel art with the title, subtitle and laurel (--title, --subtitle, --no-badge); rerun it after re-rendering the view outside |
scripts/make_sample_tape.py |
Draws the pictures of the Unfog sample tape (a wireframe app screenshot and a foggy / clear before-and-after) |
scripts/render-sfx-synth.mjs |
Writes the synthesised sounds of js/sfx-synth.js to WAV files for listening |
scripts/serve.mjs |
Local static file server (binds to localhost, serves only allowed file types) |
Third-party assets
The room uses 29 third-party assets: 22 from Sketchfab (CC BY 4.0, which requires attribution and a note of changes), 6 from Poly Haven and a curtain from the Innerscene 3D Parts Library (both CC0). The view outside is built from map data and a city model: OpenStreetMap (© OpenStreetMap contributors, ODbL), MLIT's PLATEAU 3D city model of Minato City (Government of Japan Standard Terms of Use 2.0, compatible with CC BY 4.0), three CC0 night photos from Wikimedia Commons, and shop signs lettered in Noto Sans CJK (SIL OFL, the copy bundled with Blender; the font itself is not redistributed). The attribution is on the site under #credits, including the text version. The list is generated into index.html from credits.json by node scripts/credits_html.mjs; run it again whenever the assets change (npm test checks that it is up to date). These assets keep their own licences and are not covered by the repository's code licence; see assets/vendor/README.md (in Chinese). The original files are not in the repository; download them again when you need them:
The sound effects and the music are public domain (CC0 1.0): the sources are listed in assets/sfx/README.md and assets/records/README.md. The narration on the Unfog sample tape is a synthetic voice, made with Kokoro-82M by hexgrad (Apache 2.0, voice am_onyx); the script, pictures and project are invented for the template.
node scripts/fetch_assets.mjs
node scripts/fetch_city.mjs # the data for the view outside (about 1.5 GB, then a few minutes of processing)
The bake script stores hotspot boxes and camera framing for baked objects in assets/baked/manifest.json (hotspots, views, tapes, books, photos). The activity board follows the shelf bounds, and steam is anchored to the exported coffee surface. Move a baked object in Blender and export again.
Baked lighting (Blender → browser)
Two steps, both Python scripts that run without opening the Blender UI:
/Applications/Blender.app/Contents/MacOS/Blender -b --factory-startup --python blender/render_view.py -- --width 3840 --samples 64
/Applications/Blender.app/Contents/MacOS/Blender -b --factory-startup --python blender/bake_room.py -- --size 2048 --samples 1024
When you have only changed things that don't affect the lighting, such as hotspots or camera views, add --skip-bake 1 to skip baking and re-export the model and manifest in a few seconds:
/Applications/Blender.app/Contents/MacOS/Blender -b --factory-startup --python blender/bake_room.py -- --skip-bake 1
- The view outside (
blender/render_view.py+js/window-view.js): a rainy night over the real neighbourhood around Tokyo Tower, seen from 70 m above Azabu-Jūban, 0.8 km from Tokyo Tower, which stands just right of the computer. The buildings come from MLIT's PLATEAU 3D city model of Minato City (17,000 buildings, most with real roof shapes, measured heights, uses and storey counts, on real terrain) and, beyond the ward, from OpenStreetMap; the roads follow OpenStreetMap's lane counts, bridges and layers, so the Shuto Expressway runs on viaducts with parapets and piers. Tokyo Tower itself is modelled by script to its real profile: lattice legs, the arches at its foot, two observation decks, the antenna mast and the red-and-white paint bands, floodlit orange. Up close (within about 280 m) windows are drawn per floor from each building's use and storey height: office floors lit or dark as a whole, flats lit per home in mixed warm and cool light, some curtains half drawn; further away the facades are swatches cut from CC0 night photos of this same area, so distant windows look photographed. Near the camera there are utility poles with wires and street lamps, street trees, small trees in the gardens of detached houses, and shop fronts — izakaya with rows of red lanterns and noren, cafés with awnings and plants, a convenience store — with protruding and rooftop signs lettered in Noto Sans CJK. Cycles renders it as two partial panoramas (equirectangular, ±80° horizontally and −40° to +55° vertically, so no camera angle reaches an edge) in high dynamic range;postfx.pyadds layered bloom and AgX tone mapping, and the near layer is rendered at 1.5× resolution and sharpened so that near detail is crisper than the distance. One layer holds everything within 250 m and one the rest, both WebP with transparent backgrounds, mapped in the browser onto spheres of 10 m and 40 m radius centred on the window so that near and far shift against each other as the mouse moves. Each layer has a half-resolution data map (per category: a random value for each lit window, traffic lanes, obstacle lights), which the browser uses to switch the odd window light on and off and blink the obstacle lights. Car lights are drawn separately:view.jsonstores each lane's start and end, cars drive along them at realistic speeds on the sphere of their layer, and the data map tells whether that direction is a lane or hidden behind a building. The sky is drawn live in the browser: low rain clouds lit warm-grey from below by the city, the moon hidden behind them; outside the window there are also a few thousand instanced rain streaks. A flat image,view_full.jpg, is rendered only to light the room during baking.--osm ""brings back the earlier procedural riverside city with its starry sky. - The room (
blender/bake_room.py): a small 3.3 × 3.0 m study with warm-white, linen-textured wallpaper. Behind the desk a 2.2 m white grid window (a Sketchfab model, glazed with a faint pane of glass) is centred on the computer and runs from a stone sill just above the desk up to the cornice, so its top never shows. In front of it stands a 1.5 m walnut desk (a 5.5 cm top with a bevelled edge, three drawers on the right and a shallow one in the middle, all with brass pulls; the wood grain is a 1024² texture generated at bake time, three boards with cathedral grain). In the middle is a beige vintage desktop computer (square screen, thin bezel, the monitor sitting on a horizontal case with a floppy in the drive and a sticky note on the side), with a home-built keyboard in front and a mouse to the right. Around it: a desk lamp standing on two old books, a wooden perpetual calendar in front of the lamp (a Sketchfab model whose number cubes, weekday roller and month bars the page turns to today's date), a tape rack (four tapes standing in sleeves), a coffee mug, glasses, a remote, a notepad and a pen pot, and some clutter: a folded newspaper lying across two printed papers (one stapled, with sticky tabs, one held by a paper clip), and, at the left end of the desk, a black rotary telephone with a beige answering machine behind it (its messages are the#messagessection). To the right of the desk a small cart carries the TV and the VCR, angled towards the camera. On the left wall, set forward so that it does not face the desk, stands a 2.3 m carved wooden bookcase (a Sketchfab model with a drawer at the bottom and five shelves), holding rows of old hardcovers (also Sketchfab), the real books modelled from the reading list, an 8 mm film camera, a few cassettes and a small trailing pothos; a monstera stands at its far end and a pile of books waits on the floor in front of it. In the back-left corner, standing out from the walls, a studio easel (Sketchfab) holds a gilded frame (Poly Haven) with Claude Monet's Impression, Sunrise (1872, public domain); hovering it shows the title. Right of the window hangs a tied-back grey-olive linen curtain with brass rings; on the right wall are a sideboard, the record player, a picture, a clock and a 90 cm cork board (the photo wall) below it. The opening camera stands in front of the computer and orbits around it, with the computer and the window in the middle of the frame and half the TV showing on the right; the field of view is 34°, and the camera cannot tilt up to the ceiling. Turning left, the orbit centre also slides towards the bookcase: the camera passes the painting in the corner and ends facing the bookcase; turning right brings in the record player. - Four light layers are baked: ambient (moonlight, the city outside and the computer screen), room lights (the floor lamp, the cabinet lamp, a soft invisible light along the top of the window and another on the bookcase), the desk lamp and the TV. Switching lights and changing the TV's colour only change coefficients in the shader; nothing is recomputed.
- Rendering and the overall look (
js/grade.js), in several passes.CameraPassreplaces RenderPass: it renders the scene into a 4× multisampled HDR buffer, then applies white balance and depth of field in linear light (thin-lens model: the focal length follows from the field of view and a 24 mm film height, and the focus distance follows the object the camera looks at, pulling slowly when it changes; a single spiral gather that reads mipmaps where the blur is large, so lights turn into bokeh). The five levels of bloom (UnrealBloomPass) can be tinted separately; an orange-red outer level is film halation.StreakPassstretches small bright lights horizontally, like an anamorphic lens: the highlights are reduced to a quarter, blurred four times horizontally only and added back.GradePassruns after tone mapping and handles colour grading, vignetting / natural lens falloff (cos⁴), sharpening / softening, chromatic aberration, sensor noise / film grain, and scanlines for the VHS look. The default iscinema(ACES, warm bloom with an orange-red halo, horizontal streaks on small bright lights, slightly teal shadows and warm highlights, a light f/4 depth of field, fine grain);?look=<name>picks another (noneas rendered /realrealistic camera /filmwarm film /cinenight film /vhsVHS tape /polaroidfaded print /lofilate-night lo-fi), and?looksshows a row of buttons at the bottom left to switch live. All parameters are inLOOKS, and each look can also change the bloom and halo colours, the streaks, the tone mapping and the aperture. - Hotspots: while building the model,
with hot('about'):tags the faces that belong to the computer, and the export computes tight boxes from those tags (they can rotate around the vertical axis to follow the angled notepad). In the browser, the box that contains the first face hit by the ray is what was clicked; the highlight is also computed in the shader from that box, so no extra geometry is needed. - The real books on the shelf: the bake script reads the reading list from
index.htmland models each book at its size (hardcover boards overhang the pages), lays out the cover UVs horizontally as [back | spine | front], and the page paints the cover onto it. The manifest'sbooksstores each book's position and size, andphotosstores the position and orientation of the cork board's surface. - Shared dimensions are in
blender/shared.py(window size, desk height, moon direction, parameters of the view outside).
Measured on an Apple M5 (10-core GPU): the Tokyo view (far layer 3840×2280, near layer 5760×3420, 64 samples) takes about 7 minutes including building the scene, the data maps and the flat image; baking the room at 2048², 1024 samples and four layers takes about a minute.
Debugging
- The page exposes
window.__room; navigation clicks also go through__room.go(id).__room.go('work')switches views,__room.tick(dt)advances one frame by hand (browsers slow animations down in background tabs), and__room.hoverAt(x, y)/clickAt(x, y)simulate the mouse. - Achievements:
window.__achievements.__achievements.reset()clears the unlocks (the navigation bar locks again after a reload), and__achievements.unlock('photos')unlocks one directly.
About this repository
The name, résumé, work, reading list, photos and contact details in this repository are samples. Real résumés and contact details, real book covers, personal photos, your own music and the original third-party downloads are kept out of the repository (see .gitignore) and can stay on your own machine. The Blender scripts stay editable, and local path metadata has been removed from images and models. What was checked before publishing is listed in the publication checklist, and GitHub Pages setup is described in docs/PAGES.md (both in Chinese).
The code is released under the MIT licence. The third-party 3D assets keep their own licences (CC BY 4.0 / CC0 1.0, see Third-party assets above) and the fonts are under the SIL OFL; neither is covered by the MIT licence.
Next steps
- Rain: the rain streaks outside and the ripples on the water are there; raindrops on the glass and wet streets with reflections are still missing.
- Model compression (Meshopt) and AVIF / KTX2 textures to bring the 13 MB download down.
Jelajahi proyek terkait
Memuat…





