← All projects

Disco Ball

An interactive attic in Unreal Engine 5 with two technical problems at its heart: real disco ball caustics, which the engine can't render, and a toy plane the player can take off the desk and fly around the room.

GAME 710 · SCAD · Fall 2026 Role: Technical Artist · Lighting · Blueprint Scripting Tools: Houdini, Copernicus, Unreal Engine 5, Blueprints, Maya
The attic in afternoon light with the toy plane on the desk
Afternoon
The toy plane flying through the dark attic among disco reflections
One switch later

Part 1: caustics the engine can't render

The spots a disco ball throws on a wall are caustics: light bounced off thousands of small flat mirrors. Neither Lumen nor the Path Tracer can produce them. So I computed them offline in Houdini from the real mirror geometry, baked them into textures, and projected them back in Unreal through light functions on point lights hung under the ball. When the ball turns, the lights turn with it and every spot follows.

Tracing the mirrors

A Python SOP finds the 5,467 mirror faces on the ball and reflects the key light off each one. From the geometry alone it works out where each spot lands, how big it is at a given wall distance, how soft its edge is from the size of the lamp, and how bright it is. No spot is placed by hand. Each mirror is also given one of three colour groups, so the spots can be tinted red, green and blue independently.

A light function only knows direction, not distance, but spot size and brightness depend on how far away the wall is. The fix is to bake three layers, for walls at 40, 120 and 360 cm, each a 4096 × 2048 HDR with one colour group per channel. In Unreal the material blends between them by the log of the distance to the light.

Lat-long caustic map with red, green and blue spots in bands
The 120 cm layer as a lat-long map. Each colour is one mirror group.

Three ways to bake

I wrote the same spot model three ways and checked them against each other. The Copernicus version is the one to tune with: it updates live in the viewport and still matches the Python reference pixel for pixel.

MethodTime per layerResult
Python + NumPy~2.5–3 s, CPUReference
Copernicus Wrangle + pcfind~2–2.6 sMatches the reference (PSNR ~100 dB)
Projection rasterize~6 s, GPUClose but softer (correlation 0.955–0.985)
Houdini Copernicus network baking the caustic map
The Copernicus bake
Side by side crops of the exact and rasterized bakes and their difference
Exact vs. rasterized, with the difference
Graphs of light falloff across one spot for each distance layer
Cross-sections through one spot

In Unreal

Three point lights sit under the ball, one per colour channel. Volumetric fog turns their beams into visible shafts. On the ball itself, a mirror material uses the same reflection data, stored in the mesh UVs: a tile only flashes when the camera stands inside that tile's spot, so the glints on the ball always agree with the spots on the walls.

Light function material graph: three cube maps blended by distance
Light function blending the layers
The baked caustic texture open in Unreal
The baked map in the engine
Mirror tile material graph: glint from tile direction against the camera vector
Mirror glints on the ball
The ball turning. Every spot is one mirror tile.

Part 2: flying the toy plane

Click the plane on the desk and the camera drops in behind it. Click again to start the propeller and the navigation lights, once more for full throttle, and then it's yours: W and S fly forward and back, A and D turn, and the height follows the mouse. Space flies it home.

The whole flow runs on one integer state. Clicks only move the state forward, so a stray click mid-flight does nothing.

StateWhat happens
0 · IdleRoom camera. Plane on the desk, lights off.
1 · ReadyCamera cuts to behind the plane.
2 · Warm-upPropeller spins up slowly, lights start blinking.
3 · FlightFull speed. WASD and mouse control.
4 · ReturnSpace: back to the room camera and the desk. One more click winds the propeller down to idle.
Free flight around the attic.

Making it feel like flying

Nothing in the flight snaps. The propeller speed eases toward its target every frame, so it spins up and winds down. Forward input is smoothed the same way, which also keeps the chase camera calm. Forward motion ignores the plane's slight nose-up pose, so it doesn't slowly climb.

Climbing and diving moved from keys to the mouse: with a hand on WASD there's no finger left for two more keys. The mouse height relative to the centre of the screen becomes a climb rate, with a small dead zone so the plane can hold level.

The plane banks into turns and pitches with the climb, and the camera follows part of the pitch but none of the bank. The propeller spins around a scene component at its hub and the body pitches around one at its balance point, with the meshes offset beneath them.

Blueprint graph of the plane click state machine
Click state machine
Blueprint graph of the flight controls on Event Tick
Flight, bank and pitch on Tick
The plane flying toward the window in afternoon light

The rest of the attic

The main light switch swaps the room between afternoon and disco night: the lantern gives way to the disco ball, the sky jumps from 15:25 to 23:00, exposure drops and the music changes. Around it, the light strip cycles its colours, the marquee letters change and tilt at night, the desk chair slides out, the desk lamp toggles, the floor mirror swings on its pivot, and the spring toy sways with a world position offset in its material.

Blueprint graph of the main light switch
Day and night switch
Material graph for the spring toy sway
Spring toy sway in the material
The plane flying low over the floor past scattered drawings

Credits

Disco ball, caustics bake, Blueprints, lighting and set: Yichen Shi. Plane modeled in Maya; other assets made in Houdini.

Spring Toy Chair by ParkTaeAn (Fab). Sky: Ultra Dynamic Sky. Sound effects generated with Adobe Firefly.

GAME 710, Savannah College of Art and Design, Fall 2026.