Home/Blog /Engine

GANDER now has a real sky, moving water, fire, crowds and hair

The effects you notice first in a modern 3D game, built to run on the graphics card so they fit in a browser: a physical sky, water that moves, fire and smoke volumes, bounce light, skin, hair, crowds and forests. Shown in the engine's test scenes, a rally game and a swamp showcase.

A month ago GANDER could draw a good-looking game, but the effects you notice first in a modern 3D game were missing: a real sky, water that moves when you drive through it, fire you can see through, a crowd that reacts, light that bounces around a room. We've now built them, mostly as small programs that run on the graphics card instead of the processor, which is what makes them cheap enough for a browser.

This post shows each one in the test scene the engine is checked against, then in two games built with them: Ridgeline Rally, a mountain rally game, and a calm swamp showcase we made just to push the look as far as it goes. As before, none of this needs anything from you. You describe the game, and the agent uses what fits.

What's new in GANDER?

  • Sky and clouds: a physical sky that follows the sun, clouds that cast moving shadows, and cloud you can fly through.
  • Water: waves that splash on a shore and push away from boats and cars, caustics and light shafts under the surface, and a pool's water seen from above.
  • Fire, smoke and particles: fire and smoke as real volumes that drift with the wind, and particles that run on the graphics card.
  • Light: light that bounces between surfaces as the scene changes, reflections of what is off screen, volumetric fog, soft sun shadows, coloured shadows through glass and rectangle lights like windows and screens.
  • Surfaces: bricks and cobbles with real depth, skin that lets light through, and strand hair.
  • Scale: crowds of hundreds, forests of a million trees, and terrain you can dig into.

How does the sky work now?

The sky is worked out from the sun's height, the way real air scatters light, so a game gets a pale blue noon, a long orange sunset and a dark blue night from one setting: the time of day. Clouds are a layer the engine traces through, lit by the sun from behind and above, and they cast moving shadows on the ground below them. A game can also put the camera inside the layer, so a plane can climb through cloud, or a rally car can drive into it at the top of a pass.

A bright blue sky with puffy white clouds, their undersides shaded grey, and a small white sun high in the frame.
The sky lab: clouds lit from the sun's side, shaded underneath, drifting.
A view from inside a cloud bank looking down at a green hillside, with white cloud wrapping the top and right of the frame.
Flying through cloud: the camera inside the layer, with the ground showing through a gap.

What can water do?

Water now moves. A stretch of water near the player is simulated: waves run up a beach and fall back, a boat or a car pushes a wake, rain drops rings, and a floating log bobs on it. Under the surface, sunlight makes moving caustic patterns on the bottom and shafts through the water, and from below the surface you see the sky through a bright window overhead.

Blue water with rolling waves breaking on a sandy beach, a red post standing in the sand and a plank floating near the shore.
Waves on a shore: they run up the sand and back, and the plank rides them.
An underwater view of a rippled sandy sea floor with a few smooth rocks, the surface a dark band at the top of the frame.
Under the water: the sand ripples, the rocks' shadows and the light coming down through the surface.

How do fire and smoke look?

Fire and smoke used to be flat sprites. They can now be real volumes: a small simulation of rising, swirling air that the engine fills with heat and smoke, lights from inside and shades where it's thick. Wind pushes it. Particles moved to the graphics card too, so sparks, embers, rain and dust can run into the tens of thousands while costing the processor almost nothing: in our test the particles' processor time went from 0.40 ms to 0.06 ms a frame.

A fire burning in a small brazier in front of a tall pale wall, with dark smoke rising and curling up the wall above it.
Fire in front of a wall: the smoke rises, curls and darkens as it thickens.
A night scene with rain falling over a dark field, a glowing orange ring on the ground, a small fire and a burst of gold sparks.
Particles on the graphics card: rain, sparks, a fire and a shockwave ring in one scene.

What changed in the lighting?

The biggest change is light that bounces. Before, a room lit by one window was dark wherever the sun didn't land. Now the engine keeps a coarse model of the scene and works out how light carries from surface to surface, so the sunlit floor lights the ceiling and a red wall tints the floor beside it. It updates as things move, and it costs about 1.6 ms of graphics time in our test room. The same model gives glossy floors reflections of things that aren't on screen.

