Zylann / godot_voxel

Voxel module for Godot Engine
MIT License
2.67k stars 250 forks source link

A thought on generating structures. #472

Open probedrone opened 1 year ago

probedrone commented 1 year ago

Would it be possible to have structures be saved to something like .json files then pulled for when needed for generation?

Zylann commented 1 year ago

That's up to you. You can do that stuff yourself with a script. This module doesn't do this out of the box.

probedrone commented 1 year ago

Does the module even allow structure to be saved in a .json via scripts?

Zireael07 commented 1 year ago

This module only deals with visuals. You'd have to code the save/load yourself (which is possible, I am using JSON in Godot myself)

Zylann commented 1 year ago

This module doesn't know what a "structure" is. It only deals with voxel chunks. It's something specific to your game, which you have to do yourself, with functions of the engine in the JSON class. It's not the job of the module to do this.

Aghostcat commented 2 months ago

Sorry for the necro-posting, I was just curious if there is a better way to handle voxel based structure generation than how it is done in the multipass and blocky_game examples and would allow for more customizability. If there is a different way to generate structure such as buildings, ruins, or such using voxels I'd be all ears.