Commit Graph
100 Commits
Author SHA1 Message Date
GaborFarkas f1685cbe4f Add immediate WebGL text renderer 2017-08-12 14:52:08 +02:00
GaborFarkas d3c2c7f96d Fix hole bridging issue freezing the renderer 2017-08-12 14:52:08 +02:00
GaborFarkas bb593eaac8 Fix WebGL text offset direction 2017-08-12 14:52:08 +02:00
GaborFarkas 87391e7795 Fix method name in WebGL polygonreplay 2017-08-10 21:04:53 +02:00
GaborFarkas 87a10200e3 WebGL triangulation performance 2017-08-10 21:04:53 +02:00
GaborFarkas 619e85e737 Fix linting issues 2017-06-23 21:12:27 +02:00
GaborFarkas b3407b0554 Add reindented texture shader 2017-06-23 20:51:46 +02:00
GaborFarkas a4c421e699 Use glyph atlases 2017-06-23 20:44:41 +02:00
GaborFarkas a3a443324d Add tests for WebGL TextReplay 2017-06-23 20:44:41 +02:00
GaborFarkas 7b9833fdce Conform TextReplay to the new structure 2017-06-23 20:44:41 +02:00
GaborFarkas bd87ec7c83 Conform ImageReplay to the new structure 2017-06-23 20:44:41 +02:00
GaborFarkas 26bfa7a172 Refactor WebGL ImageReplay 2017-06-23 20:37:37 +02:00
GaborFarkas f82bc15013 Minimal working text renderer 2017-06-23 20:34:52 +02:00
GaborFarkas da60b96445 Style texts and draw them on canvas 2017-06-23 20:34:52 +02:00
GaborFarkas 2ed5abed07 Add WebGL text defaults 2017-06-23 20:34:52 +02:00
GaborFarkas 7ea8cf5fb3 Don't introduce new self-intersections. Fixes #6823 2017-06-11 22:07:22 +02:00
GaborFarkas bcda41b508 Do not bridge holes outside of outer ring 2017-05-29 15:55:16 +02:00
GaborFarkas c0fac0f5ca Prepare replays for vector tiles 2017-05-29 15:53:53 +02:00
GaborFarkas dba0934112 Refactor LineString GLSL & clean up 2016-11-23 10:14:20 +01:00
GaborFarkas d27591dea7 Adjust WebGL immediate test 2016-11-23 09:51:38 +01:00
GaborFarkas 0f204641e3 Clean up GLSLs somewhat 2016-11-23 09:51:37 +01:00
GaborFarkas 02461b3416 Add no-op WebGL text replay 2016-11-23 09:51:37 +01:00
GaborFarkas 3e56dba1b4 Do not draw vectors outside viewport 2016-11-23 09:51:37 +01:00
GaborFarkas 3b2ff5a2ee Revamp WebGL CircleReplay 2016-11-23 09:51:37 +01:00
GaborFarkas efbc4ead8d Minor fixes according to review 2016-11-23 09:51:37 +01:00
GaborFarkas dd905ffb5b Cleanup and fix DPR in WebGL CircleReplay 2016-11-23 09:51:37 +01:00
GaborFarkas a7ddda7d81 Force close polygon contours (WebGL) 2016-11-23 09:51:37 +01:00
GaborFarkas ca1414b2d0 Add depth test to PolygonReplay 2016-11-23 09:51:37 +01:00
GaborFarkas 310fabe94a Add tests for WebGL Immediate API 2016-11-23 09:51:37 +01:00
GaborFarkas 0c45b52a7a Add functions to WebGL Immediate API 2016-11-23 09:51:37 +01:00
GaborFarkas 8a6b206220 Add more tests 2016-11-23 09:51:37 +01:00
GaborFarkas 0cb0ea2a8a Add tests for ol.render.webgl.CircleReplay 2016-11-23 09:51:37 +01:00
GaborFarkas c675a33235 Add tests for ol.render.webgl.Replay 2016-11-23 09:51:37 +01:00
GaborFarkas 62fb8d8fd8 Fix typos 2016-11-23 09:51:37 +01:00
GaborFarkas 36df9a9c09 Add missing requires 2016-11-23 09:51:37 +01:00
GaborFarkas dc360c2d7f Refactor WebGL render tests 2016-11-23 09:51:37 +01:00
GaborFarkas 763bbca549 Fix skipping replay 2016-11-23 09:51:37 +01:00
GaborFarkas 697cbf16f0 Fix some rendering issues with complex styling 2016-11-23 09:51:37 +01:00
GaborFarkas dd7e49c217 Fix canvas cricle test 2016-11-23 09:51:37 +01:00
GaborFarkas 58afee6706 Clean up polygon replay GLSL 2016-11-23 09:51:37 +01:00
GaborFarkas ac6408be3b Add circle replay to WebGL renderer 2016-11-23 09:51:36 +01:00
GaborFarkas 86c914f3df Fix glitched lines with rotated view 2016-11-23 09:51:36 +01:00
GaborFarkas 5fb0a84579 Fix WebGL PolygonReplay#bridgeHole_ 2016-11-23 09:51:36 +01:00
GaborFarkas a002474761 Fix typo in polygon rendering test 2016-11-23 09:51:36 +01:00
GaborFarkas e124b34b24 Correctly draw polygons with transparent border 2016-11-23 09:51:36 +01:00
GaborFarkas 3af5c2805e Add tests to WebGL triangulating functions 2016-11-23 09:51:36 +01:00
GaborFarkas 004c0f7e27 Fix WebGL PolygonReplay#getPointsInTriangle_ 2016-11-23 09:51:36 +01:00
GaborFarkas 0c3d5eca5c Add tests for the linked list struct 2016-11-23 09:51:36 +01:00
GaborFarkas 71d790ccfd Add zIndex support to WebGL renderer 2016-11-23 09:51:36 +01:00
GaborFarkas 8e8098b362 Add some test to PolygonReplay 2016-11-23 09:51:36 +01:00
GaborFarkas 5cf2e9c072 Add shutdown methods to replays 2016-11-23 09:51:36 +01:00
GaborFarkas 360e77481d Restructure webgl replays 2016-11-23 09:51:36 +01:00
GaborFarkas dc27f768d0 Correctly triangulate simple polygons. 2016-11-23 09:51:36 +01:00
GaborFarkas a0089b5126 Correctly triangulate bad polygons. 2016-11-23 09:51:36 +01:00
GaborFarkas 657f2c7b6c Optimize processing flat coordinates 2016-11-23 09:51:36 +01:00
GaborFarkas 5d65028d26 Initial ear clipping algorithm 2016-11-23 09:51:33 +01:00
GaborFarkas 88f7e7a38d Utilities for polygon renderer 2016-11-23 09:49:48 +01:00
GaborFarkas 610084d456 Linked list structure for polygon renderer 2016-11-23 09:49:48 +01:00
GaborFarkas 18bc820f8b Prevent overdraw in PolygonReplay. 2016-11-23 09:49:48 +01:00
GaborFarkas 4b2fb38954 Fix preparation of multipolygons with holes. 2016-11-23 09:49:48 +01:00
GaborFarkas 226bf5a9ea Allow empty fillStyle for polygons. 2016-11-23 09:49:48 +01:00
GaborFarkas 16a50ee0c7 Extend PolygonReplay with hit detection and skipping. 2016-11-23 09:49:48 +01:00
GaborFarkas ce3b286cd3 RTE correct only once. 2016-11-23 09:49:48 +01:00
GaborFarkas 112fae228a Sanity check fill colors. 2016-11-23 09:49:48 +01:00
GaborFarkas 18cf6c30bd Add basic polygon renderer. 2016-11-23 09:49:48 +01:00
GaborFarkas 269c3eb943 Set WebGL LineString threshold to 14.6
This commit will be a fixup for the previous one, or get deleted eventually.
2016-11-23 09:49:48 +01:00
GaborFarkas e893603966 Add tests to LineStringReplay 2016-11-23 09:49:47 +01:00
GaborFarkas 638b7752fa Fix bugs in LineStringReplay. 2016-11-23 09:49:47 +01:00
GaborFarkas f96a4a7301 Properly handle zeros in stroke style. 2016-11-23 09:49:47 +01:00
GaborFarkas 1c7203a203 Add skipping capability to LineStringReplay 2016-11-23 09:49:47 +01:00
GaborFarkas 48d3bfe297 Take line width into account when forming miters. 2016-11-23 09:49:47 +01:00
GaborFarkas 16dfc5dfba Adjust replays to new version. 2016-11-23 09:49:47 +01:00
GaborFarkas c966e21e40 Fix black canvas when image is missing 2016-11-23 09:49:47 +01:00
GaborFarkas 2415050500 Add hit detection support to LineStringReplay
Also, making it more consistent with ImageReplay
2016-11-23 09:49:47 +01:00
GaborFarkas b7396b0b94 Improve code quality
Cleaning up, making the code more consistent, and restructuring commonly used methods.
2016-11-23 09:49:47 +01:00
GaborFarkas 3897312af6 Add full support to different styles in one layer. 2016-11-23 09:49:47 +01:00
GaborFarkas 9d6a860cd1 Fix overdraw issue with Firefox
As usual, Firefox is the good guy here, too, and this is an issue with Chrome
2016-11-23 09:49:47 +01:00
GaborFarkas 4d8777220a Fix compiler and compiled lib related problems. 2016-11-23 09:49:47 +01:00
GaborFarkas b0d11391b2 Fix rounding problems
Fragment shader does not know about the projection matrix, thus it has to take the pixel ratio into account.
2016-11-23 09:49:47 +01:00
GaborFarkas 249084dcd4 Eliminate overdraw with a nice little trick 2016-11-23 09:49:47 +01:00
GaborFarkas c9c970303f Handling sharp angles in linestring GLSL 2016-11-23 09:49:47 +01:00
GaborFarkas 3f828248b9 Rework isClosed with added tests 2016-11-23 09:49:47 +01:00
GaborFarkas e64549c50c Fix weird behaviour of boundaries
With drawElements, it seems like we cannot connect an old index with a much fresher one, as it will produce weird errors.
2016-11-23 09:49:47 +01:00
GaborFarkas 4be8de62ae Refactor linestring geom validation
Now it only focuses on issues not addressed by ol.geom.flat.simplify methods.
2016-11-23 09:49:47 +01:00
GaborFarkas f15a9652d8 Fix rendering of boundaries. 2016-11-23 09:49:47 +01:00
GaborFarkas eba006b796 Falling back to bevel when exceeding miterLimit 2016-11-23 09:49:47 +01:00
GaborFarkas 8c561a45b9 Inspect linestring validity before drawing 2016-11-23 09:49:46 +01:00
GaborFarkas 99e4009b19 Minor improvements
ol.render.webgl.LineStringReplay.startIndices_ is initialized with a 0, and the end index of a valid line is added in every valid iteration.

