Author Topic: Tiled heightmaps  (Read 414 times)

zarkrat

  • Newbie
  • *
  • Posts: 6
    • View Profile
Tiled heightmaps
« on: April 05, 2019, 10:35:09 PM »
I have a big continent composed of many heightmaps. Is it possible to make VoxelPlay read them in a tiled system seamlessly (instead of combining them into a single file)?

Thanks.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 4887
    • View Profile
Re: Tiled heightmaps
« Reply #1 on: April 06, 2019, 01:00:43 AM »
Hi!
Yes, definitely but it requires a bit coding.
You need to create or modify the terrain generatorís GetHeightAndMoisture so it reads the height from the correct tile based on the given world position (that method receives a position and you must return a height and optionally the moisture).
https://kronnect.freshdesk.com/support/solutions/articles/42000001950-coding-your-own-terrain-generator
Or instead of creating a new file from scratch you can duplicate the existing default multi-step terrain generator class file in the ScriptableObjects folder and replace that function by your own.
Regards