~/learning-log
← all notes
10 min read

Licensed 3D assets and creative-studio redesign

A zero dollar price does not automatically mean an asset has simple reuse terms. The licence must be checked before download and inclusion.

  • product
  • build log
  • systems

Session

  • Area: 3D asset research, open-source licensing, Three.js glTF loading, PBR materials, scene composition, performance, testing, and deployment
  • Goal: Improve the portfolio room's model quality and move away from the grungy basement look while using only assets with clear free-use terms.

Work completed

  • Reviewed the model directories on Three.js Resources, the free-furnishings results on TurboSquid, and the supplied Sketchfab room reference.
  • Verified that the linked Sketchfab model is not downloadable and does not provide a reusable licence, so it was treated only as visual direction.
  • Selected six Poly Haven models released under CC0: a camera, articulated desk lamp, modern armchair, potted plant, side table, and wooden display shelf.
  • Downloaded the 1K glTF versions and their PBR textures into the portfolio repository so the live room does not depend on third-party asset servers.
  • Added a reusable GLTFLoader pipeline that fits models into target bounds, enables shadows, increases texture anisotropy, tunes environment reflections, and cleans up loaded geometry, materials, and textures.
  • Kept procedural fallback objects visible until replacement models finish loading, preventing missing furniture or an empty camera hotspot when a request fails.
  • Replaced the visible procedural camera and shelf while preserving their existing click targets, files, books, katana, and Easter-egg behavior.
  • Added the chair, side table, plant, and desk lamp as higher-detail studio furnishings.
  • Changed the room to cream and sage walls, warm wood surfaces, softer fog, stronger neutral fill, and controlled cyan, violet, and amber accents.
  • Added model authors, direct source links, licence information, and reuse decisions to THIRD_PARTY_ASSETS.md.
  • Expanded the in-room Inspiration file, AFFAN_OS Inspiration folder, README, and regression checks with the new asset references.
  • Completed targeted lint, a production build, and all seven automated tests.
  • Pushed the source to GitHub and deployed the verified build to Cloudflare Workers.

Skills applied

  • Three.js: Loaded external glTF scenes, calculated bounding boxes, scaled assets to composition targets, preserved raycast interaction through nested model groups, and tuned environment-map intensity.
  • TypeScript and React: Added an asynchronous asset-loading lifecycle inside the room component without breaking component cleanup or existing state-driven interaction.
  • 3D rendering: Used PBR texture sets, anisotropic filtering, soft shadows, image-based lighting, fog, and warm/cool practical lights to improve material definition.
  • Performance: Chose 1K textures, hosted files locally, retained compact fallbacks, reused one loader, and disposed GPU resources when the room unmounts.
  • Licensing: Compared marketplace and CC0 terms, rejected an unlicensed non-downloadable model, and documented every included third-party asset and creator.
  • Testing and deployment: Added regression coverage for model paths, references, credits, and palette changes before publishing to Cloudflare.

Repository follow-up

  • Reviewed Rachel Wei's public portfolio repository after the live site alone did not expose its implementation details.
  • Identified its use of a single authored GLB room, named invisible hitboxes, linked visible targets, hover outlines, a loading gate, orbit controls, and content panels layered over one persistent scene.
  • Confirmed that the repository does not include a licence file, so no code, models, images, or audio were copied.
  • Corrected the portfolio's earlier credit. Rachel's source informed linked hitbox and whole-object hover feedback, while the portfolio's optional object index remains an original feature.
  • Added an independently implemented material-based hover accent for complete interactive objects.
  • Kept the effect disabled for touch-first devices and avoided a full post-processing outline pass to protect laptop and mobile rendering performance.
  • Added the repository to the in-room Inspiration file, AFFAN_OS, README, and regression tests.

Reflection and navigation follow-up

  • Added a large reflective presentation surface beneath and beyond the room boundaries, inspired by the out-of-bounds reflection visible in Rachel Wei's portfolio source.
  • Rendered the real-time reflection at a capped resolution on desktop and used a polished physical-material fallback on touch-first devices.
  • Added a translucent warm tint over the reflection so it supports the new studio palette instead of recreating Rachel's darker treatment.
  • Removed all pulsing circular point-of-interest markers from beneath room objects.
  • Made the existing grouped material highlight the primary in-scene interaction cue.
  • Added a persistent desktop side index with direct links to the computer and every room file.
  • Connected side-index hover and keyboard focus to the corresponding whole-object highlight.
  • Kept the compact INDEX menu for smaller screens and hid the side navigation while a file or AFFAN_OS is open.
  • Added a comprehensive DESIGN_REFERENCES.md record covering every portfolio, repository, documentation page, asset directory, and reviewed model marketplace used during the project.
  • Expanded the in-room Inspiration file and AFFAN_OS Inspiration folder from ten to thirteen direct references.
  • Added cleanup for the reflection render target, geometry, and materials.
  • Completed targeted lint, a production build, all seven automated tests, GitHub publication, and Cloudflare deployment.

