Wireframe view of a 3D slice of toast with a circular bite cut from the mesh
Project screenshot from Runi’s original portfolioEat the Toast!

Eat the Toast! · Computational geometry experiment

Eat the Toast!

A playable Unity experiment that lets you take bites out of a 3D toast model with run-time mesh Boolean operations.

Role
Developer — Computational Geometry
Period
2024
Tools & focus
Unity · C# · WebGL · Shader Graph · Mesh Boolean Operations

A slice you can actually bite

Eat the Toast! is a semester-long final project for RIT’s CSCI 716 Computational Geometry course. I built a Unity WebGL prototype where clicking a 3D slice of toast removes a piece of its mesh. A cylinder defines the cut, and a run-time Boolean difference creates the new shape.

The idea came from playtesting Sometimes Toast is O.K. Players wanted to take smaller bites instead of consuming the whole slice at once. This was a separate experiment to explore that interaction; it was not integrated into the released game.

Shaded 3D toast with a bite cut from its edge in the Unity prototype
The bite operation in the playable prototype.

What I built

The prototype uses Unity 2022.3.14f1, URP, Shader Graph, C#, and LibCSG-Runtime for the mesh Boolean operation.

Limits and next steps

The cut mesh does not yet receive finished UV coordinates. Complex meshes take longer to process, so I added a one-second cooldown between cuts. The calculation also runs without parallelization. Those constraints made the prototype a useful study of the gap between a satisfying interaction idea and a robust game-ready implementation.