Session
- Area: Three.js modeling, spatial layout, raycasting, camera composition, responsive UI, testing, and deployment
- Time spent: One focused room-model revision and deployment session
- Goal: Fix model and camera problems, give every object a believable place, and turn the laptop into the main project interface.
Work completed
- Preserved the previous fluid-diorama build on
backup/fluid-diorama-v7-2026-07-30. - Moved and extended the desk so it sits close to the back wall and has enough space for both the laptop and 3D printer.
- Rebuilt the workstation as a laptop with a canvas-rendered AFFAN_OS desktop.
- Added separate raycast targets for project and About files on the laptop screen.
- Split the combined project entry into individual files and expanded the room directory.
- Added a full bookshelf to the previously empty left wall.
- Moved the reading collection onto the bookshelf and arranged the books as individual volumes.
- Raised the photography camera onto the upper shelf and reoriented its lens toward the room.
- Moved the badminton racket beside the bookshelf, shortened its handle, separated the shaft and grip, shaped the strings to the oval head, and removed the floating shuttlecock shape.
- Put the 3D printer on the desk.
- Joined the printer's black carriage, heat block, and gold nozzle into one animated assembly that moves along the rail.
- Rebuilt the server rack as an open frame with rectangular status lights, port rows, blade fans, and routed tube cables.
- Removed the circular rack parts that read as floating or disconnected geometry.
- Moved the rack away from the printer and shortened its focus-camera distance to prevent the printer from clipping into the home-lab view.
- Rebuilt the 3D black cat with a separate body, haunch, chest, head, inner ears, pupils, muzzle, nose, collar, bell, legs, paws, whiskers, and curved tail.
- Removed the page-level 2D cat, footer house, soundtrack swat, wandering behavior, and page-specific cat interactions.
- Updated the Easter-egg guide, responsive directory, README, automated checks, GitHub repository, Cloudflare deployment, and learning log.
- Preserved the rebuilt-room version on
backup/rebuilt-lab-v8-2026-07-30before starting a second layout pass. - Removed the homepage header, footer, status strip, and visible bottom object directory so the room remains the primary interface.
- Expanded the laptop desktop with separate Contact and Resume files alongside project and About files.
- Moved the public email, LinkedIn, GitHub, phone, and resume access into those laptop files.
- Brought the overview camera closer to the room and shifted focused camera compositions so the object stays visible beside its information panel.
- Hid the large introduction and instruction card while an object is selected.
- Simplified the server rack by removing its decorative fans and routed cables.
- Shortened the bookshelf, placed the camera on its top surface, and moved the racket clear of the shelf to prevent model clipping.
- Replaced the printer's purple cube with a layered cyber-helmet model while keeping the carriage and nozzle animation.
- Retained screen-reader object controls after removing the visible directory.
- Preserved the clean-room version on
backup/clean-room-v9-2026-07-30before changing the laptop and room interactions. - Redesigned the laptop screen as a brighter retro desktop with a pastel grid, outlined folders, taskbar, and a hidden
cat.jpgfile. - Kept the project, About, Contact, and Resume desktop files as independently selectable 3D targets after moving their positions.
- Turned the printer model into a real three-minute sequence that begins when the room loads.
- Added live print percentage, ETA, completion text, helmet growth, carriage movement, spool movement, and a finish light.
- Made the black cat selectable and added a three-pet trust sequence with a short animated response.
- Made
cat.jpgtrigger a temporary sunroom colour palette across the Three.js lights, fog, and background. - Connected Smash mode to the badminton racket so the 3D model now reacts to the key sequence.
- Added
lights,cat, andprintterminal commands and documented the new discoveries in the Easter-egg guide. - Preserved the retro-room version on
backup/retro-room-v10-2026-07-30before changing the room proportions and printer model. - Reduced the room footprint, moved the overview camera left and closer, and lowered the close-up composition offset.
- Enabled wheel and trackpad zoom with safe minimum and maximum distances.
- Changed the file close action so it dismisses the object panel and immediately returns camera control without forcing an overview transition.
- Moved the bookshelf, books, camera, and racket inward, then moved the racket forward so it no longer clips the shelf and is easier to select.
- Replaced the cyber helmet with a full-face biker helmet made from ordered horizontal print slices.
- Changed the print reveal from vertical scaling to true bottom-up layer visibility.
- Added a moving Y bed and rising Z gantry while keeping the print head moving across X.
- Moved the badminton racket away from the bookshelf corner and placed it beside the front-left of the desk for easier discovery and selection.
- Removed the bookshelf front braces that visually crossed through the books.
- Brightened the room with coloured desk edges, a violet and blue shelf frame, cyan-violet-amber rug rings, multicolour wall accents, and stronger ambient lights.
- Added right-drag camera panning while preserving left-drag orbit and wheel or trackpad zoom.
- Suppressed the browser context menu over the 3D room so right-drag movement remains uninterrupted.
- Moved the badminton racket from beside the desk onto the back wall, added a pair of visible mounting hooks, and changed its focus camera to approach from inside the room.
- Rebuilt the printed motorcycle helmet with a contoured slice profile, brighter shell, curved dark visor, chin guard, intake vents, crown ridge, contrasting trim, and two-part visor pivots.
- Kept every new helmet component inside the three-minute bottom-up print sequence.
- Kept the reference-inspired laptop desktop layout but replaced its pastel colours with a dark charcoal and navy background, subtle cyan grid, violet ambient glow, darker file panels, and restrained folder accents.
- Split object-file closing into two deliberate camera behaviours: X and Escape animate back to the default room angle, while clicking outside the popup dismisses it in place and immediately restores orbit, pan, and zoom.
- Increased the printed helmet height, added more physical print layers, raised its close-up target, and tied the printer gantry height directly to print progress so the completed helmet no longer intersects the nozzle.
- Added explicit default-camera state so the large introduction and camera-help text remain hidden during object close-ups and free camera exploration, then return only after the default-view transition finishes.
- Replaced the motorcycle helmet print with a taller fantasy dagger assembled layer by layer from an ornamental pommel, wrapped grip, crossguard, faceted blade, center fuller, and bright edge details.
- Updated the printer display, completion message, project copy, Easter-egg guide, documentation, and checks to refer to the dagger, then removed the remaining helmet references.
- Added a separate completed 3D-printed sword to the bookshelf's bottom shelf with a blade, pointed tip, crossguard, wrapped grip, pommel, and two display rests.
- Added an interactive relic effect that lifts and illuminates the shelf sword, plus a concealed server-rack beacon that pulses the room lights.
- Added
relicandsignalterminal commands, documented both discoveries in the Easter-egg guide, and removedcat.jpg, its laptop target, and every remaining reference. - Changed the printer's original filament spool to black and added a second animated spool with separate orange, purple, and white sections.
- Reworked the active print as a black-and-white dagger with a longer blade, smaller handle and guard, and removable supports beneath the hilt overhangs.
- Rebuilt the completed shelf relic as a black-and-white katana with a curved extruded blade, narrow spine, compact tsuba, shorter grip, and smaller kashira.
- Gave the rug cat a patterned violet bandana, contrasting tag, wrapped yarn ball with a loose strand, toy mouse, and water bowl.
- Connected the yarn ball and toy mouse to the existing cat-trust interaction so the rug setup responds when the cat is activated.
- Split the printer's combined colour reel into four individually spaced and animated black, orange, purple, and white spools.
- Standardized both sword models with solid black handles, guards, and pommels plus fully white blades and edge details.
- Rebuilt the active printer model as a traditional double-edged dagger with a long parallel-sided blade, late taper to a defined point, straight crossguard, wrapped grip, and compact round pommel.
- Kept the black hilt and white blade palette while removing the exaggerated fantasy proportions from the printed dagger.
- Repaired the shelf katana by removing the straight spine piece that intersected the curved blade.
- Rebuilt the katana as one continuous extruded blade profile with a clean curve, pointed tip, recalculated surface normals, and a fitted black habaki at the guard.
- Added phone-only portrait and landscape overview cameras while preserving the original desktop camera position, target, field of view, and layout.
- Expanded Three.js hit testing around coarse-pointer taps so small room objects and laptop files are easier to select without enlarging their visible models.
- Reworked compact-phone overlays with smaller intro typography, 44-pixel controls, scroll-safe soundtrack and object panels, and a short-landscape stage height that keeps the help card on screen.
- Retested 320-pixel and 390-pixel portrait layouts, short landscape, touch selection, object-panel scrolling, soundtrack access, and the original 1280-pixel laptop composition.
- Extended the live dagger print sequence from three minutes to five minutes.
- Updated the printer description, ETA references, completion message, terminal response, Easter-egg guide, README, and automated checks to use the new
05:00duration. - Added an Inspiration file to the laptop desktop with clear credits and direct links for Bruno Simon, Ida's Gameboy, and Jesse Zhou.
- Documented how those references influenced the interactive 3D environment, device-based file navigation, fluid camera movement, and polished object interactions while keeping the portfolio implementation original.
- Added a framed network-topology display to the left wall with connected glowing nodes, status bars, and a dark metal border.
- Added a three-piece photography-inspired gallery above the bookshelf with framed abstract scenes in the room's cyan, violet, and amber palette.
- Added an original procedural sound system using the Web Audio API, with distinct effects for clicks, opening and closing files, Easter eggs, cat interactions, and print completion.
- Added a device-saved interface-SFX toggle to the Soundtrack panel and documented that no downloaded or third-party sound-effect recordings ship with the portfolio.
- Updated the Easter-egg guide, README, provenance documentation, styling, and automated checks for the new sound layer.
- Moved the photography camera model slightly farther back on the bookshelf so it sits more naturally on the shelf without changing its selectable close-up.
- Preserved the dagger-and-laptop version on
backup/dagger-laptop-v12-2026-07-30before the next room redesign. - Replaced the five-minute dagger print with a complete three-minute miniature chess-set print.
- Built a printed checkerboard and all 32 black-and-white pieces, including distinct procedural pawns, rooks, knights, bishops, queens, and kings that appear from bottom to top.
- Added recognizable details for rook battlements, knight heads, bishop tips, queen crowns, and king crosses while keeping the printer's X, Y, and Z motion.
- Replaced the laptop model with a compact desktop PC setup containing a monitor, separate keyboard, mouse pad, mouse, illuminated tower, and the existing selectable desktop files.
- Updated the printer display, completion sound, object copy, terminal response, Easter-egg guide, README, sound provenance note, and automated checks for the three-minute chess-set build.
- Moved the photography camera farther toward the wall so its body is centered over the bookshelf and only the lens projects forward.
- Preserved the completed chess-and-PC scene on
backup/high-detail-v14-2026-07-30before the model-quality pass. - Added a reusable beveled-box geometry helper and applied it selectively to large visible surfaces instead of increasing the detail of every mesh.
- Upgraded the desktop setup with a rounded monitor bezel, webcam, individual beveled keycaps, mouse wheel, glass-sided tower, motherboard traces, and illuminated internal cooling rings.
- Added threaded printer Z screws, gantry wheels, bed clips, beveled build surfaces, rimmed filament spools, a bordered chessboard, ringed piece bases, and a more recognizable knight profile.
- Added beveled server faceplates, modeled rack screws, deeper network ports, and a status badge while keeping the rack free of the previously removed loose wires and decorative fans.
- Refined the bookshelf with fasteners, rounded book covers, visible page blocks and page lines.
- Refined the camera with a beveled body, multiple focus rings, coated front glass, viewfinder, rear display, and physical controls.
- Refined the racket with a throat, denser string bed, grommets, wrapped grip, and end cap.
- Added modeled whiskers, mouth detail, and paw toes to the black cat.
- Expanded the automated checks to protect the new geometry details, rebuilt the production version, published it, and updated the public documentation.
- Preserved the first high-detail pass on
backup/high-detail-v14-1-2026-07-30before adding a more advanced fidelity tier. - Added adaptive quality rules that enable additional micro-geometry and a higher pixel ratio on desktop while keeping touch and narrow-screen devices on a lighter path.
- Added filmic tone mapping, tuned soft shadows, higher-resolution desktop shadow maps, studio fill lighting, and automatic shadow handling for lit procedural surfaces.
- Added physically based transparent glass, coated optics, clear-coated racket paint, and lacquered scabbard materials.
- Expanded the PC internals with fan blades, CPU block, graphics card, RGB memory, front ventilation, and clearer material layering behind the side panel.
- Added server-unit handles and desktop-only rack-rail perforations without reintroducing the removed decorative server fans or loose wiring.
- Added printer bed springs, an X-axis belt, stepper motors and shafts, an extruder fan grille, optional fan blades, and higher-resolution desktop chess layers.
- Added a curved katana scabbard, scabbard collar, and grip diamonds to make the shelf display feel like a complete set.
- Added labelled book-spine bands, a camera aperture, lens glint, dial knurling, hot shoe, and a physically coated lens.
- Added a racket T-joint, cat eye glints, brow fur and chest patch, room baseboards, a desk cable grommet, and adjustable desk feet.
- Preserved the premium room on
backup/pre-printer-chess-refinement-v15-2026-07-30before rebuilding the printer hotend and chess pieces. - Replaced the simple tapered nozzle with a complete hotend assembly containing a finned heatsink, heat break, copper heater block, silicone sock, heating cartridge, thermistor, hex collar, tapered brass nozzle, fine tip, feed tube, and active filament thread.
- Positioned the active filament thread so its end tracks just above the current printed height, then hides it once the three-minute build finishes.
- Replaced the shared chess-piece radius formula with separate interpolated profiles for pawns, rooks, knights, bishops, queens, and kings.
- Added tiered bases and collars to improve each piece's silhouette without breaking the bottom-up layer reveal.
- Added spherical pawn heads, six-part rook crowns, knight snouts, ears and manes, bishop mitres with contrasting slashes, queen crown rings and spikes, and king orbs and rounded crosses.
- Raised the printer's animated Z range to keep the refined king clear of the nozzle throughout the print.
- Repaired the badminton racket after a close-up revealed a tennis-style double throat, an oversized centre joint, and wall hooks covering the lower frame.
- Replaced the double throat with one slim shaft, a tapered frame ferrule, and a small shaft collar.
- Moved the wall bracket down behind the shaft and rebuilt it with a compact plate, projecting arms, short retaining tips, and rounded caps.
- Fixed the desktop monitor stand after a close-up showed the support crossing through the display.
- Shortened the support so it ends at the lower bezel, moved it behind the monitor plane, and added a compact rear hinge.
- Shifted the badminton wall mount left to compensate for the racket's rotation, centring the angled shaft between the two retaining hooks.
Evidence
- Live site: https://affan-shaikh-portfolio.sil6428-archtech.workers.dev (opens in a new tab)
- Source: https://github.com/sil6428/Portfolio.github.io (opens in a new tab)
- Backup:
backup/fluid-diorama-v7-2026-07-30 - Second-pass backup:
backup/rebuilt-lab-v8-2026-07-30 - Portfolio commit:
eef45bb - Latest portfolio commit:
978d4e1 - Current portfolio commit:
245fc3a - Racket placement commit:
2c601cf - Colour and bookshelf cleanup commit:
0af4657 - Right-drag camera controls commit:
5854618 - Wall-mounted racket commit:
04f25e0 - Rebuilt motorcycle helmet commit:
bec11fe - Dark laptop desktop palette commit:
931209c - Split popup close behaviours commit:
0ff8d8f - Helmet clearance and default-view text commit:
5c4778a - Fantasy dagger print commit:
6224f50 - Shelf sword and new Easter eggs commit:
9539ba1 - Printer spool and sword refinement commit:
56539ff - Cat rug accessories commit:
3fe6810 - Separated spool and sword palette commit:
7d96032 - Traditional dagger redesign commit:
b466c85 - Shelf katana geometry repair commit:
c43c433 - Mobile compatibility commit:
177b8d5 - Five-minute print timing commit:
0e101f7 - Interactive portfolio inspiration credits commit:
292d308 - Cyber-lab wall decorations commit:
1d69ba1 - Original procedural sound effects commit:
3afc62a - Shelf camera placement commit:
9c58beb - Chess-set printer and desktop PC commit:
f63f299 - Final shelf camera position commit:
73af05c - High-detail model backup:
backup/high-detail-v14-2026-07-30 - High-detail model commit:
c8fe086 - Premium-detail backup:
backup/high-detail-v14-1-2026-07-30 - Adaptive premium-detail commit:
f261c3a - Printer-and-chess backup:
backup/pre-printer-chess-refinement-v15-2026-07-30 - Refined hotend and chess commit:
8bce44c - Badminton racket repair commit:
c537dfb - Monitor stand clipping repair commit:
3f6e5a2 - Racket hook alignment commit:
5c76985 - Checks:
npm run lintandnpm test
What I learned
- A detailed model still looks wrong when its parts do not share the same mechanical parent. Grouping the printer carriage and nozzle fixed both the motion and the visual logic.
- Object placement affects camera quality. Moving the rack away from the printer solved clipping more reliably than adjusting the lens alone.
- A CanvasTexture turns a Three.js screen into a readable interface while separate invisible raycast zones keep each desktop file independently selectable.
- Furniture and wall storage make procedural objects feel like parts of one room instead of unrelated models placed on a floor.
- Small construction details, such as a racket shaft, book spines, fan blades, cable paths, pupils, and whiskers, make simple geometry easier to recognize.
- One well-integrated 3D cat fits the site better than a separate 2D character system competing with the room.
- Moving both the focus target and camera along the camera-right vector reserves screen space for the information panel without changing the object's physical position.
- A hidden accessible control list preserves keyboard and screen-reader access even when the visible directory does not fit the intended scene.
- CanvasTexture works well for a stylized operating-system interface because the visual design and the separate 3D hit areas can evolve independently.
- A long animation needs useful state feedback. Percentage, ETA, motion, completion text, and light make the five-minute print readable without forcing the visitor to watch continuously.
- Browser events provide a small bridge between the global terminal and the Three.js room without coupling the two components.
- Closing an information panel and resetting the camera are separate actions. Keeping the current view while restoring controls makes nearby object switching less repetitive.
- A convincing printer needs independent X, Y, and Z motion. Moving the head, bed, and gantry separately makes the mechanism easier to read.
- Revealing prebuilt horizontal slices by height looks more like additive manufacturing than scaling a finished mesh.
- Selective bevels change the perceived quality of procedural models more than uniformly adding polygon count.
- Small mechanical details work best when they explain how an object functions, such as printer lead screws, bed clips, rack screws, lens rings, and racket grommets.
- Reusing detailed geometry only on prominent surfaces keeps the room recognizable without adding unnecessary load to every small part.
- Model quality depends on material response as much as polygon count. Clear coat, transmission, soft shadows, and filmic tone mapping make simple geometry read as glass, paint, metal, or lacquer.
- Responsive Three.js work benefits from a quality tier. Desktop users receive small silhouette and hardware details while mobile users keep the same composition with fewer expensive parts.
- A stronger model pass focuses on construction logic. Belts, motors, handles, rails, joints, collars, and fasteners make the objects feel assembled instead of decorated.
- Parametric profiles preserve a layered manufacturing animation while giving every chess-piece family its own recognizable silhouette.
- A nozzle model reads more convincingly when the cold-end, hot-end, heater, sensor, brass transition, and extrusion path form one aligned mechanical stack.
- Animation clearance needs to use the tallest final detail, not only the main body height. The king's cross required a taller Z travel range.
- Reference photos and close-up camera views reveal construction mistakes that remain hidden in the full-room composition. Badminton rackets use a single shaft rather than the split throat common on tennis rackets.
- A monitor support must be checked against both its vertical extent and depth order. Correct height alone does not prevent the stand from appearing over the screen.
Problem encountered
- The laptop files are nested inside a rotated lid, so their floor markers and camera targets needed world-position conversion instead of their local coordinates.
- The left-wall objects face a different direction from the laptop and rack, so their camera offsets needed to approach from the positive X direction instead of the positive Z direction.
- Removing the 2D cat required cleaning its component, terminal command, Easter-egg documentation, footer house, mobile soundtrack offsets, animation rules, and tests as one feature.
Next step
- Gather feedback on the laptop file hit areas and each close-up camera composition.
- Recheck the room on a lower-powered phone and reduce procedural detail only if frame rate becomes a problem.
- Keep future portfolio changes recorded with the shipped commit and backup branch.
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.