Game
Vitality
6 years ago

Random Structure Generation


Hello!
Here with another technical devlog post today! I wanted to have a short talk about the structure system in Vitality!

5d09cdc6b60f8.png

The system basically enables dynamic structures to be generated, based on a series of constraints. Some features in Vitality (such as trees) are generated using static models. These are fine for small creations, however for larger structures, we utilise code to generate models and them place them on the world.

5d09cdc7a0a9d.png

There are a number of key benefits of structures:

  • Can be dynamically sized, thus shape can change programatically, rather than needing to be manually updated

  • structures can dynamically scan and adapt to the terrain. This is particularly useful for structures which generate on difficult terrain.

  • Structures can easily have different skins/styles applied to them, which is useful for re-using the same generation scheme for different types of buildings in different areas of the world.

  • Structures can still be pre-generated and spawned in upon request

  • Structures can dynamically alter the positioning of content inside them

  • Structures generate a map of data, allowing us to reference points of interest, or components within a structure that can be utilised by quests.

5d09cdc888662.png


6 comments

Loading...

Next up

Improved lightning and thunderstorms! Longer video (with sound) here: https://www.youtube.com/watch?v=DHSL9U4Jy-E

Medieval Town - Generation progress

Into the Mines! - Medieval Mineshaft Generation

The Ol' Tavern - Medieval Age Town gen

Windmills!

The end of an era... 🦖☄️💥🔥

Really happy with the results of new lighting system! :D

World Map

NPC Shops

Who brought the marshmallows? 🔥🔥🔥