FERRETGame engine over Babylon.js
Ferret

Examples

Samples that run in this page. Each one loads only when you press the button; the sources are in examples/ of the repository, and each has a README with the rebuild steps. The same samples are also shown on the overview.

Games and machines#

Operation Dynamo#

The evacuation from the East Mole, watched with a free camera: a 2 km beach of 3,200 soldiers who wait, sit, crouch, talk and queue, abandoned lorries and guns, a Fletcher-class destroyer that comes alongside by herself while the column climbs the mole and crosses the gangway, lifeboats, yachts and a paddle steamer with soldiers and crews on their decks, and a low air war of Stukas, Heinkels, Dorniers, Messerschmitts, Spitfires and Hurricanes over it, with Bofors guarding the mole. The sea, the ship's physics, the crowd's posture AI and the flight models are Ferret's.

crowd posture AI ships flight weather sea

Look: drag. Move: W A S D or the arrows; Q / E down and up; Shift fast; the wheel sets the speed. 1-6 the weather, B calls a raid, R again, Esc pause. In a headset (Enter VR): left stick flies, right stick turns and lifts; left grip = the C key (the mode), right grip = the V key (the view); a card on the screen says so, and the right stick click shows or hides it. The first start downloads about 23 MB (14 MB on a phone).

Source: examples/dunkirk. Read more: examples/dunkirk/README.md, plans/PLAN-DUNKIRK.md

Channel Escort#

A raid of twelve B-17G bombers on a port on the French coast, and you fly the lead Mustang of three escorts: first-person cockpit, Bf 109 waves, flak, destroyers and U-boats with long wakes, random weather. The flight model, the weapons and the wakes are Ferret's; the autopilot flies your Mustang and fights.

flight physics AI weather VR

About 48 MB, loaded only when you press the button; the far aeroplanes are baked pictures of the same models. Press START. Pitch and roll: arrow keys; rudder: A / D; throttle: W / S; fire: Space; lock the next bandit: T; gear G, flaps F; 1 / 2 / 3 = fly a Mustang, a B-17, a Bf 109 (on the fly); 0 = cockpit or outside view (drag to orbit, wheel to zoom); * = autopilot (the AI flies your Mustang boom and zoom; the stick takes over). VR: the Enter VR button; a card on the screen lists the controls (right stick click shows or hides it; left grip takes the next aeroplane).

Source: examples/airwar. Read more: examples/airwar/README.md, plans/PLAN-AIRWAR.md

Falcon Escape#

The YT-1300 against four waves of TIE fighters in an asteroid belt by a ringed gas giant, then the jump to lightspeed: a pursuit AI that overshoots and comes round again, homing missiles, shields, wings tumbling off the wrecks, synthesised sound, three cameras, and an autopilot that fights for you. Every model, texture, effect and sound here was drawn and modelled by the Ferret project, in code. Their look may be the intellectual property of Lucasfilm Ltd.; using this demo or any part of it for anything other than getting to know the Ferret engine is prohibited.

space AI effects sound phone VR

About 23 MB (11 MB on a phone), loaded only when you press the button. Press LAUNCH. The ship turns toward the mouse cursor; left button fires, right button launches a missile; W / S or the wheel: throttle; Shift: boost; A / D: roll; T: next target; C: camera (chase, far, fly-by); *: autopilot on / off (or open the page with ?bot=1); P: pause. Phone: the left half of the screen is a stick, hold the right half to fire, tap it for a missile. In a headset (Enter VR): right stick steers, left stick rolls and sets the throttle, trigger fires, right grip launches a missile, A: next target, B: camera, Y: pause; the HUD is a board before you. Demonstration only: see the notice above.

Source: examples/falcon. Read more: examples/falcon/README.md, examples/falcon/assets/NOTICE.txt

Flying Squirrel#

