71 Commits

Author SHA1 Message Date
Hannes Janetzek
7cf4ca27f3 - add initial version of line stipple renderer
- 'vbo' moved to 'Layers'
2013-10-09 01:55:54 +02:00
Hannes Janetzek
a0083ae484 refactor 'checkOverlap', cleanups 2013-10-09 01:55:54 +02:00
Hannes Janetzek
836c6f39ab add label debug option to app preferences 2013-10-09 01:55:54 +02:00
Hannes Janetzek
b43736a047 reuse Labels and OBB2Ds, cleanups 2013-10-09 01:55:54 +02:00
Hannes Janetzek
45bb326258 update copyright 2013-10-09 01:55:53 +02:00
Hannes Janetzek
1af037d783 fix: release textures 2013-10-09 01:55:53 +02:00
Hannes Janetzek
34bffcc15f labeling testing 2013-10-09 01:55:53 +02:00
Hannes Janetzek
55030c1166 refactor: dont pass matrices with MapPosition -> use GLRender.Matrices 2013-10-09 01:55:53 +02:00
Hannes Janetzek
b3d708bd36 fix label preference by segment length
add more TODOs
2013-10-09 01:55:53 +02:00
Hannes Janetzek
e69bebb2c5 use OBBs for label collision detections 2013-10-09 01:55:53 +02:00
Hannes Janetzek
c53805aded release locked tiles for labeling directly 2013-10-09 01:55:52 +02:00
Hannes Janetzek
7c6ec614a2 make TileManager non-static 2013-10-09 01:55:52 +02:00
Hannes Janetzek
f2b7a9fdf8 formatting 2013-10-09 01:55:52 +02:00
Hannes Janetzek
8fb7dc831c building model shading 2013-10-09 01:55:52 +02:00
Hannes Janetzek
fb1b0d4087 docs 2013-10-09 01:55:51 +02:00
Hannes Janetzek
fc96e5f6e8 impprove labeling a bit by giving priority to labels that were labeled previously 2013-10-09 01:55:51 +02:00
Hannes Janetzek
c21b5b629b building color tweaks 2013-10-09 01:55:51 +02:00
Hannes Janetzek
f7b00b9692 custom renderer, draw quad 2013-10-09 01:55:51 +02:00
Hannes Janetzek
373d45e008 building color 2013-10-09 01:55:51 +02:00
Hannes Janetzek
7124d07bbd show how to fix triangle on map 2013-10-09 01:55:51 +02:00
Hannes Janetzek
bc9f517cb1 extend CustomOverlay example to draw a triangle 2013-10-09 01:55:51 +02:00
Hannes Janetzek
be67647bdd clear ItemizedOverlay 2013-10-09 01:55:51 +02:00
Hannes Janetzek
019c39d8b8 start render early 2013-10-09 01:55:51 +02:00
Hannes Janetzek
e99a4279bf keep track of GL_BLEND state: GLState.blend(enable) 2013-10-09 01:55:51 +02:00
Hannes Janetzek
9fa87855fe no need for synchronized in ExtrusionOverlay 2013-10-09 01:55:50 +02:00
Hannes Janetzek
4e19553f9e move uploadOverlay to BasicOverlay 2013-10-09 01:55:50 +02:00
Hannes Janetzek
bb22ecd7e3 extract Layer drawing utilities from RenderOverlay into BasicOverlay 2013-10-09 01:55:50 +02:00
Hannes Janetzek
dd74e1aa7b start Custom RenderOverlay 2013-10-09 01:55:50 +02:00
Hannes Janetzek
55a181330d some more labeling experiments 2013-10-09 01:55:50 +02:00
Hannes Janetzek
3d8f62ec4a cleanups 2013-10-09 01:55:50 +02:00
Hannes Janetzek
be748138ac - use Stencil instead of Depth for clipping test
to avoid drawing everything with polygonOffset
- add GLState.useProgram
2013-10-09 01:55:50 +02:00
Hannes Janetzek
d376d07c12 use short vertices, add docs 2013-10-09 01:55:49 +02:00
Hannes Janetzek
32d3eec036 some experiments 2013-10-09 01:55:49 +02:00
Hannes Janetzek
5f6025206d building color tweaks 2013-10-09 01:55:49 +02:00
Hannes Janetzek
54923d6bff fix bug overlay lines causing short flashing lines when changing zoom-levels 2013-10-09 01:55:49 +02:00
Hannes Janetzek
6a34e478f5 improve text placement a little 2013-10-09 01:55:49 +02:00
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
9705811f7b fix way too much z-offset used for roof outline 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
21584637ed cleanup 2013-10-09 01:55:48 +02:00
Hannes Janetzek
dabfe680a9 one single light direction from north 2013-10-09 01:55:48 +02:00
Hannes Janetzek
b8287f9ecf move near plane back, fixes clipping issue with most large buildings 2013-10-09 01:55:48 +02:00
Hannes Janetzek
007ab2e3bf fix z-fighting on overlapping buildings:
- modify projection matrix to add offset, glPolygonOffset is not that reliable
2013-10-09 01:55:48 +02:00
Hannes Janetzek
a9f5525c50 trying to get polygon offset right... 2013-10-09 01:55:48 +02:00
Hannes Janetzek
a7790537f2 use matrix utilities 2013-10-09 01:55:48 +02:00
Hannes Janetzek
bfe8cf2889 use setTileMatrix utility function 2013-10-09 01:55:48 +02:00
Hannes Janetzek
1c11cd1780 building shader experiments 2013-10-09 01:55:47 +02:00
Hannes Janetzek
f266d61a35 fix wrap over date-line, again
started on-hold mode to avoid relabeling while zoom gesture is active
2013-10-09 01:55:47 +02:00
Hannes Janetzek
088f3e2385 enable glDepthMask before clearing depth buffer:
- fixes building rendering on nexus and asus tablet
2013-10-09 01:55:47 +02:00
Hannes Janetzek
a03f81d306 only modify DEPTH_TEST through GLState 2013-10-09 01:55:47 +02:00