orangeadam3 / terra121

A Minecraft Terrain Generating Mod for Cubic Chunks 1.12.2. attempting to generate real terrain, biomes, and features on a 1:1 scale
MIT License
282 stars 40 forks source link

[Question] [Suggestion] Adding Projections #93

Open mreel opened 4 years ago

mreel commented 4 years ago

Hey, first of all, not sure if this is the right place to post this. If not, I'm sorry, where would be a better place?

I was thinking about making an extra projection (Robinson) and I was looking at the code. It doesn't look difficult at all, so I'll probably do it, maybe even other projections too, but I can't figure out what the metersPerUnit method does, and so, have no idea how to write it, further clarification would be greatly appreciated.

Additionally, as I said, adding the projection seems very easy, easy enough for modpack makers/ advanced users to add them. Might it be an idea to allow for custom projections through something like JSON?

orangeadam3 commented 4 years ago

So... there is already Equal Earth which is very similar to robinson with the additional benifit of having no area distortion. https://matzav.com/wp-content/uploads/2018/09/eerob2.jpeg

mreel commented 4 years ago

I know, the reason I was thinking about adding Robinson is for possible better performance.

What do you think about user added projections? Meaning local among other benefits.

orangeadam3 commented 4 years ago

I guess... I probably don't have time to do it myself but someone could pull request it. What do you mean user added? We already had a github user contribute the transverse mercator.

mreel commented 4 years ago

I meant by modpack makers for example, more specifically I was thinking in the config folder, probably with JSON since the only thing really needed is coordinate conversion and whatever the metersPerUnit is (Still wondering).

I apparently didn't really say it in my original post, but I was also thinking about adding the gall stereographic projection. I don't believe there is a similar one implemented yet.