Alongside it:

  • Volumetric fog: the air is divided into small cells that the sun and every lamp light, so beams fall through gaps and a lamp has a glow that a wall cuts off.
  • Soft sun shadows: sharp where an object touches the ground and softer further from it, like a real sun.
  • Coloured glass: stained glass throws coloured light, and frosted glass softens it.
  • Rectangle lights: windows, signs and screens light a room as panels, not points.
A simple room with a red wall on the left, a green wall on the right and a blue floor, lit by a skylight, with soft coloured light on the floor and ceiling.
Light that bounces: the red and green walls tint the room, and the skylight's patch lights the ceiling.

What about surfaces, skin and hair?

  • Depth on surfaces: brick, cobble and stone can look carved instead of painted, with bricks that hide each other at a low angle. It costs about 0.4 ms at full screen.
  • Skin: light passes a little way into skin and comes out red, so the edge of a shadow on a face goes soft and warm, and ears glow when lit from behind.
  • Strand hair: thousands of real strands that swing as the head moves, with the two highlights real hair has. It works in every browser, including on phones that only have WebGL2.
A close view of a red brick floor and wall, with each brick raised and the mortar lines sunk between them.
Brick with depth: a flat surface drawn so each brick stands proud of the mortar.
A close portrait of a woman's face lit from the side, the shadow on her cheek soft and warm, with dark hair pulled back.
Skin: the shadow edge across the cheek and nose goes soft and warm instead of grey.
A plain head model from behind with long straight brown hair falling to the shoulders, lit from above.
Strand hair in the WebGL2 build, the one phones without WebGPU use.

How big can a scene get?

  • Crowds: hundreds to thousands of copies of a character, each walking, cheering or stepping aside on its own, drawn together. In our test 300 cost 0.3 ms of processor time against 1.8 ms drawn one by one.
  • Forests: the graphics card culls what you can't see itself, including trees hidden behind a hill, so a million trees cost 0.27 ms of processor time a frame.
  • Digging: terrain can be a volume instead of a surface, so a game can dig holes, tunnels and craters that stay dug.
A wide flat plain covered in rows of small figures, hundreds of them, under a pale sky.
A crowd lab: hundreds of characters, each with its own timing.
A misty forest of dark spruce trees, nearer trees sharp and the far ones fading into fog.
A forest culled on the graphics card, with fog between the trees.
A green hillside with a deep dark pit dug into it, loose brown earth piled around the edge.
Digging: a pit dug into the terrain, with the earth thrown up around it.

What does it look like in a game?

We gave Ridgeline Rally one turn to use what fits a mountain rally, and asked for a new car at the same time. The agent built the car in code, panel by panel: flared arches, a roof wing and scoop, a light pod on the bonnet, see-through glass with a roll cage and a steering wheel that turns, wheels that spin, steer and ride their own suspension, and a livery with made-up sponsors. It has the same size and collision as the old one, so it drives exactly as before.

Then the effects: spectators line the hairpins and jumps, cheer as you pass and step back if you come close, up to 240 of them on a desktop and 56 on a phone. Gravel throws a dust cloud that hangs behind the car and drifts in the wind. The riverbed stage got a ford where the car pushes real waves. Clouds shadow the mountains, and the top of the Ridgeline stage runs into a thin cloud layer. Phones stay inside their frame budget: the agent turns the heavier effects down there and keeps the full set for desktops.

A white rally hatchback with orange and teal stripes and a number 7 on the door, parked on a gravel road beside pine trees.
The new car, built in code: same size and handling, new everything else.
A rally car sliding through a dusty gravel corner, a thick cloud of brown dust thrown up beside it and pine trees behind.
Dust that hangs in the air behind the car on gravel, and drifts with the wind.
A chase view of a rally car approaching a shallow river crossing on a grassy valley stage, with pine forest beyond.
The riverbed ford: the car pushes waves through the water and the stones underneath catch the light.
The front of the rally car at dusk on a forest road, its four-lamp light pod and headlights lit.
Working lights: the headlights and the bonnet pod throw real beams onto the road.

