otto-link / Hesiod

A desktop application for node-based procedural terrain generation.
https://hesioddoc.readthedocs.io/
GNU General Public License v3.0
111 stars 5 forks source link

Issue 121: Add brush node serialization #122

Closed PatchByte closed 7 months ago

otto-link commented 7 months ago

Thanks!

I moved the serialization from the ViewNode to the ControlNode to keep a unified structure. This will also be useful for the batch mode (which cannot use the View nodes).

For the data storage, since you used the base underlying Array object it is much easier to serialize/deserialize the data (and not the HeightMap, which is tiled to allow parallel processing). And this is robust to resolution change: you can load a brush map made with one resolution on another resolution (again very useful for batch mode).

PatchByte commented 7 months ago

oh wow good to know!