Ahillman2000 / AT-Open-World-Game

An open world streaming system created in Unity, utilising heightmap data and a chunk-based world system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AT-Open-World-Game

image

Project Description

A system to stream an open world game level. The system is able to generate terrain from a given 2d heightmap texture and then splits it into world chunks. By calculating the players distance from these chunks, the system loads and unloads sections of the world, scene objects and non-playable characters around the player to give the illusion of a living world.

Installing / Using the Project

The project is built in Unity 2021.1.21.

This solution can be run in multiple ways, the first method is to generate the map and update the world's objects from within the scene view hierarchy. Both of these tasks can be carried out by clicking on the MeshGenerator object, accessing the mesh generator script and running the two functions within the component menu (you may need to run these functions twice for the system to work).

image

The second method is to run the game with the map being generated at runtime, ready to go.

Documentation

Open_World_Game.pdf

References

About

An open world streaming system created in Unity, utilising heightmap data and a chunk-based world system.


Languages

Language:ShaderLab 62.2%Language:C# 30.5%Language:HLSL 7.4%