Moutains Patch

Champi

New Member
Hi,

I have just downloaded the Terasology source code, and I played around with it a little bit today.

First of all, I want to say nice job on the thing!

Secondly I want to make a suggestion. I noticed that the moutains are usually very high and sharp, and that there is a lot of them, and not easy to climb up. So I digged a little bit in the code and found this in the PerlinTerrainGenerator line 231:
Code:
int plateauArea = Chunk.SIZE_Y*0.10;
double flatten = TeraMath.clam(((Chunk.SIZE_Y - 16) - y) / plateauArea);
So I'm wondering, why don't you do an interpolation right there, like
Code:
int plateauArea = Chunk.SIZE_Y - Chunk.SIZE_Y /10;
double flatten = (1.0/(plateauArea*plateauArea))*(y-plateauArea)*(y-plateauArea);
I tested this code with the map seed 1, and it gave nice results


Also, I couldn't find out how to do any crafting, is it at all implemented or is it just me?
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Whoosh! Thread is now in the Dev Portal :D

Thanks for the patch - going to have to check that out when I get a chance. I do agree that the mountains can be a bit pointy, and I'd like to see alternatives. Maybe differently flavored mountain biomes? "Mesa" would be a nifty biome too

Crafting is indeed not implemented yet - there are a few concepts & designs floating around like this one and this other one

You can get all the blocks / items via console commands at the moment. And welcome :)
 
Top