A ducted-fan hovercraft flies over a forest level inside a landscape of the engine: a river from the mountains into a lake, forest to the mountain ring, sky and clouds of the weather module. The rotor wash is Ferret's: it bends the crowns and branches (they break and stop the craft by the beam law), blows grass, rings and foams the water and tears spray off it.

physics rotor wash branches break water procedural world

About 55 MB, loaded only when you press the button. Move: W S A D. Turn: left and right arrows. Height: up and down arrows. Shift: fast. The mouse looks round (the head), the wheel zooms, V: view from the cabin. Fly low over the water and into the crowns.

Source: examples/forest-squirrel. Read more: plans/PLAN-PHYSICS-RESPONSE.md

Interiors#

The Apartment#

An Unreal archviz apartment, running in your browser on baked light: walk through one continuous room, floor plan.

Unreal Engine 5 baked light first person phone

60 FPS on a laptop RTX 3050. Download by quality tier: low 19 MB, mobile 13 MB (this page), desktop 20 MB.

About 13 MB, loaded only when you press the button. Walk: W A S D or the arrow keys. Look: click the picture, then the mouse (or drag), R and F look up and down. Jump: Space. Floor plan at the bottom right: click a spot to go there. Menu: Esc.

How it was made

  1. The project. The ArchViz apartment of Unreal Engine 5, as it is: its meshes, materials, lights and the baked lighting of the original.
  2. Export. Ferret's Unreal exporter writes the level to glTF; the post-process step builds three quality tiers (low, mobile, desktop) with compressed textures and meshes cut to a triangle budget, plus a collision model for walking and a grid of light probes that carries the baked light onto things that move.
  3. Package. The result is an ordinary Ferret level package: a folder with a manifest, scene.glb, collision.glb and the probes. The level packages are large binaries and live outside Git (see the README of the example).
  4. Embed. The example is a small TypeScript game (examples/apartment): first-person movement, a loading screen with progress, a floor plan drawn from the level's own walls. This page runs it with the mobile tier.

Source: examples/apartment

Ferret Room#

A boutique guesthouse interior made in Unreal Engine 5.8, walked in the browser: lounge, bar and dining table on baked light.

Unreal Engine 5 baked light first person phone

60 FPS on a laptop RTX 3050. Download by quality tier: low 9 MB, mobile 11 MB (this page), desktop 16 MB.

About 11 MB, loaded only when you press the button. Walk: W A S D or the arrow keys. Look: click the picture, then the mouse (or drag), R and F look up and down. Jump: Space. Floor plan at the bottom right: click a spot to go there. Menu: Esc.

How it was made

  1. The project. The Wabi Sabi Boutique Guesthouse interior of Unreal Engine 5.8 (Mint Studio), as it is: its meshes, materials and lights.
  2. Export. Ferret's Unreal exporter writes the level to glTF; the post-process step builds three quality tiers (low, mobile, desktop) with compressed textures and meshes cut to a triangle budget, plus a collision model for walking. The original uses Lumen and has no baked light, so the light is baked here into a grid of probes.
  3. Package. An ordinary Ferret level package (a manifest, scene.glb, collision.glb, the light probes); the packages are large binaries and live outside Git (see the README of the example).
  4. Embed. A small TypeScript game (examples/wabi-sabi): first-person movement, a loading screen with progress, a floor plan. The page picks the quality tier from the browser; this page carries the mobile tier.

Source: examples/wabi-sabi

Open House#

An open-plan home (living room, dining area, kitchen) from Unreal Engine, walked in the browser on baked light.

Unreal Engine 4 baked light first person phone

60 FPS on a laptop RTX 3050. Download by quality tier: low 8 MB, mobile 9 MB (this page), desktop 26 MB.

About 9 MB, loaded only when you press the button. Walk: W A S D or the arrow keys. Look: click the picture, then the mouse (or drag), R and F look up and down. Jump: Space. Floor plan at the bottom right: click a spot to go there. Menu: Esc.