How far can the look go?

To find out, we asked for something that should read as a photograph: an old airboat stop at the edge of a swamp, with tourists, wildlife, a storm and fireflies. It runs in a browser and uses nearly everything above at once: the sky and time of day, bounce light in the shack, fog over the water at dawn, sun shafts through the cypress, gas smoke from the airboat, and 160,000 clumps of sawgrass culled on the graphics card.

A wooden shack on stilts at the edge of still water at dawn, the low sun glaring behind it and the shack and trees mirrored in the water.
Dawn: the low sun, mist over the water, and the shack reflected in it.
Two tourists seen from behind on an airboat in a cypress swamp, sunlight streaming between the tree trunks onto the water.
The cypress tunnel: sun shafts between the trunks, soft shadows on the water and strand hair on the tourists.
The inside of a wooden shack with plank walls, a glossy wooden floor, shelves and windows letting in daylight.
Inside the shack: daylight from the windows and the door bounces round the plank walls.
The shack at night with warm porch lights and a glow around it, under stars, with fireflies over the dark grass in front.
Night: the porch lamps glow in the humid air and fireflies drift over the grass.
Grey choppy water under a dark overcast sky with rain falling across a wide swamp channel.
A passing storm: heavy cloud, rain, and wind-driven waves on the channel.

Does it all run on phones?

Most of it, turned down. Every effect has a lighter setting the agent can use on phones: fewer cloud steps, a smaller water area, fewer crowd members, shorter shadows. The effects that need a newer browser feature, the ability to run general programs on the graphics card, are left off where it's missing (older phones, and browsers without WebGPU), and the game keeps its previous look there. The rally game stays inside its phone frame budget with crowds, particles and fog on. The swamp showcase is built for desktops first, and on phones it drops the bounce light, the fog and the water simulation.

What's still missing?

  • The first load can hitch. The richer main shader takes a moment to prepare the first time a browser sees it. We made it about three and a half times faster this week, after it was enough to stall some graphics drivers.
  • Close-up reflections on water are coarse: the off-screen reflections come from the same coarse model as the bounce light, so they look blocky up close.
  • No graphics-card timing in a browser: our tests measure the processor's time per frame in the browser. Graphics-card time is measured in desktop builds.
  • Not yet run on real hardware: a Windows graphics card and an Android phone. Both build, and the effects are checked on a Mac, in browsers, and on a cloud GPU.

Frequently asked questions

What new graphics features does GANDER have?

A physical sky with clouds, simulated water with waves and wakes, caustics under water, fire and smoke volumes, particles on the graphics card, light that bounces between surfaces, reflections of what is off screen, volumetric fog, soft sun shadows, coloured glass shadows, rectangle lights, surfaces with depth, skin, strand hair, crowds, million-tree forests and terrain you can dig into.

Do GANDER's new effects run in a browser?

Yes. They run in desktop browsers with WebGPU, and most have lighter settings for phones. Effects that need to run general programs on the graphics card are left off in browsers without WebGPU, where the game keeps its previous look. Strand hair, skin and crowds also work with WebGL2.

Do I have to set these effects up myself?

No. You describe the game, and the agent building it uses the effects that fit, with lighter settings for phones.

Keep reading

Related articles

Engine

What's new in GANDER: particles, enemy navigation, 16 km worlds and cloth

We listed what our Unreal games used that GANDER couldn't do, and built it: effects, navigation, lighter downloads, sound spaces, desktop graphics, streamed worlds and cloth. Then we ported one of those games and built what that turned up.

12 min read
Engine

GANDER: our own game engine, and no human will write a line of code for it

We built a game engine for one reader: the agent. It runs in the browser and on desktops, builds in seconds, tests its own games, and loads a fraction of the size of the same game in Godot.

10 min read
Feature

Pro mode: desktop games with Godot's full graphics

Tick Pro and the studio builds your game for Windows, macOS and Linux on Godot's desktop renderer: real-time global illumination, volumetric fog, reflections. The browser version stays as the preview you test with.

8 min read