Skip to guide
Rainbow Lab/Documentation

Glass Foundry

Glass ball pit

Open Tools > Foundry > Glass Foundry > Samples > Open ball pit, or open Samples/Scenes/Glass Studio.unity. This scene has 108 flat coloured circles drifting and colliding over a dark navy background. Solid unlit colours replace glossy spheres, and all circles stay on one plane so they do not overlap through depth. The orthographic view keeps their scale consistent. Invisible walls keep them inside the view. In the gallery, the moving background shows through the six glass panels; the surrounding area stays quiet so captions are readable. Glass off reveals the full original background.

Press Play and drag anywhere on one of the six glass panels. A dragged panel comes to the front and stays inside the panel workspace. The panels show Liquid glass, Clear glass, Soft frost, Sea glass, Rose glass and Smoked glass. The moving circles behind both rows make it easier to compare refraction, tint and diffusion. Sea and Rose demonstrate individual corner radii. Each appearance is local to its Glass Image; Inspector edits affect just that panel. All six share one camera source. Glass previews in Edit mode; dragging uses Play mode.

The Clear example has no lens distortion. Liquid uses stronger bending and magnification than the starting preset so the difference is easy to see as the circles move.

Motion starts automatically in Play mode. The circles bounce off one another and the invisible bounds. A small speed correction prevents slow contacts settling the display; it does not change project gravity or physics settings. Use Motion on/off to pause or resume them. Glass on/off compares against the unmodified background. The Blur slider changes the shared blur steps; clear panels retain their clarity. Reset panels restores their starting positions and order. The footer shows the current capture size and pass count. These controls change the running sample, not the saved styles.

Rebuild ball pit replaces this sample scene and its sample artwork. The scene keeps its existing Glass Studio.unity path. Open the saved scene normally to retain layout changes.