1807f0b9dc
animate buildings
Hannes Janetzek
2013-01-07 15:16:35 +01:00
9d2ebab088
use specialized BinarySort for MapTiles that also repacks the 'sparsed' array
Hannes Janetzek
2013-01-07 01:24:35 +01:00
ec647fc4f5
cleanups
Hannes Janetzek
2013-01-06 23:17:46 +01:00
406bea404d
fix: dont crash on restart
Hannes Janetzek
2013-01-06 23:17:28 +01:00
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
Hannes Janetzek
2013-01-06 21:52:10 +01:00
e9d2c88022
TileManager, JobQueue: use MapTile[] instead of list
Hannes Janetzek
2013-01-06 21:24:48 +01:00
d94f8e2af4
ignore polygons that require additional nodes in trigulation
Hannes Janetzek
2013-01-06 06:33:43 +01:00
05e6490d3a
cleanups
Hannes Janetzek
2013-01-06 06:33:25 +01:00
a61d2d4804
refactor: use getColor()
Hannes Janetzek
2013-01-05 21:53:41 +01:00
ed39f9fe34
buildings: decrease contrast with z-distance
Hannes Janetzek
2013-01-05 20:49:23 +01:00
70b7c79a8e
started paged-fling mode, not enabled yet
Hannes Janetzek
2013-01-05 20:47:30 +01:00
cb9cd645af
allocate larger buffers for triangulation...
Hannes Janetzek
2013-01-05 18:10:26 +01:00
2e7a827117
improve finding point inside holes
Hannes Janetzek
2013-01-05 18:09:51 +01:00
def840b482
cleanups
Hannes Janetzek
2013-01-05 18:05:13 +01:00
bf7d5569e9
fix clipping when drawing proxies
Hannes Janetzek
2013-01-05 18:03:38 +01:00
885eec73d5
cleanup, less bright buildings
Hannes Janetzek
2013-01-05 08:31:25 +01:00
28278ba102
start actual BuildingOverlay
Hannes Janetzek
2013-01-05 08:01:13 +01:00
7cc32f1572
use GLState for depth and stencil test
Hannes Janetzek
2013-01-05 07:59:55 +01:00
e50ea0c2ba
refactor: move rendering of base layers to separate class - keep track of GL state in GLState
Hannes Janetzek
2013-01-05 05:42:29 +01:00
99ce02a9bd
-rename BuildingOverlay -> ExtrusionOverlay, even if there is probably nothing else to extrude - started to draw extrusion layer for proxy tiles - fixed depth offsetting..
Hannes Janetzek
2013-01-05 02:46:27 +01:00
0c023f9989
handle explicitly closed properly: - make buildings work with vector-tile-server and old pbmap backend
Hannes Janetzek
2013-01-04 22:41:32 +01:00
35923938db
use glCullFace GL_FRONT to avoid having to flip triangles triangle-jni: some loop optimizations
Hannes Janetzek
2013-01-04 21:05:27 +01:00
45b19d6a91
fix triangulation of complex polygons: find coordinates inside hole non-convex holes
Hannes Janetzek
2013-01-04 19:49:51 +01:00
3484110e08
avoid sqrt, just flip that vector
Hannes Janetzek
2013-01-04 12:54:35 +01:00
6681247215
add safety check... jni => for the real segv!
Hannes Janetzek
2013-01-04 11:29:39 +01:00
230f9b2828
enable polygon offset again
Hannes Janetzek
2013-01-04 11:28:10 +01:00
c2f5755e64
clear Clipper when layer is compiled
Hannes Janetzek
2013-01-04 09:50:30 +01:00
1887d753c8
add triangle jni source
Hannes Janetzek
2013-01-04 09:49:41 +01:00
a4d2aafded
theme tweaks
Hannes Janetzek
2013-01-04 09:40:48 +01:00
d5ba228fe5
- add building roof outlines - create extrusion vertices and indices in one loop
Hannes Janetzek
2013-01-04 08:53:18 +01:00
c01252f249
- fix roof triagulation for polygons with holes - omit indices for outline outside tile boundaries
Hannes Janetzek
2013-01-04 06:30:36 +01:00
eb278585fa
more work on building layer
Hannes Janetzek
2013-01-03 18:29:13 +01:00
74ca621de0
reorder TileGenerator functions
Hannes Janetzek
2013-01-02 03:46:12 +01:00
49055f2cc2
docs
Hannes Janetzek
2013-01-02 03:44:50 +01:00
cfa56c00f6
move TileGenerator from 'renderer' to 'generator' package
Hannes Janetzek
2013-01-02 02:10:21 +01:00
ac63a4cae1
add beginnings of BuildingOverlay
Hannes Janetzek
2013-01-01 16:04:30 +01:00
f761be1999
refactor: rename RenderOverlay classes
Hannes Janetzek
2012-12-30 22:30:51 +01:00
6c28a63cc1
poi search: use bounding box when available
Hannes Janetzek
2012-12-30 21:25:41 +01:00
df7c7200e5
add animateTo for BoundingBox
Hannes Janetzek
2012-12-30 21:24:11 +01:00
eb0b7a8c0c
add beginnings of OverlayModel, rendering only a box atm - modified gl projection so that map layer is always between near- and far-plane
Hannes Janetzek
2012-12-30 18:51:55 +01:00
9b0b2db57b
fix wrap around date-line in label overlay
Hannes Janetzek
2012-12-29 23:40:10 +01:00
45cf6620a9
- keep track of vertex array state in GLRenderer.enableVertexArrays - use static imports for GL functions
Hannes Janetzek
2012-12-29 23:39:25 +01:00
a8b25d07ad
keep tile loading state in JobTile.state
Hannes Janetzek
2012-12-29 23:34:48 +01:00
60637f7440
make uniform handle local var
Hannes Janetzek
2012-12-07 00:23:46 +01:00
c9137aa790
pack colors to array before passing to gl
Hannes Janetzek
2012-12-07 00:21:42 +01:00
e4276ae9c4
avoid overflow when reading more than 64k into buffer (we had only two tiles where this could have happend :)
Hannes Janetzek
2012-12-07 00:19:43 +01:00
c5663df198
close polygons implicitly when using OSciMap2 database
Hannes Janetzek
2012-12-07 00:18:13 +01:00
3c5efd17bd
fix buffer overflow
Hannes Janetzek
2012-12-06 23:45:44 +01:00
4c458d9d1f
improve dbg msg
Hannes Janetzek
2012-11-26 15:10:48 +01:00
74b5de13b8
use internal zoomLevel limits for now
Hannes Janetzek
2012-11-26 12:44:05 +01:00
7f598f5ccf
- MapView now requires to setMapDatabase(MapOptions) explicitly - pass MapOptions when opening MapDatabase
Hannes Janetzek
2012-11-26 12:33:17 +01:00
2ac904ecef
avoid possible segv when recreating tiles (e.g. when returning to MapActivity)
Hannes Janetzek
2012-11-25 22:14:00 +01:00
17a610e06e
add comments
Hannes Janetzek
2012-11-25 21:11:13 +01:00
e666eb6a82
reset connection on transmission error
Hannes Janetzek
2012-11-25 21:10:47 +01:00
31f1ad661c
remove old oscim protocol definition
Hannes Janetzek
2012-11-25 21:09:48 +01:00
481a5e079e
disable poi symbols for tiles, currently broken and should be done in overlay
Hannes Janetzek
2012-11-24 19:38:16 +01:00
3dc36e108a
- rename class Tiles -> TileSet - cleanup + comments
Hannes Janetzek
2012-11-24 19:37:33 +01:00
64c56ce7df
always (re-)set VertexAttribArray state, solves issue with gl hanging on S3
Hannes Janetzek
2012-11-19 14:21:04 +01:00
adc808f505
handle more overlay events
Hannes Janetzek
2012-11-13 14:35:50 +01:00
b863882302
allow interception of all touch events
Hannes Janetzek
2012-11-13 14:14:01 +01:00
695c1532d6
a point, with floats
Hannes Janetzek
2012-11-07 23:16:54 +01:00
7dd171dc24
unix line delimiters
Hannes Janetzek
2012-11-03 23:38:31 +01:00
807e5c4f30
no more maxIndices per texture
Hannes Janetzek
2012-11-03 15:22:06 +01:00
b7aaaef485
- improve way-labeling - let nomination search places instead of tags
Hannes Janetzek
2012-11-03 14:45:34 +01:00
0eda94864f
TileMapApp: improve POI overlays
Hannes Janetzek
2012-10-30 11:56:46 +01:00
cbceb2c6e9
increase min-distance point reduction for overlay paths
Hannes Janetzek
2012-10-28 17:31:03 +01:00
e65911fb07
fix against overflowing max polygon offset (whatever that value might be...)
Hannes Janetzek
2012-10-28 17:30:30 +01:00
5916f1be5e
- extract App into separate project, make VectorTileMap a library project - added minimum MapActivity example
Hannes Janetzek
2012-10-28 17:28:24 +01:00
65a6f91f3c
project config
Hannes Janetzek
2012-10-27 13:34:30 +02:00
78aac5f019
- rename MapRenderer to TileManager and refactor - move overlay renderer to own package - slight TouchHandler improvements, not start rotation when scaling
Hannes Janetzek
2012-10-20 00:50:32 +02:00
98246fe50b
- rotate multiple bitmaps to draw and upload textures
Hannes Janetzek
2012-10-15 17:31:57 +02:00
9efe46e3ba
cleanups
Hannes Janetzek
2012-10-13 04:58:02 +02:00
4a06553ddc
more work on overlay renderer: - moved text rendering to overlay - added grid overlay
Hannes Janetzek
2012-10-13 04:57:27 +02:00
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
Hannes Janetzek
2012-10-09 13:23:15 +02:00
2713f3bc6f
show oscimapv2 backend
Hannes Janetzek
2012-10-02 02:48:29 +02:00
525af0e2a4
- no need for double precision in visible tile calculation
Hannes Janetzek
2012-10-02 02:47:02 +02:00
5c36bd7c46
improve tilt gesture detection a little
Hannes Janetzek
2012-10-01 16:35:04 +02:00
6e63158b3d
theme tweaks
Hannes Janetzek
2012-09-30 20:42:19 +02:00
b4dd83fc09
- improve tile locking (use ref counter instead of boolean) - flip over date line (inserting placeholder tiles in renderer) - make view coordinates consistent with tile coordinates (flip on y-axis)
Hannes Janetzek
2012-09-30 20:42:04 +02:00
5bf9deef89
- prevent possible concurrency between updateMap 'clear' tiles and onDrawFrame - no need to sync tile in uploadTileData anymore, now that proxies are locked properly - cleanups
Hannes Janetzek
2012-09-26 22:43:59 +02:00
fbc39c65cb
cleanups
Hannes Janetzek
2012-09-26 21:43:01 +02:00
dae474922a
shorten string
Hannes Janetzek
2012-09-26 21:41:58 +02:00
7b247f3af3
refactor for readability
Hannes Janetzek
2012-09-26 21:16:11 +02:00
4fafce24b8
extract compareBytes method
Hannes Janetzek
2012-09-26 21:15:16 +02:00
93d57c2577
add copyright
Hannes Janetzek
2012-09-26 19:54:37 +02:00
c5e3be9d2b
- started to move Matrices to MapViewPosition as these can be shared with MapRenderer(TileLoader) and GLRenderer. - using inverse projection to determine visible tiles and mapping screen-coordinates to model - making MapPosition not final, reuse instance to get Position in Map-/GLRender
Hannes Janetzek
2012-09-26 17:02:03 +02:00
8ec405cf5c
- added tilt view gesture - use simple line shader when rotation is disabled
Hannes Janetzek
2012-09-23 11:08:18 +02:00