I’m creating a 513×513 plane and using a height map to represent terrain. To add some variety to the terrain there are several 256×256px texture files. Here’s a basic example of what I’d like to achieve:
In the example, each square of the 2×2 plane are a different texture (texture_1.png, texture_2.png, etc).
I’m trying to recreate levels from a video game called Incoming. Here’s a screenshot from one of the Arctic missions:
As you can see, the terrain is a simple height map which uses various snowy textures; some examples:
I’m able to read the height map data from the game files and produce an accurate plane:
I’ve tried searching for similar topics and found one which mentioned using the
addGroup method, however I was unable to get this to work without terrible performance.
This seems like it should be a relatively straightforward operation - am I missing something?