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 |
|
Hannes Janetzek
|
1807f0b9dc
|
animate buildings
|
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
|
ed39f9fe34
|
buildings: decrease contrast with z-distance
|
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
|
7cc32f1572
|
use GLState for depth and stencil test
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
e50ea0c2ba
|
refactor: move rendering of base layers to separate class
- keep track of GL state in GLState
|
2013-10-09 01:52:20 +02:00 |
|
Hannes Janetzek
|
99ce02a9bd
|
-rename BuildingOverlay -> ExtrusionOverlay,
even if there is probably nothing else to extrude
- started to draw extrusion layer for proxy tiles
- fixed depth offsetting..
|
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
|
230f9b2828
|
enable polygon offset again
|
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
|
f761be1999
|
refactor: rename RenderOverlay classes
|
2013-10-09 01:47:43 +02:00 |
|
Hannes Janetzek
|
eb0b7a8c0c
|
add beginnings of OverlayModel, rendering only a box atm
- modified gl projection so that map layer is always between near- and far-plane
|
2013-10-09 01:47:43 +02:00 |
|
Hannes Janetzek
|
9b0b2db57b
|
fix wrap around date-line in label overlay
|
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 |
|