Commit Graph

54 Commits

Author SHA1 Message Date
03329ebb99 An another stab at implementing z sortable walls. 2022-03-02 21:52:07 +01:00
5c6ae3309b Now the job will be able to use the new stored meshes. 2022-03-02 15:22:36 +01:00
4ee15cfa5c Moved the mesh store api from the isometric mesher to the base mesher. 2022-03-02 14:51:18 +01:00
674659c01e Started reworking the isometric mesher. 2022-03-02 13:29:11 +01:00
ea62e02c6a Added a new Isometric world/chunk/mesher. It's a copy of the simple ones right now. 2022-03-01 23:43:07 +01:00
e7f28eabd3 Renamed the blocky mesher, world and chunk to simple. 2022-03-01 23:23:02 +01:00
1b92eb9f61 Fix typo in comment. 2022-02-27 00:16:33 +01:00
3499536f1c Fix reversed logic in if. 2022-02-26 23:47:53 +01:00
67b9090bd1 Use the normal transform_uv method if the texture scale is 1. 2022-02-26 23:32:25 +01:00
3855fa3dde Fix typo. 2022-02-26 23:28:54 +01:00
196d19f074 Now the mesher uses the new mesh transform properties, and wall flags, and the wall_hole flag. 2022-02-26 17:25:44 +01:00
b63eed39f9 Added wall mesh transform properties to the world and chunk. Also cleanups the the ChannelFlags enum and added FLAG_CHANNEL_WALL_HOLE to it. 2022-02-26 17:24:45 +01:00
b30c1b9153 Added a new flags default channel. Also added flags enum for it. 2022-02-26 14:56:04 +01:00
0298d0216f Fix the merger surface's texture rect calculation. 2022-02-26 10:03:07 +01:00
26e6a17e24 Added back texture scale calculation to the blocky mesher. 2022-02-26 01:48:57 +01:00
b0efd71c47 Fix setter error. 2022-02-24 19:36:07 +01:00
ee4c184d64 Add properties for rao in the light job. 2022-02-24 19:23:25 +01:00
9c0b10ef76 Make rao scale with cell size. 2022-02-24 19:17:22 +01:00
ee92bd7491 Removed always add colors property from the blocky mesher, as 2d always need colors. Also add white if lighting is off. Also cleanups and smaller fixes to the mesh generation algorithm. 2022-02-24 19:03:13 +01:00
aa85599ec4 Added a custom transform to world and chunks. It can be used to set up everything as isometric. 2022-02-24 18:48:46 +01:00
013d8f0363 The merger surface now won't unset saved properties. 2022-02-24 18:03:02 +01:00
ea20c85900 Don't use texture scale. In the blocky mesher. 2022-02-24 18:01:25 +01:00
c5afc68256 Removed faces from the surfaces. 2022-02-24 17:30:04 +01:00
f722a9ea6b Remove unused values from the build flags enum. 2022-02-24 17:04:35 +01:00
bac9329808 Lots of cleanups. 2022-02-24 16:55:14 +01:00
7f68d5f794 Changed voxel scale to cell size x and y. 2022-02-24 15:50:47 +01:00
936143b964 Removed world height. 2022-02-24 14:59:33 +01:00
93e3bb48c1 Quick notes. 2022-02-24 13:24:20 +01:00
91ffd8d1c3 Now chunks use canvas items. This makes positions work on both rendering backends. 2022-02-24 13:02:01 +01:00
4b3e7accd4 Add some notes. 2022-02-24 12:45:21 +01:00
fb9bace145 Reimplemented world_transform_changed event in chunks. This fixes chunk poitions, but only in gles3. It turns out that the transform parameter of canvas render_mesh is not implemented in gles2. 2022-02-24 12:44:02 +01:00
1e056b03e2 Fix textures with the PCM library. 2022-02-24 10:32:49 +01:00
4978e6c35f Use the library's texture when needed in Terrain job. 2022-02-24 10:19:49 +01:00
40478dda74 Added texture properties to the libraries. 2022-02-24 10:16:02 +01:00
b4cd63847f Comment some unneeded logic. 2022-02-24 10:14:59 +01:00
1767f09088 Store the texture's rid to the chunk. 2022-02-24 10:00:42 +01:00
d47a87934b Added convenience method for just allocating one mesh and switched to it everywhere. Now meshes are actually visible. 2022-02-24 09:40:21 +01:00
2a778660c9 Initial drawing setup. 2022-02-24 09:24:41 +01:00
9e4e2becf8 Disable all code that uses the 3d physics server. 2022-02-24 01:03:20 +01:00
ebc5449101 Port the new getters from props. Also added notes. 2022-02-24 00:05:29 +01:00
f077cb218e Removed multiple (lod) material support. 2022-02-23 23:20:41 +01:00
193b5dee93 More cleanups. 2022-02-23 22:05:33 +01:00
467e862b08 Now the world inherits from Navigation2D. 2022-02-23 20:01:38 +01:00
208d21cd40 Initial 2d conversion step. 2022-02-23 19:38:06 +01:00
da473b0794 Removed the default isolevel channels. 2022-02-23 18:35:34 +01:00
3a8ca20448 Removed job steps, as 2d will not need lods. 2022-02-22 14:19:31 +01:00
e74b23b8de Depend on props_2d instead of the props module. 2022-02-22 13:29:31 +01:00
6272c56664 Replace TERRAIN_ to TERRAIN_2D_. (Include guards, and enums.) 2022-02-22 12:02:42 +01:00
6c60ca107a Replace Terrain to Terrain2D everywhere. 2022-02-22 11:42:28 +01:00
419b7fc9a5 Rename the files. 2022-02-22 11:09:36 +01:00