Commit graph

113 commits

Author SHA1 Message Date
Laura Klünder
bee01dab6c fix missing border in opengl renderer 2017-11-15 04:06:43 +01:00
Laura Klünder
ecdcd29c51 fix opengl renderer 2017-11-14 23:23:02 +01:00
Laura Klünder
37a7119455 render obstacles 2017-11-14 22:18:53 +01:00
Laura Klünder
b76f35a4a5 wavefront obj export 2017-11-14 20:53:04 +01:00
Laura Klünder
afbb9e7427 add commented-out debug for watertightness checking 2017-11-14 18:25:46 +01:00
Laura Klünder
2d3c3e7337 fix stl renderer to work with new vertices format 2017-11-14 18:24:47 +01:00
Laura Klünder
651d6b79eb avoid merging intersecting polygons too early 2017-11-14 18:18:22 +01:00
Laura Klünder
92575a3e9a fix linter issue in pycharm 2017-11-14 15:07:00 +01:00
Laura Klünder
19123f0844 support for colors in openscad export 2017-11-14 15:02:56 +01:00
Laura Klünder
d6b94b0167 use level.short_label as group name for rendering 2017-11-14 14:38:38 +01:00
Laura Klünder
c99b9e4e58 remove scale from openscad export 2017-11-14 14:37:17 +01:00
Laura Klünder
f8dd3c2392 fix 3d centering 2017-11-14 14:35:17 +01:00
Laura Klünder
13f4f5164b optionally group geometries in engine to beautify openscad export 2017-11-14 14:27:50 +01:00
Laura Klünder
1c91c9a6db openscad: output as multiple polyhedrons 2017-11-14 13:46:48 +01:00
Laura Klünder
ae8de940b8 add option to center 3d exports and enable it by default 2017-11-14 13:40:19 +01:00
Laura Klünder
7e206d9a0a fix wrong np_offset 2017-11-14 13:37:37 +01:00
Laura Klünder
d2e9d26216 add OpenSCAD export and rename renderstl → rendermap 2017-11-14 13:17:27 +01:00
Laura Klünder
c3419ee492 our stl normals are long enough, drop the factor 2017-11-14 03:45:58 +01:00
Laura Klünder
73f27300ca save all mesh coordinates as mm-ints to avoid floating point errors 2017-11-14 02:49:02 +01:00
Laura Klünder
5929603a13 save top, side and bottom faces seperately and allow ommiting some of them 2017-11-14 01:01:13 +01:00
Laura Klünder
89994a19fe enable blending 2017-11-10 19:34:47 +01:00
Laura Klünder
e26d5c0c0f scale and offset within vertex_shader 2017-11-10 19:11:42 +01:00
Laura Klünder
b73ddb641d remove empty line 2017-11-10 18:41:42 +01:00
Laura Klünder
4dcaefebbe opengl renderer fix error when trying to render empty borders 2017-11-10 18:41:18 +01:00
Laura Klünder
f3694fb0f0 remove unneeded return statement 2017-11-10 17:42:09 +01:00
Laura Klünder
a16336e9ae fix errors if there are no walls on a tile (or other geometry is empty) 2017-11-10 17:41:47 +01:00
Laura Klünder
9b6ff60b9c remove old auto_height stuff 2017-11-10 17:15:21 +01:00
Laura Klünder
cfbe7c07f6 some linter stuff 2017-11-10 02:19:58 +01:00
Laura Klünder
f8302ab0ef only render bases if Engine is_3d 2017-11-10 00:27:37 +01:00
Laura Klünder
b18ea92a9b STLEngine 2017-11-09 21:00:20 +01:00
Laura Klünder
2a62795e4a weird scaling is only for OpenGL, not all 3D in general 2017-11-09 20:56:16 +01:00
Laura Klünder
288e0fd9d6 don't flatten. keep triangles. 2017-11-09 20:18:42 +01:00
Laura Klünder
b2da4df1c4 keep triangles together in base 3d engine 2017-11-09 20:04:25 +01:00
Laura Klünder
37e9dcc1f6 drop suppoprt for svg output 2017-11-09 17:42:19 +01:00
Laura Klünder
c365debfba HybridGeometry.difference() aka access restrictions in map rendering 2017-11-09 17:29:19 +01:00
Laura Klünder
0d7e5fec75 save polyhedrons to LevelRenderData and render OpenGL in 3D 2017-11-09 16:15:10 +01:00
Laura Klünder
64de7f7c58 get vertice_altititudes and vertices_heights in set_mesh_lookup_data 2017-11-08 23:37:08 +01:00
Laura Klünder
5774910a25 move clip_altitudes and altitudes management to SVGEngine 2017-11-08 23:16:41 +01:00
Laura Klünder
aeb7bd698c fix typo 2017-11-08 19:42:37 +01:00
Laura Klünder
7014bdb64b replace SSAA with MSAA 2017-11-08 19:33:20 +01:00
Laura Klünder
ef29f48873 opengl faces cache 2017-11-08 18:05:08 +01:00
Laura Klünder
7790c16bc0 draw lines aroung geometries with altitude only in svg engine 2017-11-08 18:03:40 +01:00
Laura Klünder
c87780dd75 store background_rgb as 0-1 float, not 0-255 int 2017-11-08 14:35:14 +01:00
Laura Klünder
f82c7de5da refactor one_pixel logic 2017-11-08 14:31:50 +01:00
Laura Klünder
335970ffcc implement SSAA 2017-11-08 14:31:37 +01:00
Laura Klünder
b54661ef78 add OpenGLWorker to make it possible to reuse OpenGL resources 2017-11-08 14:17:06 +01:00
Laura Klünder
0713fe2e44 fix OpenGLEngine._add_geometry 2017-11-08 12:35:48 +01:00
Laura Klünder
bee51f000b move triangulate_polygon into c3nav.mapdata.utils.mesh 2017-11-07 22:58:47 +01:00
Laura Klünder
3b628681d6 render levels_on_top of current level 2017-11-07 21:52:51 +01:00
Laura Klünder
0e23945be4 replace trimesh.triangulate_polygon with faster direct meshpy implementation 2017-11-07 14:15:03 +01:00