Mindwerks / worldengine

World generator using simulation of plates, rain shadow, erosion, etc.
MIT License
992 stars 127 forks source link

Export to .ter (Terragen) format #32

Closed ftomassetti closed 9 years ago

psi29a commented 9 years ago

http://www.planetside.co.uk/terragen/dev/tgterrain.html <-- file format params

We should allow for import and export.

psi29a commented 9 years ago

http://planetside.co.uk/wiki/index.php?title=Terragen_Import-Export_Reference http://planetside.co.uk/wiki/index.php?title=Terragen_Resource_List http://sourceforge.net/p/planetgenesis/bugs/12/ http://fileinfo.com/extension/ter

psi29a commented 9 years ago

Mine... i like file formats. (Like with my WildMIDI project)

ftomassetti commented 9 years ago

Good :D

psi29a commented 9 years ago

Ohhhhhh... http://www.gdal.org/formats_list.html via https://pypi.python.org/pypi/GDAL/ supports more file formats than you can shake a stick at.

ftomassetti commented 9 years ago

ball - match - game - victory!

psi29a commented 9 years ago

How do we want to go about this?

I'm thinking that want want to take what is in the *.world file and export the data in there to gdal (for TER).

This means that you would first generate your world, then run: worldgen --export ter your.world and the default behaviour would to just take the heightmap and convert it your.ter

We can also provide a mechnism to specify which dataset in *.world, so not just the heightmap.

What do you think?

ftomassetti commented 9 years ago

yes, it works for me. By default we should keep using our format and export to other as a separate action

psi29a commented 9 years ago

Agreed! :)

psi29a commented 9 years ago

Virtualenv and setuptools friendly version of standard GDAL python bindings https://pypi.python.org/pypi/pygdal

http://www.planetside.co.uk/forums/index.php?topic=7223.30

ftomassetti commented 9 years ago

I think this one is done right @psi29a ?

psi29a commented 9 years ago

yes and no, the ter support in gdal is currently broken. however, in Terragen you can import heightmap from any number of formats already supported by gdal. How do you feel about closing this?

ftomassetti commented 9 years ago

Let's close it: we already support a lot of stuff :)