Session
- Area: Three.js scene restoration, visual direction, PBR materials, interaction state, testing, Git, and Cloudflare deployment
- Goal: Return the portfolio to its earlier dark cyber-lab direction without losing the strongest improvements from the later room experiments.
Work completed
- Preserved the warm cutaway build on the backup branch
backup/warm-cutaway-window-2026-08-13before changing the main portfolio. - Restored the earlier cyber-lab room composition, dark interface treatment, restrained camera framing, and original social preview.
- Kept the later out-of-bounds mirror, whole-object hover highlighting, persistent side navigation, compact mobile index, AFFAN_OS desktop, and licensed local model pipeline.
- Rebuilt the room palette around deep navy and charcoal architecture with cyan, violet, amber, and mint practical lighting.
- Changed the five imported CC0 models from deliberately flat replacement shading to smooth physical materials with controlled roughness, metalness, clearcoat, environment response, and shadow support.
- Retained the high-detail procedural computer, printer, chess set, server rack, camera details, bookshelf, books, racket, katana, and 3D cat.
- Fixed the interaction animation so hover and focus use each object's authored base scale instead of pulling every selectable model toward a scale of one.
- Updated the README and regression checks to describe the restored dark direction and current material pipeline.
- Completed the production build, full lint pass, and all seven automated tests.
- Pushed the verified source to GitHub and deployed the same build to Cloudflare Workers.
Skills applied
- Three.js: Restored scene composition, fog, lighting, reflection, environment response, selection highlighting, and camera interaction while preserving the existing object graph.
- 3D rendering: Used smooth normals and physically based material values to improve imported model depth without forcing photoreal assets into a stylized procedural room.
- Interaction debugging: Traced model-size drift to an animation loop and applied hover breathing as a multiplier of a stored base scale.
- Responsive design: Kept the desktop side index and reflective presentation while retaining the compact navigation and lower-cost reflection fallback for touch-first devices.
- Version control: Saved the outgoing warm redesign on a dedicated backup branch and made the dark restoration the new main revision.
- Testing and deployment: Updated regression assertions, built the production bundle, ran lint and tests, then published the verified artifact.
Room cleanup and portfolio-shell follow-up
- Removed the armchair, side table, and desk lamp from the active Three.js scene and moved the remaining plant onto the floor.
- Removed the cyan and amber decorative LED rails from the desk.
- Lowered the complete workstation and separately adjusted the mouse pad, mouse, and wheel so they sit on the desk instead of hovering above it.
- Repositioned the camera so its base sits on the top bookshelf surface.
- Increased the cat rug diameter and expanded its three decorative rings to match.
- Replaced the previous full-surface emissive hover treatment with a cyan back-face silhouette border around the complete interactive object.
- Made the computer outline the visible monitor assembly instead of outlining only its transparent click target.
- Expanded AFFAN_OS into a read-only Bash-inspired portfolio shell with a working directory, path-aware prompt,
cd,pwd,ls,tree,cat,less,open,find,grep,history, system-information commands, room controls, quoted filenames, arrow-key history, and Tab completion. - Connected shell folders, documents, links, the resume, and the room exit to the existing AFFAN_OS file system so commands navigate real portfolio content.
- Updated the asset record to distinguish models loaded by the current room from licensed files retained in the repository.
- Completed the production build, full lint pass, and all seven automated tests before publishing.
- Removed the remaining potted plant from the active room, leaving the shelf camera as the only imported model instantiated in the scene.
- Updated the room reference copy, README, third-party asset record, and regression test to match the final uncluttered floor plan.
- Raised the complete Three.js room by a shared elevation value so the floor, walls, furniture, animated objects, and interaction targets remain aligned.
- Added a two-layer charcoal platform beneath the room and left a visible air gap above the out-of-bounds mirror, following the presentation principle seen in the supplied Rachel Wei reference images without copying its assets.
- Shifted the overview cameras, orbit targets, responsive camera presets, and practical lights by the same elevation value.
- Removed the technical grid from the room floor to make the raised diorama edge read more clearly.
- Recolored the badminton racket with a darker gunmetal frame, charcoal shaft and fittings, muted-violet grip and wall hooks, and smoke-grey strings while retaining material contrast for close-ups and hover outlines.
- Filled the open floor with eight broad dark floorboards using restrained tonal variation instead of restoring the removed technical grid.
- Removed the rectangular maker mat after reviewing it beside the circular cat rug. The broad floorboards now provide depth while the cat rug remains the single floor focal point.
Evidence
- Portfolio live site: https://affan-shaikh-portfolio.sil6428-archtech.workers.dev (opens in a new tab)
- Portfolio commit:
c7debd7 - Cloudflare version:
d2796df4-e500-48d7-8f45-80d6e1ea7602 - Room and shell follow-up commit:
79c5dae - Room and shell Cloudflare version:
0d3e2d9b-c674-4246-b360-183e93dddd67 - Plant-removal commit:
03871bb - Plant-removal Cloudflare version:
b0e6f9cd-a555-426e-8484-2053c6ea0ec9 - Floating-platform commit:
8091122 - Floating-platform Cloudflare version:
ab387bae-8f2e-4680-a83a-196a5f1ab004 - Dark-racket commit:
ff95476 - Dark-racket Cloudflare version:
900fce41-aa97-4b3d-a924-61dad7ca93b9 - Floor-detail commit:
950fb16 - Floor-detail Cloudflare version:
2c1ab8b6-2ce1-4000-b8cc-02631d77c78a - Single-rug correction commit:
5b6414a - Single-rug correction Cloudflare version:
56dc06fa-7eb3-4a8b-80a8-35ba0e267191 - Backup branch:
backup/warm-cutaway-window-2026-08-13 - Checks: production build, ESLint, and Node test suite
- Test result: 7 passed, 0 failed
What I learned
- A useful redesign does not need to be discarded when its overall art direction misses the goal. Strong interaction and rendering improvements can be separated from the layout and palette that introduced them.
- Imported models fit a procedural room better when material response is normalized at the loading boundary.
- Hover animation should preserve authored transforms. A visually small interaction bug can quietly undo deliberate scene composition.
- A dark scene still needs strong value separation. Neutral fill and controlled accent lights reveal model form more effectively than increasing every material's brightness.
Next step
- Review the live dark scene on a laptop and phone, then refine only the models or camera angles that remain unclear at normal viewing distance.
Commit check
- This entry describes real work completed today.
- Every placeholder has been replaced or removed.
- No credentials, secrets, or private personal data are included.