How it was made

  1. The project. The Home Interior scene of Unreal Engine 4.27 (Olga Chekunova), as it is: its meshes, materials and lights.
  2. Export. Ferret's Unreal exporter writes the level to glTF; the post-process step builds three quality tiers (low, mobile, desktop) with compressed textures and meshes cut to a triangle budget, plus a collision model for walking. The 4K textures are compressed to KTX2 and capped per tier.
  3. Package. An ordinary Ferret level package (a manifest, scene.glb, collision.glb, the light probes); the packages are large binaries and live outside Git (see the README of the example).
  4. Embed. A small TypeScript game (examples/home-interior): first-person movement, a loading screen with progress, a floor plan. The page picks the quality tier from the browser; this page carries the mobile tier.

Source: examples/home-interior

More games and machines#

Hindenburg#

An airship of 245 m flying over a procedural zone of 100 by 100 km: mountains, forest, fields, lakes, herds of animals and a fortress, with a day and night cycle of two minutes. The physics is Ferret's: buoyancy, ballast, the helm, wind and the crash on impact.

physics procedural world day and night airship

About 16 MB, loaded only when you press the button; this page carries the light version. Engines: Z / X. Steer: W / S pitch, A / D heading (H: manual wheel). Valve: V. Ballast: B. Herd markers: G. Hold the clock: T. Time speed: , and . Esc: cover off. Drag to orbit, wheel to zoom. Fly low and the ship crashes on the ground.

Source: examples/zeppelin. Read more: examples/zeppelin/README.md, plans/PLAN-ZEPPELIN.md

Dragon Duel#

A Viking against a Crusader Knight in a forest clearing under mountains, in a landscape and weather of the engine's own modules (choose the weather and the hour of the day), while a Dragon breathes fire over them; the fighters are built from the asset library.

asset library combat AI flight

About 190 MB of models and animations, loaded only when you press the button; this page carries the mobile quality tier. Roles on the fly: 0 observer, 1 knight, 2 viking, 3 the Lady on the Dragon. Fighters: W A S D move, mouse looks, left button strikes (hold for the heavy blow), right button blocks, Space dodges, Shift runs. Dragon: W / S climb and dive, mouse or arrows steer, Space breathes fire, Q / Z speed.

Source: examples/fight. Read more: The combat guide

School Yard#

A castle courtyard made in Unreal Engine 5 and brought over by the export pipeline, walled in by collision built from the same scene; the exit door is the one piece of game logic.

Unreal Engine 5 first person cut-scene

About 50 MB, loaded only when you press the button; this page carries the light quality tier. Walk: W A S D or the arrow keys. Look: mouse. Jump: Space. Run: Shift. Use: E. Menu: Esc. Walk to the door in the gate to see the exit.

Source: examples/school-outside. Read more: The overview, examples/school-outside/README.md

Gearbox#

141 solid parts generated from one file of numbers, driven by Ferret's physics: shafts, gears, sleeves, forks, the crown, the planets and the oil move from the state of the machine.

physics generated model cutaway

About 19 MB, loaded only when you press the button. Engine: slider or Up / Down. Clutch: Space. Gear: N, 1 to 5, R or Left / Right. Brake: hold B (stop before reverse). Housing: slider or Esc. Drag to orbit, wheel to zoom.

Source: examples/gearbox. Read more: The gearbox guide

Atom Lab#

A teaching lab with four modes: any of the 118 atoms with its shells and spectrum, X-rays and electrons sent at atoms and matter, thirteen substances that build their crystal, liquid or gas from a volume, a pressure and a temperature, and radioactive decay with a chain reaction. A spoken commentary in English explains what is on the screen.

physics atoms X-rays states of matter decay VR voice

About 20 MB, loaded only when you press the button. Pick a mode in the tabs. M: voice on / off. Irradiation: Space fires the chosen particle at the atom (hold: a stream). Decay: R restarts, Space sends a neutron (hold: a stream). Drag to orbit, wheel to zoom.

Source: examples/education. Read more: The Atoms and matter guide