Zotbox – Terrain Generation and LODs

So I don’t really know where to begin on showing all the improvements I have made so I thought I would show a little of the terrain generation and LOD system I am working on.

One of the problematic aspects of the current Zotbox terrain is that on mobile VR it is impossible to generate enough chunks to have a reasonable view to the horizon. This is especially true of Quest 2 which is my minimum bar and has a pretty short view distance. I have always used fog to hide the edge and with the short view distance this ended up with everything feeling very foggy all the time.

With the new LOD system two rings of block LODs are generated with the inner one more detailed than the outer one. Additionally LODs of trees and structures are generated. These are all simplified shaded solid color blocks representing the actual half meter blocks everything is made of.

Looking at this zoom in of the full area shows the actual half meter blocks are visible on the left and then going to the right the LODs are visible at two different sizes.

The chunks are all generated from the deterministic region generation so there is no data stored anywhere unless a chunk is edited by the player. This allows the LOD system to inexpensively read what is there through the region generation system without the actual detailed chunks being generated or stored anywhere.

One shortfall that I still need to work on is having that layered with reading from actual chunk data or generating and storing LODs for chunks that have been edited. Currently if something has been modified and the player moves away then it shows the original source from the region generation system.

Another aspect of the region generation system is that it can include authored layers. This means that it is possible to have hand drawn height and biome images or generate them from other terrain generation tools. The original test map with the height and colors mappings to biomes feeds into the region generation system which places everything else on it.

In addition to the natural elements all the structures and landmarks are also generated through that so every game can be unique and for Lost Loot that means all the hidden treasure, wrecks, ruins and so on are unique based on the seed supplied when making a new game.

These authored layers can also be matched with specified structures so a particular structure can be placed in the same spot each time. And the structures themselves can have specified parts and random parts. All of this is to support story and gameplay that needs particular sets in specific places in the authored regions that are otherwise randomly generated.

Share This:

About Michael Schenck

XR Developer | Unity and C# | Meta Quest • Making Zotbox a VR sandbox inspired by all the blocky games out there • https://pixelatedramblings.com
Bookmark the permalink.

Share Your Thoughts