Hey everyone!
My portfolio is a small world you walk around in instead of a page you scroll: a windy meadow where every project, the about card and the way to contact me are places you can walk to.
Live: https://www.curllmooha.com
What you can do in it
- Blow the dandelion to start. The loader is a dandelion clock that fills in as the scene loads, and blowing it is also the tap the browser needs before sound can play
- Walk anywhere (WASD / arrows, or touch on a phone). The grass bends where you’ve walked
- Switch between sunny and rain, and between 3rd and 1st person, from the deck at the top. The kite by the tent flies higher when the wind picks up
- Find the projects on screens in the garden, the contact pond, the floating sketchbook, the birds and their nests, and the tent you can sleep in
- The light follows a passing clock, so the meadow looks different depending on when you visit
How it’s built
- three.js with React Three Fiber, Rapier for physics, GLSL for the grass, wind, water and sky, GSAP for the UI
- Instanced grass driven by a wind shader, with a trail texture that pushes the blades down where you walk
- Adaptive quality: the scene picks a tier per device and backs off if frame time climbs, so it holds up on mid-range phones
- A plain HTML version of the whole portfolio is in the page for crawlers and for anyone without WebGL, and each project also has its own page (e.g. Aera)
The hard part: the hitches, not the framerate
The framerate was fine early on. What wasn’t fine were sudden freezes while walking. Profiling in Firefox (its GPU-process threads show WebGL costs that Chrome’s main-thread profiler can’t) showed they were shader programs linking the first time something came into view.
renderer.compile() doesn’t prepare the shadow depth/distance variants, so I ended up warming everything with a real render into a tiny off-screen target, chunked across frames, before the intro plays. One blocking render cost ~1.9 s, while eleven chunked ones cost ~460 ms in total, because the driver links in the background between them. The worst walking stall went from 865 ms to 54 ms. The last few freezes turned out to be the number of point lights (every change of light count means new program variants), not the geometry I suspected.
Feedback I’d love
- How do the controls feel, especially on a phone?
- Did you find the weather and camera switches without being told?
- How does it run on your device? If it stutters, telling me the browser and GPU would help a lot
Thanks for checking it out! I’m also open to freelance work, details here: For Hire post.
