Sacred Monkey Forest
A walkable 3D recreation of the Sacred Monkey Forest in Ubud, Bali, running in the browser. The temples, the holy spring, the Dragon Bridge over the ravine and 120 long-tailed macaques walking the paths.
Walk it live · best on a laptop or desktop, sound on

What you can do
- Scroll to walk the path through all eight areas of the real visitor map, or drag to look around
- Walk freely with W and S, turn with A and D, Space plays or pauses the guided walk
- Change the light: golden hour, morning, noon, then night with the temple lanterns lit
- Turn the sound on: wind, the river, birds, insects, your footsteps, and monkey calls that come from where each monkey is
- Follow your position on the minimap


How it was built
One scene in plain JavaScript. Three.js r186 with ES modules and an import map. No build step, no framework. About 50 custom shaders handle the water, the sky, the wind in the leaves, wet stone and moss.
Blender, driven by scripts. Nothing was modelled by hand. Python scripts run Blender in the background and build the six macaques (body, fur, skeleton, walk, sit, stand and idle), the temples and gate (a scripted kit for carved stone, thatch and clay tile roofs), the banyans, the background forest and the rocks.
Carvings from photos. The carved faces and statues each started from one photo. Hunyuan3D 2.0, running locally, turned the photo into a 3D shape, which was then cleaned and mounted on the buildings in Blender. Every source photo is listed in CREDITS.md.
Sound made in code. Web Audio only, no audio files. The monkey calls are placed where each monkey is, so they get louder as you walk past.
Made to run in a browser. Trees switch detail with distance (real leaves up close, leaf cards in the middle, pictures far away). One model is drawn many times wherever it repeats. Textures are KTX2 and models are meshopt compressed. The sun’s shadows are worked out once when the page loads, and only the monkeys in view are drawn. The whole walk loads about 250 MB.
Directed by a person, built with AI agents. Samnang Aing directed the build over 18 days and 19 versions: most of it with Claude Code (Opus 5.5), one polish round in OpenAI Codex, and the final round (the monkeys walking, the times of day, the sound and the interface) with Gemini 4 Argon in Antigravity.

Run it locally
The page uses ES modules, so it has to be served, not opened as a file. Nothing to install apart from Python 3.
git clone https://github.com/Sam1983Aing/sacred-monkey-forest.git
cd sacred-monkey-forest
python3 -m http.server 8080
Then open http://localhost:8080/.
Project structure
index.html the page and its import map
style.css
src/ the scene, one module per part of the forest
assets/ models, textures, skies and the macaques (assets/v17 holds the compressed copies the page loads)
vendor/ three.js, the texture and model decoders, fonts
preview/ the pictures in this README
CREDITS.md sources and licences for photos, textures, fonts and libraries
Licence and credits
The code is MIT (LICENSE). The carvings made from photos keep their CC BY terms, the giant and the two Pura Beji guardians are CC BY-SA 3.0, and the textures and skies are CC0 from Poly Haven. The full list is in CREDITS.md.
This is a fan recreation. It is not affiliated with or endorsed by the Sacred Monkey Forest Sanctuary in Ubud.
评论