Commit Graph
100 Commits
Author SHA1 Message Date
Hannes Janetzek ed39f9fe34 buildings: decrease contrast with z-distance 2013-10-09 01:52:20 +02:00
Hannes Janetzek 70b7c79a8e started paged-fling mode, not enabled yet 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 2e7a827117 improve finding point inside holes 2013-10-09 01:52:20 +02:00
Hannes Janetzek def840b482 cleanups 2013-10-09 01:52:20 +02:00
Hannes Janetzek bf7d5569e9 fix clipping when drawing proxies 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 28278ba102 start actual BuildingOverlay 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 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 45b19d6a91 fix triangulation of complex polygons:
find coordinates inside hole non-convex holes
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 230f9b2828 enable polygon offset again 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 1887d753c8 add triangle jni source 2013-10-09 01:52:19 +02:00
Hannes Janetzek a4d2aafded theme tweaks 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 74ca621de0 reorder TileGenerator functions 2013-10-09 01:47:44 +02:00
Hannes Janetzek 49055f2cc2 docs 2013-10-09 01:47:44 +02:00
Hannes Janetzek cfa56c00f6 move TileGenerator from 'renderer' to 'generator' package 2013-10-09 01:47:44 +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 6c28a63cc1 poi search: use bounding box when available 2013-10-09 01:47:43 +02:00
Hannes Janetzek df7c7200e5 add animateTo for BoundingBox 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 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 a8b25d07ad keep tile loading state in JobTile.state 2013-10-09 01:47:43 +02:00
Hannes Janetzek 60637f7440 make uniform handle local var 2013-10-09 01:47:43 +02:00
Hannes Janetzek c9137aa790 pack colors to array before passing to gl 2013-10-09 01:47:43 +02:00
Hannes Janetzek e4276ae9c4 avoid overflow when reading more than 64k into buffer
(we had only two tiles where this could have happend :)
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 3c5efd17bd fix buffer overflow 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 4c458d9d1f improve dbg msg 2013-10-09 01:47:43 +02:00
Hannes Janetzek 74b5de13b8 use internal zoomLevel limits for now 2013-10-09 01:47:43 +02:00
Hannes Janetzek 7f598f5ccf - MapView now requires to setMapDatabase(MapOptions) explicitly
- pass MapOptions when opening MapDatabase
2013-10-09 01:47:43 +02:00
Hannes Janetzek 2ac904ecef avoid possible segv when recreating tiles (e.g. when returning to MapActivity) 2013-10-09 01:47:43 +02:00
Hannes Janetzek 17a610e06e add comments 2013-10-09 01:47:43 +02:00
Hannes Janetzek e666eb6a82 reset connection on transmission error 2013-10-09 01:47:43 +02:00
Hannes Janetzek 31f1ad661c remove old oscim protocol definition 2013-10-09 01:47:43 +02:00
Hannes Janetzek 481a5e079e disable poi symbols for tiles, currently broken and should be done in 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
Hannes Janetzek 64c56ce7df always (re-)set VertexAttribArray state, solves issue with gl hanging on S3 2013-10-09 01:46:34 +02:00
Hannes Janetzek adc808f505 handle more overlay events 2013-10-09 01:46:34 +02:00
Hannes Janetzek b863882302 allow interception of all touch events 2013-10-09 01:46:34 +02:00
Hannes Janetzek 695c1532d6 a point, with floats 2013-10-09 01:40:21 +02:00
Hannes Janetzek dd64d6da26 fix: unlock tiles properly onResume 2013-10-09 01:40:21 +02:00
Hannes Janetzek 7dd171dc24 unix line delimiters 2013-10-09 01:40:21 +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 0eda94864f TileMapApp: improve POI overlays 2013-10-09 01:40:21 +02:00
Hannes Janetzek cbceb2c6e9 increase min-distance point reduction for overlay paths 2013-10-09 01:40:21 +02:00
Hannes Janetzek e65911fb07 fix against overflowing max polygon offset (whatever that value might be...) 2013-10-09 01:40:21 +02:00
Hannes Janetzek 5916f1be5e - extract App into separate project, make VectorTileMap a library project
- added minimum MapActivity example
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 65a6f91f3c project config 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 9efe46e3ba cleanups 2013-10-09 01:39:51 +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
Hannes Janetzek 2713f3bc6f show oscimapv2 backend 2013-10-09 01:22:48 +02:00
Hannes Janetzek 525af0e2a4 - no need for double precision in visible tile calculation 2013-10-09 01:22:48 +02:00
Hannes Janetzek 5c36bd7c46 improve tilt gesture detection a little 2013-10-09 01:22:48 +02:00
Hannes Janetzek 6e63158b3d theme tweaks 2013-10-09 01:22:48 +02:00
Hannes Janetzek 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)
2013-10-09 01:22:48 +02:00
Hannes Janetzek 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
2013-10-09 01:22:48 +02:00
Hannes Janetzek fbc39c65cb cleanups 2013-10-09 01:22:48 +02:00
Hannes Janetzek dae474922a shorten string 2013-10-09 01:22:48 +02:00
Hannes Janetzek 7b247f3af3 refactor for readability 2013-10-09 01:22:48 +02:00
Hannes Janetzek 4fafce24b8 extract compareBytes method 2013-10-09 01:22:48 +02:00
Hannes Janetzek 93d57c2577 add copyright 2013-10-09 01:22:48 +02:00
Hannes Janetzek 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

