Commit Graph
36 Commits
Author SHA1 Message Date
Hannes Janetzek e1fb97ae30 draw text textures only once per string
- unify duplicate strings from different tiles (as side-effect save some bytes)
- fix 'advance by width' in texture drawing
2013-10-09 01:55:49 +02:00
Hannes Janetzek 928c7e7328 comment 2013-10-09 01:55:49 +02:00
Hannes Janetzek 3c990b3289 add more labels as they fit at current scale 2013-10-09 01:55:48 +02:00
Hannes Janetzek bdbe0c1527 handle explicitly closed polygons and those with touching inner/outer rings in one point. Bologna is a heavy case.. 2013-10-09 01:55:48 +02:00
Hannes Janetzek da64700613 decrease building height 2013-10-09 01:55:48 +02:00
Hannes Janetzek 9a86b6b134 add helper 2013-10-09 01:55:48 +02:00
Hannes Janetzek 5b3b299217 cleanup extrusion layer when it was not compiled 2013-10-09 01:55:48 +02:00
Hannes Janetzek 9e84a42177 improve guess for building height, now skylines look better 2013-10-09 01:55:47 +02:00
Hannes Janetzek ec647fc4f5 cleanups 2013-10-09 01:55:47 +02:00
Hannes Janetzek d0ad2f3bd4 - LineClipper added start(x0,y0), clipNext(x1,y1) 'state' clipping mode
- use vec4 array for extrusion colors -> set color only once for all tiles
- use full range for direction vector in extrusion vertex
2013-10-09 01:55:47 +02:00
Hannes Janetzek 05e6490d3a cleanups 2013-10-09 01:55:47 +02:00
Hannes Janetzek a61d2d4804 refactor: use getColor() 2013-10-09 01:52:20 +02:00
Hannes Janetzek ed39f9fe34 buildings: decrease contrast with z-distance 2013-10-09 01:52:20 +02:00
Hannes Janetzek cb9cd645af allocate larger buffers for triangulation... 2013-10-09 01:52:20 +02:00
Hannes Janetzek 885eec73d5 cleanup, less bright buildings 2013-10-09 01:52:20 +02:00
Hannes Janetzek 0c023f9989 handle explicitly closed properly:
- make buildings work with vector-tile-server and old pbmap backend
2013-10-09 01:52:20 +02:00
Hannes Janetzek 35923938db use glCullFace GL_FRONT to avoid having to flip triangles
triangle-jni: some loop optimizations
2013-10-09 01:52:20 +02:00
Hannes Janetzek 3484110e08 avoid sqrt, just flip that vector 2013-10-09 01:52:19 +02:00
Hannes Janetzek 6681247215 add safety check...
jni => for the real segv!
2013-10-09 01:52:19 +02:00
Hannes Janetzek c2f5755e64 clear Clipper when layer is compiled 2013-10-09 01:52:19 +02:00
Hannes Janetzek d5ba228fe5 - add building roof outlines
- create extrusion vertices and indices in one loop
2013-10-09 01:52:19 +02:00
Hannes Janetzek c01252f249 - fix roof triagulation for polygons with holes
- omit indices for outline outside tile boundaries
2013-10-09 01:52:19 +02:00
Hannes Janetzek eb278585fa more work on building layer 2013-10-09 01:52:19 +02:00
Hannes Janetzek ac63a4cae1 add beginnings of BuildingOverlay 2013-10-09 01:47:43 +02:00
Hannes Janetzek 45cf6620a9 - keep track of vertex array state in GLRenderer.enableVertexArrays
- use static imports for GL functions
2013-10-09 01:47:43 +02:00
Hannes Janetzek c5663df198 close polygons implicitly when using OSciMap2 database 2013-10-09 01:47:43 +02:00
Hannes Janetzek d5b480cf22 lint changed its opinion on whether FloatMath is faster than Math. need to do some benchmarks..
http://code.google.com/p/android/issues/detail?id=36199
2013-10-09 01:47:43 +02:00
Hannes Janetzek 17a610e06e add comments 2013-10-09 01:47:43 +02:00
Hannes Janetzek 3dc36e108a - rename class Tiles -> TileSet
- cleanup + comments
2013-10-09 01:47:43 +02:00
Hannes Janetzek 807e5c4f30 no more maxIndices per texture 2013-10-09 01:40:21 +02:00
Hannes Janetzek b7aaaef485 - improve way-labeling
- let nomination search places instead of tags
2013-10-09 01:40:21 +02:00
Hannes Janetzek ab5962d56c add osmdroid overlays + bonuspack 2013-10-09 01:40:21 +02:00
Hannes Janetzek 78aac5f019 - rename MapRenderer to TileManager and refactor
- move overlay renderer to own package
- slight TouchHandler improvements, not start rotation when scaling
2013-10-09 01:40:21 +02:00
Hannes Janetzek 98246fe50b - rotate multiple bitmaps to draw and upload textures 2013-10-09 01:40:19 +02:00
Hannes Janetzek 4a06553ddc more work on overlay renderer:
- moved text rendering to overlay
- added grid overlay
2013-10-09 01:27:43 +02:00
Hannes Janetzek 33d8865d7b - started overlays
- started symbol layer
- move renderer and generator out of view package
  - hopefully the last big refactoring for a while...
- improve perspective, plane should be more far away to decrease foreshortening
2013-10-09 01:27:43 +02:00