Using pre-trained terrains
Feeling like using some already built terrains? They can be loaded like presets.
Last modified 2025-08-18
Jasper Shuoyang Zheng
This video introduces loading a terrain with 2 continuous control channels, navigating an autoencoder with 4 latent dimensions.
What we need
- Make sure to have
nn.terrain
package andnn~
installed correctly, see Download and Installation for this. - Make sure to grab an autoencoder (a
.ts
file) and a terrain model (a.pt
file) from Pre-Trained Terrains (Presets).
Synopsis

This tutorial guides you through:
- A brief introduction of an autoencoder and latent terrain,
- Loading a pre-trained terrain in MaxMSP,
- Adding an XY pad to control the navigation in the terrain,
- Visualising latent vectors (via multisliders),
- Visualising the terrain (rendering a surface map).
Video: