Recreating the Rainbow Bridge tour with Three.js

Run Rising1234Sun's Beside the Bian River from source, orbit Rainbow Bridge and use the creator's records to explore models, cameras and interactions.

Original creator Rising1234SunGPT-6 Astra

Run Bianjing in your browser

Prepare Git, Node.js 24.x and a WebGL 2 browser. The repository includes the web models and textures. You do not need Blender or a model API key just to play or modify the website.

git clone https://github.com/Rising1234Sun/qingmingshanghetu.git
cd qingmingshanghetu
npm ci
npm run dev

Try it yourself Open the local URL printed by the terminal, normally http://127.0.0.1:5187/. After loading, drag with the left mouse button to orbit the bridge, scroll to zoom and click the bridge label.

Explore the bridge, camera and interactions

You can view the bridge from behind. Blender scripts build the bridge and market, then an exporter combines static objects and compresses the GLB. Three.js handles the camera, water and boat animation in the browser.

To change a tour viewpoint, read src/tour.js and find the interaction in src/main.js. To change the bridge itself, read scripts/build_web_scene.py and the creator's reconstruction notes. Re-export after changing a modeling script.

Try it yourself Move a landmark's camera a little farther back. Select another landmark and return to confirm the new position, then check that dragging still gives you a free view.

Practice staged prompts with one bridge

The creator published several rounds of iteration notes. For practice, start with one bridge, two riverbanks and one boat. Confirm the viewing route before adding detail. Metasup wrote the following practice prompt.

Create a wooden bridge that can be viewed from both banks, in a draggable Three.js scene. First show one view from the deck and one from below. After I confirm the proportions, add a boat passing through the opening, with a clickable description.

Try it yourself Orbit from upstream to downstream, then move close to the water. Check that the underside is visible, the boat does not intersect the bridge and its label follows it as the camera moves.