Nishara Ramasinghe
HI-FI
◂ PostsBuilding My Portfolio as a Room
StartThe ideaBuilding the roomBaking the lightMaking it interactiveWhat's next

Building My Portfolio as a Room

Published
1 November 2026
Reading time
2 min
Topics
three.js, Blender, WebGL

Most portfolios are a list. I wanted mine to feel like walking into the room where the work actually happens: a desk under a rainy window, a laptop, an old computer, a pad of notes.

The idea

Every section of this site lives on an object. The old lucy computer holds my About page and dials up a BBS when you want to get in touch. The legal pad lists my work. The tapes on the windowsill play my projects on the TV, and this laptop is where I write.

Building the room

The room started as a Blender scene. The furniture comes from Poly Haven, a library of free CC0 models, and the retro computer, TV and tapes are modelled procedurally with Python scripts.

Baking the light

Real-time lighting on the web is expensive, so the lamp glow, moonlight and fairy lights are baked: Blender's Cycles renderer calculates how light bounces around the room once, and stores it in a lightmap. In the browser, every surface is simply its texture multiplied by that lightmap, which is cheap enough to run on a laptop.

Making it interactive

The screens are HTML canvases drawn every frame and mapped onto the 3D meshes, with a small shader for the CRT curvature, scanlines and VHS tracking noise. The sounds are generated live with the Web Audio API, including the dial-up modem.

What's next

More posts, right here. If you'd like to talk about anything on this site, find me on LinkedIn.

Next
AWS SES with Supabase Auth: Production-Ready Invite and Password Reset Emails