Commit graph

267 commits

Author SHA1 Message Date
Laura Klünder
7c726ef845 do not merge obstacles. this seems to get to complicated for libgeos 2017-12-21 19:38:31 +01:00
Laura Klünder
5bdfe73f6e borders for obstacles? 2017-12-21 15:29:40 +01:00
Laura Klünder
82e180dcb3 add todo 2017-12-20 18:40:54 +01:00
Laura Klünder
45e29cac1f fix stupid faces=None bug 2017-12-20 18:40:23 +01:00
Laura Klünder
26cb860efb darken lower levels 2017-12-20 12:21:44 +01:00
Laura Klünder
5bd879d954 make obstacles darker 2017-12-15 20:49:21 +01:00
Laura Klünder
b4ce69c6b9 confine areas to their spaces 2017-12-15 16:06:31 +01:00
Laura Klünder
056a4ef635 hopefully this helps against the geos errors 2017-12-15 12:51:53 +01:00
Laura Klünder
ffa5fb382e more buffer(0) after difference()… hopefully this helps 2017-12-15 12:37:58 +01:00
Laura Klünder
eb7eac4448 try to fix validity problems in build_for_level 2017-12-15 12:35:31 +01:00
Laura Klünder
4ba43480ed comments for LevelRenderData 2017-12-15 00:02:40 +01:00
Laura Klünder
93cd4f0e77 more comments \o/ 2017-12-14 23:57:59 +01:00
Laura Klünder
de73251bc3 opengl vertex shader: use transformation matrix 2017-12-05 20:24:51 +01:00
Laura Klünder
3992ccd552 add renderer z offset 2017-12-05 18:13:38 +01:00
Laura Klünder
4ccbbd0491 add timeout to opengl render queue 2017-11-30 15:53:12 +01:00
Laura Klünder
587b08a1e4 namedtuple subclasses should set __slots__=() 2017-11-26 18:35:00 +01:00
Laura Klünder
01e8eade8e make sure colors are in the right order (looks nicer in export source) 2017-11-26 13:17:39 +01:00
Laura Klünder
ed8e351556 shorter groundcolor name 2017-11-26 13:13:20 +01:00
Laura Klünder
d6fa4fce23 use nicer color names in renderer 2017-11-26 13:10:31 +01:00
Laura Klünder
c9b9c8b38d make sure triangulate_rings does not create triangles with no area 2017-11-26 13:03:26 +01:00
Laura Klünder
0b4964f629 deal with zero-length normals 2017-11-26 02:48:09 +01:00
Laura Klünder
a915e4401e simplify obstacle height calculation to fix rendering bugs 2017-11-25 22:53:50 +01:00
Laura Klünder
f4c39a1393 remove debug color from svg renderer 2017-11-25 15:22:45 +01:00
Laura Klünder
94a093d4dc renderer: lowest levels should always be extend downwards 2017-11-25 15:16:15 +01:00
Laura Klünder
b846f6d0ad add fallback for empty geometries 2017-11-25 14:45:43 +01:00
Laura Klünder
3720fbd0ff dont render obstacles with zero height 2017-11-25 14:37:06 +01:00
Laura Klünder
d5ad497327 don't add height to short walls in svg renderer 2017-11-25 14:12:47 +01:00
Laura Klünder
bf98f54b55 refactor tile code in meny places to allow reusing it 2017-11-21 00:15:49 +01:00
Laura Klünder
5498e9f84f create cache packages for caching tile servers 2017-11-20 21:10:03 +01:00
Laura Klünder
ede7e4dc86 use AccessRestrictionAffected in MapRenderer 2017-11-20 17:29:53 +01:00
Laura Klünder
a6daeb6153 rename cache files for better overview 2017-11-20 17:25:21 +01:00
Laura Klünder
e06c71be61 add AccessRestrictionAffected as GeometryIndexed subclass 2017-11-20 17:21:19 +01:00
Laura Klünder
87d1e3e7f5 don't import anything in render.__init__ 2017-11-20 02:53:49 +01:00
Laura Klünder
94ae86d690 refactor even more data→geometry and levelrender 2017-11-20 02:38:35 +01:00
Laura Klünder
6bad1f9cc3 split up c3nav.mapdata.render.data 2017-11-20 02:28:08 +01:00
Laura Klünder
116590b88f c3nav.mapdata.cache → c3nav.mapdata.utils.cache 2017-11-20 00:39:01 +01:00
Laura Klünder
3b6a55dda7 outsource this duplicate code 2017-11-19 20:04:58 +01:00
Laura Klünder
4594c44539 avoid confusing the triangle library with too complex ring intersections 2017-11-19 19:54:22 +01:00
Laura Klünder
6a4ad6b584 revert 2017-11-19 01:02:21 +01:00
Laura Klünder
aa8e745b79 ground is ground 2017-11-19 00:57:37 +01:00
Laura Klünder
25794fb613 fix bases for non-full-level rendering or ramps 2017-11-19 00:30:08 +01:00
Laura Klünder
dcb0edcbd8 fix missing columns 2017-11-18 23:30:10 +01:00
Laura Klünder
6812edb8b3 Mesh() is not a namedtuple to improve performance 2017-11-18 23:07:22 +01:00
Laura Klünder
b700ccd46c try to call heavy shapely operations less often to improve performance 2017-11-18 22:44:06 +01:00
Laura Klünder
b6be667cfc no reason to save levels, we dont store anything in them anymore 2017-11-18 21:18:31 +01:00
Laura Klünder
b63ab7d4e4 fix fatal errors during rendering 2017-11-18 19:21:21 +01:00
Laura Klünder
391e2dffa2 avoid intersections and identifcal faces _create_polyhedron 2017-11-18 16:19:28 +01:00
Laura Klünder
eac6048fe3 ensure ramps affect obstacles correctly 2017-11-18 15:58:33 +01:00
Laura Klünder
9b66a2b4e5 fix short_walls below ramps 2017-11-18 13:48:33 +01:00
Laura Klünder
465391d145 fix scrambled bottom faces 2017-11-18 13:31:33 +01:00