Generates terrain files