Visual-style reconciliation follow-up

  • Reviewed the mixed-detail result after the first external-asset pass and treated visual consistency as a system problem rather than adjusting isolated props.
  • Removed the external display-shelf model and restored a fitted custom bookshelf that aligns correctly with the books, camera, racket, and printed katana.
  • Recolored the shelf with warm walnut tones and reduced its metallic response so it belongs with the studio walls and floor.
  • Added a reusable material-normalization stage to the glTF loader. It keeps the selected model geometry but replaces detailed photographic surface maps with flat-shaded, rough materials drawn from a limited room palette.
  • Applied separate restrained palettes to the camera, chair, side table, plant, and desk lamp.
  • Removed the unused shelf model and textures from the deployed bundle and corrected the asset count, credits, README, design-reference record, and regression tests.
  • Completed the production build, full lint pass, and all seven automated tests before publishing the revision.

Cutaway-studio composition follow-up

  • Reworked the homepage around a compact open-front studio composition after studying the balance, warmth, and clear room silhouette of Rachel Wei's portfolio.
  • Preserved the project as original work. No source code, models, images, audio, copy, or navigation labels were copied from the reference.
  • Reframed and scaled the complete room so the diorama sits beside a simple name-led navigation list instead of competing with a technical panel.
  • Added a left lounge daybed, pillows, blanket, black cat, warm string lights, a raised room platform, ochre walls, warmer wood, and sage seating.
  • Rebalanced the desk, computer, printer, server rack, chair, table, plant, camera, and personal props into a clearer left-lounge and right-workstation layout.
  • Rebuilt the out-of-bounds treatment as a darkened real-time desktop mirror below the platform and retained a lighter physical-material fallback on touch-first devices.
  • Added an asset-aware loading gate so shader compilation and incomplete glTF loads stay hidden until the five external studio objects are ready.
  • Tuned separate desktop, landscape-phone, and portrait-phone overview cameras, then inspected the actual rendered site at desktop and mobile sizes.
  • Generated a new cutaway-studio social preview that matches the deployed visual direction and updated the Open Graph and X metadata.
  • Updated the README, design-reference record, and regression coverage, then completed the production build, full lint pass, and all seven automated tests.

Cover-led room-scale and window follow-up

  • Traced the scene's inconsistent scale to the hover animation, which was easing every selectable group toward a scale of 1 and silently undoing the smaller authored scales of the printer, server rack, racket, and cat.
  • Changed the animation to capture and preserve each object's base scale, then apply hover and focus feedback as a multiplier of that original size.
  • Reduced the room footprint and depth so the floor no longer overwhelms the furniture and the scene reads as a compact studio rather than an oversized empty room.
  • Reorganized the room into three clear zones based on the portfolio cover: a left lounge and reading area, a central computer workspace, and a right maker and home-lab area.
  • Added a framed evening window with a simplified skyline, warm glow, crossbars, sill, and local light source to create a clear focal point on the back wall.
  • Added restrained structural beams, simplified the overhead treatment, and repositioned the desk, workstation, chair, printer, rack, bookshelf, camera, books, plant, side table, and wall-mounted racket.
  • Updated desktop, landscape-phone, and portrait-phone overview cameras independently so the laptop composition stays primary without reusing the same framing on mobile.
  • Inspected the rendered room at laptop and mobile viewport sizes, updated the regression checks for the new geometry and positions, and completed the production build, full lint pass, and all seven automated tests.
  • Published the source to GitHub and deployed the updated room to Cloudflare Workers.

Skills applied in this follow-up

  • Three.js scene debugging: Identified an animation-state bug that overrode model scale after initialization and preserved authored transforms during interaction.
  • 3D composition: Used relative furniture scale, visual zones, wall focal points, and controlled empty space to align the live scene with the cover image.
  • Procedural modeling: Built the window, skyline, sill, frame, beams, and lighting directly from Three.js geometry and materials.
  • Responsive camera design: Tuned separate overview cameras for desktop, phone landscape, and phone portrait instead of globally shrinking the canvas.
  • Regression testing: Replaced brittle assertions tied to retired positions and palette values with checks for the new window, scale preservation, and structural treatment.

Evidence

What I learned

  • A zero-dollar price does not automatically mean an asset has simple reuse terms. The licence must be checked before download and inclusion.
  • CC0 assets reduce ambiguity and still benefit from clear creator credits.
  • Loading a replacement before hiding its procedural fallback avoids visible gaps on slower networks.
  • Bounding-box fitting makes assets from different authors and unit systems easier to compose with one loading helper.
  • PBR models need environment light, correct texture handling, and restrained point lights to look better than procedural geometry.
  • Higher-quality models have the most impact when the room palette and lighting support them.
  • Model quality is not only polygon count. Consistent shading, roughness, color limits, scale, and placement matter more than isolated realism in a stylized scene.
  • Replacing imported materials at the loader boundary provides one reusable way to unify assets from different authors without rebuilding their geometry.
  • A room-based interface reads more clearly when the silhouette, empty space, navigation placement, and reflection are designed together rather than treated as independent effects.
  • Real-time reflection benefits from a dark tint and lower platform edge, while touch-first devices need a cheaper fallback to preserve readable mobile framing.
  • Waiting for all external scene assets before fading the loading gate prevents temporary geometry gaps from looking like layout failures.

Problem encountered

  • The full lint script scanned more of the working tree than needed and exceeded the command timeout after the new asset bundle was added. Running ESLint directly against the application and test directories completed successfully, and the full production build plus test suite also passed.

Next step

  • Collect visual feedback on asset scale, camera angles, and the warmer palette on the live site.
  • Replace additional custom props only when a free model has clear terms and preserves the existing interaction.
  • Consider compressed KTX2 textures or Draco geometry if real-device loading measurements show the asset bundle needs further optimization.

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.