added: ScanBox scanline fill used for calculating visible tiles

rename:
- ShortPool -> VertexPool
- tile.isActive -> isLocked
2013-10-09 01:22:47 +02:00
Hannes Janetzek 8ec405cf5c - added tilt view gesture
- use simple line shader when rotation is disabled
2013-10-09 01:22:47 +02:00
Hannes Janetzek 7d7cf10d89 - fixed MapViewPosition scaleMap
- fixed GLRender isVisible() for proxy tiles
- smoother scale animation
2013-10-09 01:22:47 +02:00
Hannes Janetzek 8d57bc7531 unprojection stuff, needed for scan-line visibility checker 2013-10-09 01:22:47 +02:00
Hannes Janetzek 4a5142fdf6 keep mapfile-writer/db from bit-rotting 2013-10-09 01:22:47 +02:00
Hannes Janetzek 19344e39cf starting to add some perspective 2013-10-09 01:22:47 +02:00
Hannes Janetzek 7ac44bc3df do not cancel loading in limitCache for now 2013-10-09 01:22:47 +02:00
Hannes Janetzek 363cf8b029 add available zoomlevel to MapInfo 2013-10-09 01:22:47 +02:00
Hannes Janetzek 6ee2a85e12 fixes:
- start MapWorkers at end of init
- check for screensize > 0 in updateMap
2013-10-09 01:22:47 +02:00
Hannes Janetzek e54e6e1c46 MapGenerator -> TileGenerator 2013-10-09 01:22:47 +02:00
Hannes Janetzek d3f8f7ceef remove actionbar 2013-10-09 01:22:47 +02:00
Hannes Janetzek 28cc35a32d rename MapGenerator -> TileGenerator 2013-10-09 01:22:33 +02:00
Hannes Janetzek a1317a9de5 - remove swrenderer
- rearchitect:
 now that MapView is a ViewGroup and MapRenderer is the GLSurfaceView.
- lock/unlock proxy tiles properly to not be removed from cache while in use
2013-10-09 01:22:33 +02:00
Hannes Janetzek caea9cd7c9 move PausableThread to mapgenerator package
- add experimental regionlookup
2013-10-09 01:22:33 +02:00
Hannes Janetzek e2da87d8e0 switch package org.mapsforge -> org.oscim 2013-10-09 01:22:33 +02:00
Hannes Janetzek 489f07dd5d some more refactoring:
- pass map<key,val> as settings to db open instead of mapfile
- started to clean up this 'get start position' mess
2013-10-09 01:17:35 +02:00
Hannes Janetzek ab69675d69 fix segv... set initial map position when not in config 2013-10-09 01:17:35 +02:00
Hannes Janetzek 53636cff30 - add compass
- add 'fix orientation' option
- bugfix segv in limitLoadQueue
- remove redundant MapController
- refactor out Location stuff from TileMap
2013-10-09 01:17:35 +02:00
Hannes Janetzek baa40ed9ea comments and cleanups 2013-10-09 01:17:35 +02:00
Hannes Janetzek 69fe74facc - refactor: moving parts of MapRenderer that run on main thread to new TileLoader class
- adding option for enable rotation.. still needs work
- renaming json db to test - it doesnt do json but still handy for testing
2013-10-09 01:17:35 +02:00
Hannes Janetzek 2d90a4dea4 refactoring: MapTile -> JobTile, GLMapTile -> MapTile, TreeTile -> QuadTree 2013-10-09 01:17:35 +02:00