Commit Graph

386 Commits

Author SHA1 Message Date
8d00fe6db9 Implement tile y size handling for TiledWalls. 2022-05-26 21:07:00 +02:00
6a18764f1d TiledWallData's size is now a float instad of a vector2. 2022-05-26 18:49:24 +02:00
36437d98b2 Renamed the internal vectors of TiledWallData. 2022-05-26 18:42:24 +02:00
f141399345 Removed the _texture_ infix from the methods in TiledWallData which were not supposed to have it. 2022-05-26 18:38:01 +02:00
c7e1f40435 Also added a collider type enum for TiledWallData. Not used yet. 2022-05-26 18:26:05 +02:00
09a4afc907 Reworked TiledWallData's api, and added per tile size and z offset members. Mesh generation does not use them yet. 2022-05-26 18:17:48 +02:00
3de05db75a Prefixed all member variables with _ in the wfc module. 2022-04-25 11:59:24 +02:00
d8938665f8 The 2 constants are uppercase in TilingWFC. 2022-04-25 10:46:16 +02:00
f93c9fdd15 Small optimization. 2022-04-24 17:46:36 +02:00
4922e62b13 Small optimization for image indexer. This also fixes pixel order. 2022-04-24 17:46:14 +02:00
278a55a4b4 Fix wrong order of arguments. 2022-04-24 17:15:18 +02:00
0a7b5c2deb Actually set pattern frequencies in TilingWFC. This actually fixes the image generation problems. 2022-04-24 16:44:28 +02:00
89d7829c1e Don't crash in TilingWFC due to the result containing bad indices. This will help with debugging. 2022-04-24 16:25:17 +02:00
c930e8b754 API improvements, crash fixes and smaller various improvements for the Tiling WFC class. 2022-04-24 15:14:29 +02:00
c9a520f9c3 Better error handling and fix potential crash in the overlapping WFC class. 2022-04-24 15:13:50 +02:00
dcdb5715cc Use ERR_FAIL_COND macro again if the image passed in is not valid in index_image. Also don't delete color information. 2022-04-24 11:46:46 +02:00
53aed73a64 Added helper methods so tile name can also be used when it's more conveninent in TilingWaveFormCollapse. 2022-04-24 11:34:09 +02:00
7dbf967170 Improved the api / usability of the image indexer. 2022-04-24 11:19:03 +02:00
b8dcd4fbf8 Add back binding that I accidentally emoved. 2022-04-24 09:51:09 +02:00
9b717b0a87 Added reset method to the ImageIndexer, and made it's index_image method additive. 2022-04-24 09:49:59 +02:00
6736ff17fd Bindings for TilingWaveFormCollapse. 2022-04-24 01:49:26 +02:00
f9db81c6c4 Added new helper methods to Array2D. 2022-04-24 01:39:47 +02:00
3ba0a856a3 Fix typo. 2022-04-24 01:37:16 +02:00
c7ee453e8a Found an unneeded static cast. 2022-04-23 21:30:51 +02:00
05dddc114e Found more smaller things. 2022-04-23 16:03:37 +02:00
f3c96f945a Lots of small fixes and improvements to the wfc module. It still has issues though. 2022-04-23 15:23:00 +02:00
2f81373562 Lots of work on the bindings for the wfc module. Also smaller improvements. 2022-04-23 00:48:19 +02:00
0f1c04e08d Added a new ImageIndexer helper class. 2022-04-22 22:54:42 +02:00
73caee4fa2 Re-extracted the class docs. 2022-04-22 19:39:21 +02:00
e1ca765409 Set up doc classes for the wfc module. 2022-04-22 19:36:12 +02:00
e311cacced Use int-s instead of uint32_t-s in the wfc module for better compatibility with scripting. 2022-04-22 19:07:29 +02:00
129ed4e349 Register the new classes into the ClassDB. 2022-04-22 18:54:59 +02:00
6e5407c55f Finished the initial cleanup for OverlappingWaveFormCollapse, and added it to the build. 2022-04-22 18:50:27 +02:00
21be696f6a OverlappingWaveFormCollapse initial codestyle cleanup / setup. 2022-04-22 15:18:19 +02:00
2c0952a893 Fix different signedness warnings. 2022-04-22 02:52:54 +02:00
137bf204a6 Finished the first set of cleanups, and added TilingWaveFormCollapse to the build. 2022-04-22 02:35:38 +02:00
24ef915413 More cleanups and refactors to the TilingWaveFormCollapse class. 2022-04-22 01:55:53 +02:00
89541c361b Initial cleanup to the TilingWFC class. 2022-04-22 01:15:40 +02:00
e6e780291f Small improvements. 2022-04-22 00:56:24 +02:00
6c6e9599c2 Revert the previous change for now. 2022-04-22 00:50:57 +02:00
e7b3819103 Remvoed the PropagationEntry struct. 2022-04-22 00:33:10 +02:00
cc921370ce Fixed comparison of integer expressions of different signedness warnings. 2022-04-22 00:08:26 +02:00
bcfb45d049 Also merged directions.h into WaveFormCollapse. 2022-04-21 23:35:45 +02:00
9f190ca13c Move methods out from the anonymous namespace. 2022-04-21 23:33:21 +02:00
5beae4d5dc Merged Propagator and Wave into the WaveFormCollapse class, ans simplified it's design as much as possible. It still needs more work though. 2022-04-21 23:31:25 +02:00
fdb6ced123 Got rid of the EntropyMemoisation struct as it just makes readability worse. 2022-04-21 20:14:31 +02:00
a501292046 Renamed WFC to WaveFunctionCollapse, asn started transforming it. 2022-04-21 20:00:42 +02:00
96738f5783 Notes. 2022-04-21 19:45:09 +02:00
dc1064aac4 Small improvements. 2022-04-21 17:45:30 +02:00
4e8d254ba9 Smaller improvements. 2022-04-21 17:33:44 +02:00
2680c89948 Got rid of std::touples in the wfc module. 2022-04-21 17:17:50 +02:00
bb723e3c44 Got rid of std::arrays in the wfc module. 2022-04-21 17:05:26 +02:00
e4a2429b45 Use error macros in the wfc module instead of asserts. 2022-04-21 16:51:10 +02:00
ec6b52f5d8 unsigned to uint32_t conversion for the wfc module. 2022-04-21 16:43:04 +02:00
531dc783d8 std::size_t to uint32_t for the wfc module. 2022-04-21 16:36:33 +02:00
f080f5e027 Replace std::vectors in the wfc module to engine vectors. 2022-04-21 16:31:03 +02:00
c886f9f7af Add wfc's classes to the build. 2022-04-21 14:28:18 +02:00
5be272e5cb Fix a few typos and remove std::optional from wcf. 2022-04-21 14:28:04 +02:00
dfbae29faa An another set of codestyle cleanups for the wfc module. 2022-04-20 03:24:50 +02:00
837e518e5a Clang format and codestyle cfixed to the wfc module. 2022-04-20 03:05:34 +02:00
98008d48c9 Proper structural setup for the new module. 2022-04-20 02:50:16 +02:00
05bb8567ba Added a new wfc (wave function collapse) module. I added https://github.com/math-fehr/fast-wfc 's code as a base for it. It's not in the build yet. 2022-04-20 02:39:35 +02:00
bb303112fe Move paint's shader to an another folder to avoid unused variable warning. 2022-04-19 00:10:39 +02:00
ecda65d37b Fix an another shadoved declaration. 2022-04-18 23:41:49 +02:00
4813832b92 Fix shadowed declaration warning. 2022-04-18 19:34:52 +02:00
18184429bb Also fix ste style of the 3d prop plugin's convert button. 2022-04-18 19:33:47 +02:00
56e5874267 Set Prop2D's conver button's style to flat, so it's in the expected style. 2022-04-18 19:32:17 +02:00
396426aa12 Skip registering PaintEditorPlugin for now, as the module will need lots of refactorings and I need to think about them more. 2022-04-18 16:33:37 +02:00
701e07a2cd Typo fix. 2022-04-18 16:26:01 +02:00
81e9a54129 The PaintCanvasBackgorund needs draw behind parent set. 2022-04-18 15:45:24 +02:00
7abae2b54e Properly ported PaintCanvasBackground. 2022-04-18 15:32:55 +02:00
71ac7bc4e3 Bit more work on porting PaintActions. 2022-04-18 14:10:21 +02:00
111daab50e Switched to it in a few places. 2022-04-18 13:00:14 +02:00
361f949093 Work on porting the actions. 2022-04-17 21:10:43 +02:00
a3fc87a576 Cleaned up BrushPrefabs. Also started cleaning up actions. 2022-04-17 20:04:30 +02:00
d3c039be7e Also port the logic of the selection box and visual grid. 2022-04-17 18:14:06 +02:00
cc217b7eea Also ported the settings dialog. 2022-04-17 17:23:58 +02:00
bd42d11629 Also ported the PaintCanvasDialog, and the grid size dialog. 2022-04-17 16:44:54 +02:00
398af1a772 Fully ported PaintLoadFlieDialog aswell. 2022-04-17 15:29:03 +02:00
8182d82135 Implemented signals for PaintWindow, smaller fixes for PaintCanvas, and cleaned up the save file dialog. 2022-04-17 14:15:40 +02:00
b7230dd942 Added in the icons for paint's gui. 2022-04-17 12:03:12 +02:00
b9f0ccdeb3 Finished porting the logic of PaintWindow. Also smaller fixes / improvements. 2022-04-17 11:43:25 +02:00
0521aa4d6b or to || 2022-04-17 03:27:52 +02:00
59fb670bc8 or to || 2022-04-17 03:25:22 +02:00
28f57aa439 Fix shadowed declaration. 2022-04-17 03:20:34 +02:00
62c384b3a4 Almost completely ported the logic of the PaintWindow. 2022-04-17 03:18:09 +02:00
5e368ec978 Ported the logic for PaintCanvas. 2022-04-17 00:17:05 +02:00
3461d692d4 Node hierarchy port / implementation for PaintCanvas. 2022-04-16 22:11:06 +02:00
bbc671693a Fix adding the wrong child. 2022-04-16 21:01:04 +02:00
0d917718dd Implement / port PaintNavbar. 2022-04-16 20:57:42 +02:00
e540e4e414 Implemented the paint editor plugin. Also reimplemented PaintWindow's ui. 2022-04-16 19:08:19 +02:00
79aa630959 or to ||. 2022-04-16 02:58:02 +02:00
d0af0cb360 Added all paint classes to the build. 2022-04-16 02:54:22 +02:00
25d219a4a0 Const qualifiers and references for the paint module. 2022-04-16 02:35:03 +02:00
d98f9746e8 Ported the logic for quite a few classes of the paint module. 2022-04-16 01:25:02 +02:00
60048f3602 Also convert the leftover dialogs. 2022-04-15 20:05:56 +02:00
e70fb4a67e Created the rest of the skeleton classes for the paint module, and moved the code into them. 2022-04-15 19:40:12 +02:00
a662e12c3c Added the required (skeleton) c++ classes for the paint module. 2022-04-15 02:20:27 +02:00
fe318a61ea initial setup for the paint module. 2022-04-15 00:00:46 +02:00
0d6c6230fc Went through mdr ed, and made as much parameters references as I could. 2022-04-14 17:13:07 +02:00
3406a11f5c Went through mdr ed's code for bad poolvector assigns, hopefully fixed all of them. 2022-04-14 14:06:15 +02:00
386f52d84b Fix the connect actions. 2022-04-14 13:05:11 +02:00
fe18c0f02d Call the proper method. 2022-04-14 13:01:31 +02:00
7f2cb4da8e Fix uv island editing. 2022-04-14 12:14:59 +02:00
cd45c37881 Fix shadowed declaration warning. 2022-04-14 01:43:40 +02:00
93652c7f03 Fix crash in apply seams. 2022-04-14 01:26:16 +02:00
ea20b2fd09 Fix input and draw for the rect view nodes. 2022-04-14 01:04:20 +02:00
29972b6f6d Also ported the uv rect editor's ui. 2022-04-14 00:57:27 +02:00
dfa336c427 Fixed the uv previewer node. 2022-04-13 23:56:34 +02:00
7abae74f96 Cleanups and smaller fixes to MDIEd. 2022-04-13 23:54:26 +02:00
52f53b785d Fix signal already connected error. 2022-04-13 23:48:02 +02:00
68591bb15c Fix nonexistent signal error. 2022-04-13 23:45:16 +02:00
4dba63cb69 Properly give separate button groups for handle selection types and pivots. 2022-04-13 23:34:03 +02:00
4d49128e4c Bind a few methods to fix undo redo support, and events for mdr ed. 2022-04-13 23:31:23 +02:00
10b7d20418 Fix crash. 2022-04-13 23:10:48 +02:00
c7de534f03 Fully ported mdr editor's main ui. 2022-04-13 22:22:40 +02:00
34607ff21e Ported the actions buttons for mdr ed's ui. 2022-04-13 20:39:17 +02:00
496b1b7f34 Small cleanups, and enabled / registered the mesh data instance editor plugins. Editing itself seems to work, however the UI still need to be fixed. 2022-04-13 19:39:55 +02:00
cd3366f6c4 Implement the uv editor popup. 2022-04-13 18:23:43 +02:00
f930ee6063 Also update the SCSub file. 2022-04-13 17:42:33 +02:00
233fcf39ff Renamed the uv rect editor popup aswell. 2022-04-13 17:39:35 +02:00
4e025703f8 Renamed MDIEdUVEditor to MDIEdUVPreviewer. 2022-04-13 17:32:14 +02:00
bb4504d2f7 Finished the initial logic port for mdr ed's classses. 2022-04-13 14:59:40 +02:00
b0c2deab78 Work on the logic port for the rest of mdr ed's classes. 2022-04-13 02:08:30 +02:00
49d2b181a1 Initial logic port of mdr ed's uv editor. 2022-04-12 21:46:03 +02:00
0cc14121fa Added const qualifiers, and made everything I could references in the mesh utils class. 2022-04-12 13:20:19 +02:00
5b8a89216b Also port the logic in the mesh utils. 2022-04-12 13:04:53 +02:00
f5c1a5eec1 Ported the logic of the mesh outline generator. 2022-04-11 20:56:59 +02:00
4af170d9fb Fix shadowed declaration. 2022-04-11 15:10:28 +02:00
30a2cda543 Ported the logic of MDREDMeshDecompose to c++, and added it to the build. 2022-04-11 15:06:09 +02:00
8c1c9e53d1 Turned the remaining mesh data resource editor gdscript classes into skeleton c++ classes. 2022-04-11 13:42:49 +02:00
534d758c54 Removed mdr ed's icons and button groups. 2022-04-11 10:21:45 +02:00
eff1e7d5a9 Added skeleton classes for mesh data resource editor's utilities. 2022-04-11 10:17:54 +02:00
d3118e1d4b Initial skeleton conversion of mdr_ed_mesh_utils. 2022-04-11 02:35:31 +02:00
200b4b0405 Added skeleton classes for mesh data resource editor's uv rect editor. 2022-04-11 01:42:33 +02:00
6c6684b0c3 Added the world_generator, mesh_data_resoure_editor, My Godoxel fork, and mat_maker_gd addons into the modules to help with porting. 2022-04-10 21:14:56 +02:00
c7b653adc4 Removed the webp and webm modules. 2022-03-27 14:21:07 +02:00
089b16f281 Fix an another shadowed variable warning. 2022-03-24 22:43:58 +01:00
8300dbee0f Fix shadowed variable warning. 2022-03-24 22:23:49 +01:00
57ffe2211b Added material cache support for Voxelman, and Terraman's bake texture mesher step type. 2022-03-24 21:50:16 +01:00
69af01b0c6 Fix inconsistent override warning. 2022-03-24 11:55:45 +01:00
accd8458c8 Backported: Rename iterations_per_second to physics_ticks_per_second - Calinou - 937c1a716c 2022-03-24 11:10:56 +01:00
cc4dc1e5a8 Backported: Fix create skeleton bone position - Blackiris - 480543f681 2022-03-24 10:43:53 +01:00
da03f96abe Re-extracted the class docs. 2022-03-24 01:22:45 +01:00
327f58b236 Set up doc classes properly for the network synchronizer. 2022-03-24 01:22:14 +01:00
32f148ac0c Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
66d40632fe Fix uninitialized variable warning. 2022-03-23 15:23:17 +01:00
b4973c944d Fixed compile for all network synchronizer classes, and added them to the build. 2022-03-23 15:07:15 +01:00
75fbda2418 Fixed up netowrk synchronizer's DataBuffer, and added it to the build. 2022-03-23 13:57:14 +01:00
d1587aaa6b Removed bullet. 2022-03-23 13:28:35 +01:00
e16d80eecb Re-enabled the network synchronizer module, and started cleaning it / porting it. 2022-03-22 02:10:27 +01:00
c9b612f012 Added StringName as a variant type, with eventually the help of 3c0059650d . 2022-03-21 21:29:06 +01:00
b67082e9dd Added gdscript support for the new types . 2022-03-21 15:09:56 +01:00
6adee8f1b0 Added the NetworkedController & SceneRewinder module from https://github.com/godotengine/godot/pull/37200. It's disabled for now, it needs to be ported. 2022-03-20 23:30:30 +01:00
d9022a845c Removed TMeshInstance. 2022-03-20 14:15:53 +01:00
8dbfe124f7 Moved my module specific docs under a new central folder. 2022-03-20 12:30:04 +01:00
cff20866e4 Re extracted class docs. 2022-03-20 08:51:22 +01:00
e89f0b56dc After thinking about it removed the webrtc module alltogether. 2022-03-20 08:47:21 +01:00
ca1d12b6b6 Made WebrctPeerConnection instantiable by it's own. 2022-03-20 08:43:41 +01:00
ae9f5b9bee Fixed the remaining potential crashes found by the godot test tool. 2022-03-20 02:29:14 +01:00
e55f856fa2 Fixed more potential issues found by the tool. 2022-03-19 18:44:49 +01:00
0a5ed34bb7 Fixed lots of crashes found by godot's regression test tool throwing improper parameters at methods. 2022-03-19 13:52:08 +01:00
77ed14e2f8 Fix 2 runtime errors found by tools. 2022-03-19 10:23:56 +01:00
d740ef5d18 Finished cleaning up includes for the classes under the editor folder. I skipped removing a few that needed more changes to the headers / cpp files for now. 2022-03-19 04:08:34 +01:00
7fd581f987 An another set of header include cleanups for the classes in the engine directory. 2022-03-19 03:10:01 +01:00
bca78798ef Header include cleanups for the classes in the editor folder. 2022-03-19 02:25:58 +01:00
4d7df62b8e Clang format all files. 2022-03-18 19:00:13 +01:00
f8e54698e4 Include cleanups for resources. 2022-03-18 18:48:49 +01:00
49fcf7ad80 Removed unneeded variable from TerrainWorld's IntPos struct. 2022-03-18 17:51:50 +01:00
cc52a10ac7 Fix potential crash. 2022-03-18 17:19:59 +01:00
a3ee13ecbc Removed the jsonrpc module. 2022-03-18 16:53:11 +01:00
10bb377587 Removed the gdscript language server. 2022-03-18 16:47:53 +01:00
7b1eadb465 Removed the CALL macros. 2022-03-18 10:56:48 +01:00
4050779e1f Removed the CONNECT and DISCONNECT macros. 2022-03-18 10:32:50 +01:00
acf01d3cec Check if the ESS singleton exists before accessing it in CharacterSkeleton's set_entity_type. 2022-03-18 10:18:54 +01:00
029467ab2c More include and macro cleanups. 2022-03-18 04:10:09 +01:00
48805f5f8f Removed now unnecessary version.h includes. 2022-03-18 03:56:41 +01:00
1f0652741c More version check cleanups. 2022-03-18 03:46:14 +01:00
32acbf4252 Also check if the item's template is valid in Bag::add_item. 2022-03-18 03:44:08 +01:00
d3f5ed6511 Cleaned up the props module aswell. 2022-03-18 03:22:03 +01:00
dc34206f3a Cleaned up more version checks. 2022-03-18 03:08:46 +01:00
441f7a3694 Cleaned up props_2d's version checks. 2022-03-18 02:55:27 +01:00
3039645b4a Cleaned up Terraman's version checks. 2022-03-18 02:41:08 +01:00
24c8c121a5 Check if aura is valid in AuraData's _to_dict. 2022-03-18 02:22:23 +01:00
0e78fdbf03 Cleaned up Terraman2d from version checks. 2022-03-18 02:20:01 +01:00
ef952b88b7 More module cleanups. 2022-03-18 02:05:18 +01:00
77d4171dff More cleanups to voxelman. 2022-03-18 01:52:47 +01:00
d95760ac9e Cleanups to voxelman. 2022-03-18 00:54:25 +01:00
1f4f9c761e Version include cleanups to ESS. 2022-03-18 00:38:45 +01:00
12ea0b735a Add ERR_FAIL_INDEX macro to ActionBarProfile's remove_action_bar. 2022-03-17 23:11:53 +01:00
1bc3c2594c Same change to classes under modules. 2022-03-17 22:33:22 +01:00
30a413ca78 Format Entity.cpp. 2022-03-17 22:04:02 +01:00
95ce2f224f Null check the ESS singleton in Entity's update()/. 2022-03-17 21:49:14 +01:00
3965d70ac5 Moved more includes to cpp files. 2022-03-17 19:35:23 +01:00
13eb5ab431 Check if the ESS singleton is null in spell's constructor. 2022-03-17 14:22:23 +01:00
2c88c46101 Moved more includes to cpp files. 2022-03-17 11:28:57 +01:00
31e29ebd71 Check it the ESS singleton is null in LevelStatData's constructor. 2022-03-17 11:16:56 +01:00
5997c7dc4d Null check the Prop2DCache sincgleton in Prop2DMesher's constructor. 2022-03-17 10:31:08 +01:00
052027dce4 Moved more includes to cpp files. 2022-03-17 10:26:23 +01:00
48fc41e3c6 Check if the ESS singleton is present before accessing it in ItemTemplate's constructor. 2022-03-17 09:32:10 +01:00