Fenny Lie

Designing a homepage you can actually touch

The homepage: a painted hill with me lying in the grass, and a wooden signpost to Work, Side Quests and About

The Story

A personal project

This is a personal project that I designed and built for my portfolio homepage. The idea came from an illustration I've been using as my profile picture for a long time.

I started using this picture after getting through a difficult period in my life. Something about a girl lying freely in the grass resonated with me, and it has held a personal meaning ever since.

Since then, I've had the opportunity to explore, learn and experience many new things. One of them was design, which eventually became what I do today.

When I was working on my portfolio, I wanted to recreate this illustration with myself in it, as a little reminder of how far I've come.

My profile picture: an illustrated girl lying in a field of grass with her arms spread out

First Attempt

The first attempt

I started with a very raw prototype of a stick figure of me in a skirt, lying on bright green 3D grass with some pink flowers. I still find this version quite funny.

The grass interaction was already working, so I continued experimenting with the concept and refining the art direction based on my profile picture.

The Scene

Developing the scene

  1. The sky layer: a clear blue gradient

    01 Sky

  2. The clouds layer

    02 Clouds

  3. The far hills layer: a distant town by the water

    03 Far hills

  4. The trees layer along the top of the hill

    04 Trees

  5. The painted hill

    05 Hill

  6. Me, traced out of the painting

    06 Me, traced out

I wanted to retain the soft, painted look of the illustration while adding depth and movement to the environment.

The illustration is separated into five layers with a subtle parallax effect, combined with real-time 3D grass built using Three.js and custom shaders.

I went through several iterations to refine the grass movement, texture, lighting and how the character blends into the scene.

Fun Parts

Things I had fun building

Touching grass

I've always found touching grass quite calming, so I thought it would be fun to recreate that experience digitally, together with the movement and sound of the grass.

Facial expressions

I added five facial expressions to my character so she could react to your cursor. She gets curious, looks around, smiles and eventually goes back to resting.

Day and night

The environment changes based on your local time. I also added stars, moonlight and fireflies to the night scene.

Sound and music

The ambient sounds and an original piano waltz are generated live in the browser.

How It Works

Under the hood

  • 01Five painted layersThe illustration is split into the sky, clouds, far hills, trees and the hill. Each layer moves at its own depth with your cursor.
  • 02170,000 blades of grassOne 8-segment blade, repeated 170,000 times on desktop and 65,000 on phones, all in a single draw call. Blades get smaller up the slope, with darker clumps to break up the field.
  • 03Grass around the characterA mask traced from the painting lets longer grass grow around my outline, so I lie in the grass rather than on top of it.
  • 04Touching the grassThe last 28 points of your cursor are tracked, and nearby blades bend away from the direction you move. Blades higher up the slope count as further away, so the parting follows the hill.
  • 05Spring backAfter your cursor passes, each blade swings a little past upright before it settles, like real grass.
  • 06WindEvery 14 seconds, a breeze moves across the field for about 5 seconds and nudges the signpost boards.
  • 07Facial expressionsFive faces: resting, curious, looking left, looking right and smiling. After reacting, she rests for a few seconds so it doesn't get repetitive.
  • 08Day and nightThe scene follows your local time, with dusk from 5:30 to 7pm and dawn from 5 to 6:30am. At night there are stars, the Milky Way, shooting stars and fireflies.
  • 09SoundNo audio files. Wind, birds and the grass rustle are generated with the Web Audio API, and the rustle gets louder the more you brush. The piano waltz is in 3/4, F major. Sound is off by default.
  • 10PerformanceAfter loading, it checks the frame rate. On a slow device it first lowers the resolution, then plants 60% of the grass with slightly wider blades, so the hill never looks bare. A screen capped at 30 fps isn't treated as slow. Pixel ratio is capped at 1.5 to stay sharp without overworking the GPU.
  • 11Reduced motionWith reduced motion turned on, the wind calms down and the sparkles turn off.

Closing

Back to the hill

What started as a profile picture is now the first thing people see when they open my portfolio. It's a little reminder of where I started, and a place where I can keep playing with design and code.

If you haven't tried it yet, go touch the grass.