Realtime terraforming

Is it possible to dynamically update the heightmap for the Texture module in version 2.0?

I notice there is a setHeight method - but is it meant for realtime updates or just during level setup (for procedural heightmaps).

Also, is it possible to update the splatmaps, normal maps and base terrain texture?

Can there be more than one Terrain object? Like if you have a series of Islands spread over a large area. I notice there is a static member called mainTerrain (or something similar).

I appreciate your reply :slight_smile:

The SetHeight is reasonably fast, so you should be able to call it no prob. Just don’t make 1000 calls with a single pixel. Grab an area (with GetHeights), modify the values, then set the entire area with SetHeights.

You can have multiple terrains, but they can’t be moved. So for a series of islands, there’s no benefit.

I wouldn’t say NO benefit. I bet with some clever coding you could deactivate one as you drift far from the island replacing it with a billboard (and transporting the boat or whatever to the other side) and as you drift towards another, activate that one. Sort of like Wind Waker where there is a VERY large distance between the islands.

Is that the idea?

A dynamically loading system of some kind could be even nicer…