~/learning-log
← all notes
4 min read

Interaction references, room index, and Three.js lighting

Small interaction effects are most useful when they confirm an action instead of continuously competing with the 3D scene.

  • build log

Session

  • Area: React interaction design, Three.js interface feedback, accessibility, responsive design, testing, and deployment
  • Goal: Study two interface references and apply useful ideas to the portfolio without copying their source code or replacing the existing 3D lab.

Work completed

  • Reviewed React Bits for its modular motion patterns and guidance to limit effects, protect mobile performance, and respect reduced-motion preferences.
  • Reviewed Rachel Wei's room portfolio for its compact navigation and integration of interface controls into a 3D scene.
  • Added a local target-cursor effect that appears only while a mouse pointer is over an interactive room object.
  • Added an eight-ray click spark that confirms a successful object selection.
  • Disabled the new pointer effects for touch-first devices and visitors who request reduced motion.
  • Added an optional INDEX control to the existing room status bar.
  • Built a compact object index that provides direct access to the computer and all eleven room objects without restoring the retired permanent directory.
  • Added React Bits and Rachel Wei to the in-room Inspiration file, the AFFAN_OS Inspiration folder, and the public README.
  • Expanded regression tests to cover the new references, object index, target cursor, and click spark.
  • Completed lint, production build, and all seven automated tests.
  • Pushed the source to GitHub and deployed the verified build to Cloudflare Workers.

Second session

  • Area: Three.js rendering, physical materials, environment lighting, GPU point rendering, performance, testing, and deployment
  • Goal: Use the official Three.js documentation and examples to improve the room's visual depth without adding external assets or heavy post-processing.

Three.js improvements completed

  • Reviewed the official Three.js documentation and examples for environment lighting, physically based materials, point rendering, controls, and raycasting.
  • Added a procedural RoomEnvironment and generated a prefiltered environment map for the scene.
  • Applied low-intensity image-based lighting to improve the depth of metal, glass, and clearcoat materials across the room.
  • Added a deterministic Points field with cyan, violet, and amber signal motes.
  • Reduced the point count on touch-first devices and paused point movement for visitors who request reduced motion.
  • Disposed the generated environment target, point geometry, and point material during room cleanup.
  • Added Three.js to the in-room Inspiration file, AFFAN_OS Inspiration folder, public README, and regression tests.
  • Completed lint, production build, and all seven automated tests.
  • Pushed the source to GitHub and deployed the verified build to Cloudflare Workers.

Evidence

What I learned

  • Small interaction effects are most useful when they confirm an action instead of continuously competing with the 3D scene.
  • A room index improves discoverability while still allowing the scene to remain the primary interface.
  • Reference work should identify the specific design idea adopted and clearly state that the implementation is original.
  • Motion needs separate behavior for mouse, touch, and reduced-motion users.
  • Regression tests should verify both visible interface labels and the source references used in the project.
  • A procedural environment map improves physically based materials without requiring a downloaded HDR image.
  • A single Points object stores many colored particles in one geometry, which is lighter than creating a separate mesh for every mote.
  • Deterministic placement keeps the atmosphere stable across reloads and makes visual problems easier to reproduce.
  • GPU effects still need separate density and motion decisions for desktop, touch, and reduced-motion visitors.

Problem encountered

  • One regression check still expected the retired hidden directory class after the new index replaced it. The test was updated to check the current index and pointer-feedback classes.

Next step

  • Collect feedback on whether visitors notice and understand the optional object index.
  • Watch the cursor and spark effects on lower-powered laptops before adding any more continuous animation.
  • Compare the updated physical materials on integrated and dedicated graphics hardware before increasing the environment intensity.

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.