Commit Graph

68 Commits

Author SHA1 Message Date
Relintai f826e37904 Updated the readme. 2023-01-09 21:12:49 +01:00
Relintai c460fd42c0 Work on fixing compile. 2023-01-09 20:05:54 +01:00
Relintai cbcde2c3a5 Work on fixing compile. 2023-01-09 14:10:21 +01:00
Relintai 01c83d647c Work on fixing compile. 2023-01-09 01:16:43 +01:00
Relintai 4b4db780f2 Updated register_types.h and cpp to the current godot 4 style. 2023-01-08 15:55:27 +01:00
Relintai 60a7e84a5d Implemented debug collision shape visualization for the terrain. Also fixed the winding order for the isometric mesher's returned shape. 2022-03-04 14:17:55 +01:00
Relintai 72100b029c Updated lots of old 3d physics code. 2022-03-04 13:00:13 +01:00
Relintai c911f3ccab Implemented terrain tile collider generation. 2022-03-04 12:24:37 +01:00
Relintai 487fbc65e5 Added a method to the mesher so it can create terrain mesh collider shapes. 2022-03-04 00:23:15 +01:00
Relintai 5567c7da33 Now the isometric mesher's walls get properly y sorted. 2022-03-03 17:57:59 +01:00
Relintai 324611fc46 Prototype implementation, that makes walls actually work with godot's y sort. It does need tweaks. 2022-03-03 13:22:52 +01:00
Relintai 6f3eb79f32 Fix placing meshes. Y sorting still doesn't work with them though. 2022-03-03 09:33:34 +01:00
Relintai 4549f7d0a6 Remove unneeded method from the isometric mesher. 2022-03-03 09:11:44 +01:00
Relintai f9fff0162f An another stab at getting y sort to work with walls. 2022-03-03 00:17:40 +01:00
Relintai 03329ebb99 An another stab at implementing z sortable walls. 2022-03-02 21:52:07 +01:00
Relintai 5c6ae3309b Now the job will be able to use the new stored meshes. 2022-03-02 15:22:36 +01:00
Relintai 4ee15cfa5c Moved the mesh store api from the isometric mesher to the base mesher. 2022-03-02 14:51:18 +01:00
Relintai 674659c01e Started reworking the isometric mesher. 2022-03-02 13:29:11 +01:00
Relintai 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
Relintai e7f28eabd3 Renamed the blocky mesher, world and chunk to simple. 2022-03-01 23:23:02 +01:00
Relintai 1b92eb9f61 Fix typo in comment. 2022-02-27 00:16:33 +01:00
Relintai 3499536f1c Fix reversed logic in if. 2022-02-26 23:47:53 +01:00
Relintai 67b9090bd1 Use the normal transform_uv method if the texture scale is 1. 2022-02-26 23:32:25 +01:00
Relintai 3855fa3dde Fix typo. 2022-02-26 23:28:54 +01:00
Relintai 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
Relintai 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
Relintai b30c1b9153 Added a new flags default channel. Also added flags enum for it. 2022-02-26 14:56:04 +01:00
Relintai 0298d0216f Fix the merger surface's texture rect calculation. 2022-02-26 10:03:07 +01:00
Relintai 26e6a17e24 Added back texture scale calculation to the blocky mesher. 2022-02-26 01:48:57 +01:00
Relintai b0efd71c47 Fix setter error. 2022-02-24 19:36:07 +01:00
Relintai ee4c184d64 Add properties for rao in the light job. 2022-02-24 19:23:25 +01:00
Relintai 9c0b10ef76 Make rao scale with cell size. 2022-02-24 19:17:22 +01:00
Relintai 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
Relintai 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
Relintai 013d8f0363 The merger surface now won't unset saved properties. 2022-02-24 18:03:02 +01:00
Relintai ea20c85900 Don't use texture scale. In the blocky mesher. 2022-02-24 18:01:25 +01:00
Relintai c5afc68256 Removed faces from the surfaces. 2022-02-24 17:30:04 +01:00
Relintai f722a9ea6b Remove unused values from the build flags enum. 2022-02-24 17:04:35 +01:00
Relintai bac9329808 Lots of cleanups. 2022-02-24 16:55:14 +01:00
Relintai 7f68d5f794 Changed voxel scale to cell size x and y. 2022-02-24 15:50:47 +01:00
Relintai 936143b964 Removed world height. 2022-02-24 14:59:33 +01:00
Relintai 93e3bb48c1 Quick notes. 2022-02-24 13:24:20 +01:00
Relintai 91ffd8d1c3 Now chunks use canvas items. This makes positions work on both rendering backends. 2022-02-24 13:02:01 +01:00
Relintai 4b3e7accd4 Add some notes. 2022-02-24 12:45:21 +01:00
Relintai 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
Relintai 1e056b03e2 Fix textures with the PCM library. 2022-02-24 10:32:49 +01:00
Relintai 4978e6c35f Use the library's texture when needed in Terrain job. 2022-02-24 10:19:49 +01:00
Relintai 40478dda74 Added texture properties to the libraries. 2022-02-24 10:16:02 +01:00
Relintai b4cd63847f Comment some unneeded logic. 2022-02-24 10:14:59 +01:00
Relintai 1767f09088 Store the texture's rid to the chunk. 2022-02-24 10:00:42 +01:00