Novacain wrote:I was just kinda thinking about the current mapgen, and the issues associated with the current default mapgen, and just kinda wondered if we could have the mapgen based off real locations. My thoughts are these: topographical maps exist with the hights already in them. Would it be too hard to have some code to turn that map into real terrain? it could have a co-ordinate set point with longitudes and latitudes. example: 38.9536 and 120.0939 with an altitude correction of 1,890 meters to generate 0,0,0. just throwing this idea out there, hoping to inspire someone who works on mapgen.
prestidigitator wrote:Not difficult at all. However, it might be worth considering scale. Minetest's coordinates span from like -32k to +32k in each dimension I believe, which if you consider a scale of 1m per node would only give you a 64km square area to play with. Unless you don't use a 1:1 scale, of course.
It would be interesting to also use real geological data if it could be found to create the underground strata and ore deposits (probably with a decent amount of fudging).
twoelk wrote:as has been done for mc
here using OrdnanceSurvey OpenData?
Check this developing bitmap mapgen mod that might use hightmaps
and the older Image Loader by Kaeza that Mauvebic has used to import map outlines.
rubenwardy wrote:I started writing a map generator like this for Minetest about a month ago, but the api does not support the connecting to the internet.
It used data from maps.google.com - they have a nice API.
Novacain wrote:Just throwing this idea out there, hoping to inspire someone who works on mapgen.
philipbenr wrote:Novacain wrote:Just throwing this idea out there, hoping to inspire someone who works on mapgen.
Talk to paramat, the magpen king. ;) After you figure out exactly what you have in mind, tell him, and if he likes it, he probably could whip out something awesome.
bobbomb wrote:As for underground strata, there are datasets for this too, but probably is overkill for a fun game. However, there aren't (m)any mapgens with "strata" in minetest, the focus seems to be more about caves, etc. exposed rock faces with strata visible would be cool.
bobbomb wrote:anyway, I would be willing to help with any project along these lines, though my lua and minetest modding is only in its infancy at this point.
Such places could be produced deliberately and show diffrent colored rocks.
However, the needs of terrain for gameplay may differ considerably from RL terrain. Maybe the easiest way would be to take a flat mapgen, add the occasional river and proclaim that it's terrain from a flat region.
Larger geological structures like mountains or mountain ranges are invisible due to not enough land beeing loaded in the client.
bobomb wrote:What is really needed next is a way to read large files into the mapgen, without loading the entire file, in order to set the surface height. This lua function might help: http://www.gamedev.net/topic/572784-lua ... try4662735
bobomb wrote:Then I have no idea where the mapgen sets the final surface height. Is it something that is set first then filled below, or is it set as the result of some other algorithm? I might use the novagen mod as a basis for this project: https://github.com/Novatux/mg/



twoelk wrote:so what part of the real world are we seeing or are these simple fictional hightmaps?
will you offer maps like these? TopoMC: Minecraft Worlds From Real Data
or something combined with OSM data? Minecrafting with OS OpenData You could use the OSM data to simply drop roads onto the otherwise generated terrain.
Anyways a simple way to import pixelmap hightmaps, ficional or not, would really be nice

bobomb wrote:As for importing data from an online service, I think the hurdle there is the ability to access the internet through the Lua scripting API. Not sure that is possible, at least not in a cross-platform way. It's just what I've heard (top of this thread?).


rubenwardy wrote:You can make http requests like this: https://github.com/rubenwardy/minetest_ ... ua#L18-L47
Although I'm not sure if that includes downloading files, I imagine it does.
Note the insecure environment bit at the top, whether you use cURL or my method, you'll need that.
Users browsing this forum: No registered users and 10 guests