improve guess for building height, now skylines look better

This commit is contained in:
Hannes Janetzek 2013-01-07 22:30:13 +01:00
parent a03f81d306
commit 9e84a42177

View File

@ -78,11 +78,10 @@ public class ExtrusionLayer extends Layer {
boolean simple = true; boolean simple = true;
int startVertex = mNumVertices; int startVertex = mNumVertices;
// just a guess to make it look ok // just a guessing to make it look ok
if (height == 0) if (height == 0)
height = 320; height = 10;
else height = (int) (height * -Math.log(height / 100000f)) * 4;
height *= 30;
int length = 0; int length = 0;
for (int ipos = 0, ppos = 0, n = index.length; ipos < n; ipos++, ppos += length) { for (int ipos = 0, ppos = 0, n = index.length; ipos < n; ipos++, ppos += length) {