Keith B. SmithGallery 04 · AI Playground

Move the mouse to look around · click a work to view it

Keith B. Smith

AI Playground

Gallery 04 · 4 works

Chameleon

unity_ml-agents_exhibits · after unity_00_09_ml-agents_chameleon (2019)
2026 · Unity ML-Agents, C#, trained with PPO · the trained network runs here in JavaScript

A chameleon on a branch, with a swatch of colour beside it. Each of its seven body parts starts out a different colour, and nudges its own red, green and blue up or down until the whole animal matches the swatch. Then it holds still.

Nothing is scripted. The chameleon is a small neural network, trained at home with Unity ML-Agents over a few million steps, sixty-four chameleons at a time. It was rewarded for getting closer, for settling, and a little extra for settling all at once. The early versions shimmered constantly; this one learned to stop. It began in 2019 as a CS-school tutorial that learned from camera pixels.

Here the network runs in plain JavaScript, with its weights copied unchanged out of the trained model: 24 numbers in, two layers of 128, and 21 small choices out, fifty times a second.

▶ Play

Randomize picks a new colour, Scramble mixes up its body, or pick a colour yourself. Drag to turn. Every 500 decisions it starts over with a new colour.

Cube Guy

unity_ml-agents_exhibits · after unity_00_07_ml-agents_warehouse (2019)
2026 · Unity ML-Agents, C#, trained with PPO · the trained network runs here in JavaScript

A green cube with a face, a red ball and an orange goal, each dropped somewhere on a four-by-four grid. Cube Guy drives, turns and slides sideways until he is behind the ball, then steers it home. In testing he scored in 400 games out of 400, usually in about two and a half seconds.

He first learned this in 2019, in a warehouse built for a CS-school project: nine raycasts for eyes, a small reward for every bump, and Unity's physics. This Cube Guy knows exactly where everything is, is paid for moving the ball toward the goal, and plays by a small hand-written physics, so the same rules run here in the browser. Learning to strafe is what made him good.

Here the network runs in plain JavaScript, with its weights copied unchanged out of the trained model: 14 numbers in, two layers of 128, and three small choices out, ten times a second.

▶ Play

Click the floor to drop the ball somewhere new. Drag to turn the arena; Orbit stops the slow spin.

The 2019 original, learning at 20× speed (YouTube) ↗

Doom Clone

unity_ml-agents_exhibits · after unity_00_11_ml-agents_doom_clone (2019)
2026 · Unity ML-Agents, C#, trained with PPO and a curriculum · the trained network runs here in JavaScript

Every level is new: one to three square rooms in a line or an L, staggered, with three red enemies, a health pack and an exit that stays locked until the last enemy falls. The agent sees through fifteen rays, drawn on the map, and a few numbers: his health, how many enemies are left, and which way to walk. Nobody pays him for kills; he fights because enemies stand between him and the door.

He learned in three lessons, one room and one slow enemy first, and was clearing full levels within a million steps. In testing he cleared 300 levels out of 300, in about four and a half seconds each. The 2019 version had four weapons, a boss and pickups, and never learned anything: its health and ammo went into the network as raw numbers, one of them over two billion.

The first-person view is drawn here the way Wolfenstein 3D drew its corridors, one column at a time, from the same walls his rays measure.

▶ Play

Watch him clear rooms; New level deals a fresh one. The map shows what his rays see.

Infinite Road

unity_ml-agents_exhibits · after unity_00_15_ml-agents_infinite_road (2019)
2026 · Unity ML-Agents, C#, trained with PPO and a curriculum · the trained network runs here in JavaScript

A small orange car on a country road it has never seen. Every road is laid down at random: a dozen bends, hills, and a lane narrower than the one before, out to a chequered finish. The car sees six points on the road ahead, drawn as yellow markers, along with its speed and where it sits in the lane. Nobody told it to brake for bends; it found out that the grip runs out if it doesn't.

The 2019 version pushed a physics car around with on-off forces, saw one ray and the straight-line distance to the goal, and never learned to drive. This one drives a simple hand-written car, is paid for every metre of road, and learned in five lessons, from short straight roads to long twisty ones. It reached the hardest within half a million steps, and in testing finished 500 roads out of 500, in about eighteen seconds each.

Here the network runs in plain JavaScript, with its weights copied out of the trained model: 17 numbers in, two layers of 256, and two numbers out, steering and pedal, ten times a second. The grass, the trees and the dirt are scenery; it has never seen them.

▶ Play

Watch it drive; New road lays a fresh one. Camera switches between chase, drone and orbit, and Its eyes shows the six points it steers by.