drawElements_ is refactored for a clearer code.
2016-11-23 09:49:46 +01:00
GaborFarkas e2ec6d0b82 Adding support for closed lines 2016-11-23 09:49:46 +01:00
GaborFarkas 0f8e1a7e40 Refactoring ol.render.webgl.LineStringReplay 2016-11-23 09:49:46 +01:00
GaborFarkas c13d09ba23 Handle case of one segment lines with identical coordinates + quality improvements 2016-11-23 09:49:46 +01:00
GaborFarkas fb71860a03 Adding linestring cap support 2016-11-23 09:49:46 +01:00
GaborFarkas 350d1add81 Change goog.base to call, and goog.inherits to ol.inherits 2016-11-23 09:49:46 +01:00
GaborFarkas 0972988bdb Properly triangulate linestrings 2016-11-23 09:49:46 +01:00
GaborFarkas c7edd21cc3 Extend linestring renderer with GLSL and indexed geometries. 2016-11-23 09:49:46 +01:00
GaborFarkas caeb8e4820 Eliminating jitter by restructuring 2016-11-23 09:49:46 +01:00
GaborFarkas 6e958514ee Taking line width into account 2016-11-23 09:49:46 +01:00
GaborFarkas 628db9146d Creating a webgl.Replay struct, making the WebGL LineString renderer compilable 2016-11-23 09:49:46 +01:00
GaborFarkas f5978c659c Adding some defaults 2016-11-23 09:49:46 +01:00
GaborFarkas a6ddee0c5f Updating old code to current ol3 version 2016-11-23 09:49:46 +01:00