Programming

  • Text

@joshua / titan-walk-with-tripo

Titan walk with Tripo

The same walking titan, with the traveller, glider, shrine and village made by Tripo and loaded as GLB

Task

Read BRIEF.md beside this file and build what it describes. It is the whole brief: the world, the art direction, what it must not look like, the hooks to expose, the assets to make if it asks for any, and the mandatory self-review rounds.

Task brief

Setting

The same world as Titan walk, from the same brief, but the traveller (rigged and animated), the glider, the bell shrine and the village pieces are 3D models the Agent makes with Tripo through BenchClub's generation tools, within a 600-credit budget. Run beside Titan walk, it shows what generated models add; run across models, it shows who uses the tool best.

Inputs
Text
Materials

BRIEF.md: the full brief. three.js r170 comes from npm (three@0.170.0), as BRIEF.md says. The models are made with BenchClub's generation tools (list_generation_models, generate, generation_status) on the BenchClub MCP.

Deliverable

dist/index.html, dist/three.module.js (three.js r170, unchanged), the GLTFLoader and BufferGeometryUtils addons in dist/addons/ and the Tripo models in dist/assets/: the world on a canvas filling the window, working offline from these files. dist/review.md: the self-review rounds and every generation; dist/shots/: the last round's screenshots.

Files

  • BRIEF.md

    Titan walk with Tripo

    Build a small explorable world that runs in the browser: a ruined hilltop village that turns out to be on the back of a colossal titan, walking slowly through a misty shallow sea at dawn. I walk to the edge, see how far down the sea is, climb the titan's spine to its head, and glide off it down to the sea.

    Make it breathtaking: the feeling of standing on something alive and enormous, like a frame from a premium adventure game or a Studio Ghibli film. Design your own titan and village within the art direction below.

    PRIORITIES

    1. Art direction and scale. It has to look beautiful in a still screenshot and in motion, and the titan must feel enormous. A plain, default-looking or small-feeling result fails however well it plays.
    2. The journey is complete, and everything under FOR CHECKING works exactly as written.
    3. A steady frame rate on a laptop.

    SETUP

    • Use three.js r170. Get it from npm (npm install three@0.170.0 in a scratch folder). Copy node_modules/three/build/three.module.js unchanged to dist/three.module.js, and three.js r170's own examples/jsm/loaders/GLTFLoader.js and examples/jsm/utils/BufferGeometryUtils.js unchanged to dist/addons/loaders/GLTFLoader.js and dist/addons/utils/BufferGeometryUtils.js (examples/jsm/utils/SkeletonUtils.js too, the same way, if you clone a rigged model).
    • Write everything into one file, dist/index.html, with an import map that maps three to ./three.module.js and three/addons/ to ./addons/. Import the loader with import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'.
    • The models you make with Tripo (see ASSETS) go in dist/assets/ as .glb files, loaded with GLTFLoader from there.
    • No other libraries and no other three.js addons: write any post-processing yourself, with render targets and full-screen shaders. No downloaded models, textures, fonts or audio besides the Tripo models you make here. The page asks for nothing beyond its own files.
    • Every piece of text the work shows (titles, labels, hints, buttons) is in English.
    • The page will be opened in desktop Chrome from a local web server (http://localhost:8000/index.html) in a 1920x1080 window, and also shown small, in a 960x540 frame next to other versions. It must read well at both sizes and hold a steady frame rate on a laptop.

    ASSETS (made with Tripo) You have BenchClub's generation tools on the BenchClub MCP: list_generation_models, generate and generation_status. Use them, with the Tripo models they list, to make these, and use them in the work:

    • the traveller I play: a small cloaked figure, rigged and with a walk (and if you can, a run) animation from Tripo's rig and animation models;
    • the glider: a kite-like wing of canvas and wooden spars that the traveller hangs under;
    • the bell shrine on the titan's head;
    • 3 to 5 pieces of the village on its back: say a ruined stone gate, a small tiled house, a stone lantern, a weathered statue, a broken watchtower.

    The titan itself, the sea, sky, mist, clouds, plants, particles and the HUD are still made in code, so the titan can walk.

    • Ask for shapes that already fit the art direction: weathered, hand-made, softly stylised. A picture first (an image model) and then a model from that picture usually gives a cleaner shape than text alone.
    • Tripo's own textures won't match the palette: recolour or replace the materials in code with the art direction's colours and materials. Keep the shapes.
    • At most 30,000 triangles per model and 15 MB for all of dist/assets/ together. If one comes back heavier, ask again for a simpler one.
    • You may spend up to 600 credits on generations in this run without asking first; list_generation_models gives each price. Download each file you keep as soon as it is ready (its link lasts two hours): the work loads only files in dist/assets/, never a link.
    • In dist/review.md, list every generation: what you asked for, its id and price, and whether you used it; end with the total credits spent.
    • If generating fails, say so in dist/review.md and make that thing in code instead: the work is always complete.

    ART DIRECTION

    • Palette, by role: sky top #7FA3C8, horizon #F6D9B8, sun #FFE2B0, low mist #E9D6C4, high haze #B9C7D6, sea deep #2E5F73, sea shallow #6FA8A8, foam #F4F1EA, titan hide #6E6A5E to #4B4A44, lichen #8FA36A, moss #5E7D45, horn and bone #D8CCB4, village stone #CFC3AE, roof tiles #B5563B, banners #D9A441 and #7C3B5A, my cloak #C9472E, glider canvas #F1E6D0 with spars #6B4A32, petals #F4B6C2, lantern glow #FFC46B. Nothing outside it.
    • Light: a low dawn sun #FFD9A8, 8 to 15° above the horizon, off to one side of the titan's path, so the titan throws a shadow hundreds of metres long across the sea and the mist; soft shadows (a 2048 shadow map, soft filtering, fitted to the area around me) on the village and on me; a hemisphere fill, sky #A9C2DE and ground #5B6B5A.
    • Atmosphere: height fog written in a shader, thick and warm low over the sea and thinning with height, so the titan's legs fade into it; distance haze to #B9C7D6; light shafts from the sun through the mist and between the titan's legs (written by hand, screen-space or with geometry). Slow clouds both above and below the head.
    • Scale: the titan is about 300 m from its feet to the top of its back and at least 600 m long, walking on four or six legs through water a few metres deep. I am 1.8 m tall. Two or three other titans walk far off on the horizon, half lost in the mist. Seabirds circle below the head.
    • Materials: the titan's hide a shader with plates, folds, cracks and colour variation, lichen and moss on its upper surfaces and long hanging roots or weed under its belly; the sea an animated shader with waves, sun glitter and rings of foam where each foot meets it; village stone with noise and wear; plants and grass on the back instanced, swaying in the wind.
    • Camera: walking, a third-person camera with a 55 to 60° field of view, about 4 m behind and 1.6 m above me, that never goes inside a wall, the hide or the ground; mouse drag looks around, the wheel zooms between about 2.5 m and 9 m. Gliding, the camera follows behind and a little above the glider, and the field of view widens to about 70° with speed.
    • Post, written by hand: a bloom on the sun, the sea glitter and the lanterns; light shafts; a gentle depth-of-field or haze that makes the far titans and the sea below feel far away; a warm grade; a vignette of about 0.2.
    • Sound, synthesised with Web Audio, no files: wind that rises with height and speed, a deep slow boom and rumble at each footfall, distant birds, creaking ropes and a bell; it starts after my first click and M mutes it.

    MUST NOT LOOK LIKE

    • default grey materials: MeshStandardMaterial left at its defaults, MeshNormalMaterial, unlit flat colours;
    • flat ambient-only light, with no key light, shadows or contrast;
    • a black or empty void, or a sky with no horizon;
    • primitives (boxes, spheres, cylinders) sitting on a plane;
    • debug helpers: axes, grids, light or camera helpers, stats panels, GUI sliders;
    • a titan that is a box or a capsule on cylinders, or that slides along without its legs stepping;
    • a titan that feels small: from the edge, the sea must look far below;
    • the back as a flat plane: it is a curved, ridged body with the village built into it;
    • a flat blue plane for the sea, or a glide that is a camera animation instead of flight.

    THE TITAN

    • It walks one stride every 6 to 8 seconds along a long gentle curve through the shallow sea, its legs lifting, swinging and planting in turn. Each footfall is an event: the back pitches and rolls by 1 to 3°, dust and petals shake loose from the roofs, the lanterns swing, the boom sounds, and far below a ring of foam spreads where the foot came down.
    • Its back is a walkable landscape about 150 m long: the ruined village with a gate, houses, lanterns, banners, grass, small trees and a spring, along a ridge of spine plates that climbs to the shoulders and the head, where the bell shrine stands. Ledges along the sides look straight down to the sea.
    • I live in the titan's own frame: I stand, walk and jump on its back as it moves and never slide off, while the world I see turns past. I cannot walk off the back by accident: low walls, roots or a soft invisible stop at every drop, except the launch ledge at the head.

    THE JOURNEY

    • Start: I wake in the village, which looks like an ordinary hilltop in the mist. A short line at the bottom of the screen gives the first goal: "Find the edge." Each goal after that appears the same way, one line at a time, and nothing else crowds the screen.
    • The edge: walking to any side ledge triggers the reveal. The camera eases out past me, the mist parts, and I see the drop, the legs, the sea and the other titans. The goal becomes "Climb to the head."
    • The climb: a path up the spine plates to the shoulders and the head, with a few short jumps. At the head, ringing the bell (E) makes the titan raise its head and bellow, and a far titan answers. The goal becomes "Take the glider and jump."
    • The glide: at the launch ledge, F takes the glider and I step off. Gliding: W and S pitch, A and D bank, Space flares to slow down. The glider sinks slowly, gains speed when pitched down, and lift and drag come from its speed and angle. I can fly between the titan's legs. A sand bar with a small lit beacon lies out in the sea ahead; landing on sand or in the shallows ends the flight (water is a soft landing with a splash; hitting the titan sends me back to the head).
    • The end: a calm closing screen over the scene shows the height I jumped from, the flight time and the distance flown, and offers to climb again (R, Enter or a click), back in the village with the goals reset.
    • When the page opens, a demo journey plays by itself: the same traveller and the same controls, driven by the computer through the whole route (village, edge, climb, bell, jump, glide, landing), then it starts again. Pressing any movement key puts me in control at the start of the village.

    FOR CHECKING Expose these on window. Positions are in metres, y up, in the world frame unless named local; angles in radians.

    • getState() returns {time, mode, x, y, z, heading, speed, local, onTitan, goal, revealed, rang, gliding, landed, finished, demo, titan}: mode one of "walk", "glide" or "end"; local {x, y, z} my position in the titan's own frame (null when off it); onTitan true while I stand on its back; goal the goal line shown now; revealed, rang, gliding, landed and finished true once each has happened; demo true while the demo plays; titan {x, z, heading, height, length, step, footfalls} where step is 0 to 1 through the current stride and footfalls counts strides since the start.
    • getWorld() returns {height, length, head: {x, y, z}, ledge: {x, y, z}, edges: [{x, y, z}, ...], beacon: {x, z}, seaLevel}: head, ledge and edges (at least four points where the reveal triggers) in the titan's local frame, beacon and seaLevel in the world.
    • Everything runs on a fixed 60 Hz tick, independent of the display rate. Anything random is seeded.
    • seek(t): start the demo journey again from the beginning and run it to t seconds, as fast as it can; the page carries on live from there. The same t always gives the same state. Opening index.html#t=60 does seek(60) on load.
    • restart(): put me, not the demo, at the start of the village: everything back to the start, no keys held.
    • advance(dt): run forward dt seconds now (round(dt × 60) ticks) with the keys as they are held, then carry on live.
    • Keys are read from keydown and keyup events on window, by event.key.

    SELF-REVIEW LOOP (mandatory)

    1. Screenshot the page at 1920x1080 through the demo journey: in the village at the start, the reveal at the edge, on the spine during a footfall, at the bell, the moment of the jump, gliding between the legs, the landing and the closing screen; and once at 960x540. Use your preview tool or a headless browser; the #t= hash makes set moments easy to capture.
    2. Look at the screenshots as a harsh art director and a harsh player would: list what reads as cheap, default, small, unfinished, off-palette or confusing to play, worst first.
    3. Fix the top 5.
    4. Repeat. Do at least 3 rounds; stop only when the worst problem left is minor.
    5. Write dist/review.md in English: for each round, the moments you shot, the critique and the five fixes. Keep the last round's screenshots in dist/shots/ as JPEGs.

    BUDGET About 90 to 110 minutes of work. Get the titan walking and the journey playable early, then spend most of the time on the look, the scale, the feel and the review rounds.

    DELIVER dist/index.html, dist/three.module.js, the addons in dist/addons/, the models in dist/assets/, dist/review.md and dist/shots/.

    DONE WHEN The page opens with no console errors, the demo journey plays by itself, I can walk the village while the titan walks, reach the edge and see the drop, climb to the head, ring the bell, glide down and land, see the closing screen and climb again, and dist/review.md records at least three review rounds.

How it’s checked

  • The final screenshots look like a misty dawn sea with a colossal titan carrying a ruined village, in the brief's palette: warm low sun, height fog, a textured hide; not default grey materials, an empty void or debug helpers.Judge model
  • The titan feels enormous: from the edge the sea is far below, its legs fade into the mist, other titans walk on the horizon, and the traveller is tiny beside the spine; the reveal at the edge shows it.Judge model
  • A low dawn sun with long shadows (the titan's across the sea), height fog thinning with height, light shafts through the mist, and glitter on the sea.Judge model
  • The titan walks with stepping legs, and each footfall is felt on its back: the back pitches and rolls, things shake loose, foam rings spread on the sea below; not a body sliding along.Judge model
  • The journey is complete: goals one line at a time, the reveal at the edge, a climb up the spine to the head, the bell, a glide with real flight controls between the legs, a landing at the beacon and a closing screen with a way to climb again.Judge model
  • The code has hand-written post-processing and atmosphere as the brief asks (bloom, light shafts, depth or haze, a warm grade, a vignette), and it shows in the screenshots.Judge model
  • dist/review.md records at least three rounds of screenshots, a harsh critique and five fixes each, and the final page shows those fixes.Judge model
  • Walking on the titan is resolved in its own moving frame against its geometry, the glide comes from lift, drag and gravity on a fixed tick, and the demo journey drives the same traveller through the same controls; nothing is scripted or faked for the checks.Red lineJudge model
  • The traveller (rigged and animated), the glider, the bell shrine and 3 to 5 village pieces are Tripo models loaded from dist/assets/, recoloured to the palette and scaled to the world.Judge model
  • The page loads nothing from the network: every model is a .glb in dist/assets/ (no Tripo or other links at runtime), each under 30,000 triangles and 15 MB together, and no libraries or addons beyond those the brief allows.Red lineJudge model
  • dist/review.md lists every generation with its id and price, and they add up to no more than 600 credits.Red lineJudge model

Projects using it1