Commit Graph

1244 Commits

Author SHA1 Message Date
9fad900a51 The world generator now will look up the a spawner node, and get the starting coordinates from it. 2021-12-27 03:50:11 +01:00
fbd232df1b Added the village npc spawner code to the current spawner resource. 2021-12-27 03:49:37 +01:00
82435d4c59 Added parent pos setup to the world generator resources. 2021-12-27 03:48:55 +01:00
a44e362e31 Switched back from godot physics to bullet for now. 2021-12-27 03:47:59 +01:00
808c8e97d3 Now terra chunks are actually properly generated by placing chunks on the world generator's grid. 2021-12-27 02:38:05 +01:00
0cbf540e30 RectViewNodes now convert between yup and ydown coordinate systems to store rect.position.ys. 2021-12-27 02:36:52 +01:00
0c96328005 Ported the current world generator to the new addon. Now the world in-game uses the new world generator's resource to generate the terrain. 2021-12-26 21:14:41 +01:00
3adfad40a2 Added a seed parameter to the world generation methods. 2021-12-26 19:08:45 +01:00
47c49b56ab Added the needed methods for terrain generation. 2021-12-26 19:05:48 +01:00
8453518e8b Added a class selector to the world editor on add. 2021-12-26 18:52:23 +01:00
4ff14380a1 Added a new WorldGeneratorSettings resource which can store and load in world generator related classes from folders. 2021-12-26 18:51:46 +01:00
9cac983ff5 Added a new get_editor_class to the WoirldGeneratorBaseResource, and now the RectViewNode will also render it if it's not an empty string. 2021-12-26 18:50:09 +01:00
f739cca1f4 Now the added resource's rect gets recalculated on add_content() instead in create_content() 2021-12-26 18:48:29 +01:00
0a0f4ee865 The RectEditor now will only set a margin of max 50. 2021-12-26 13:10:15 +01:00
193ed69fef Also made the delete and duplicate buttons work for the zones editor and continent editor. 2021-12-26 00:28:32 +01:00
cc6669bb12 Implemented delete and duplicate buttons in world. Also made sure that the inspectors update properly after the edited resources change. 2021-12-26 00:25:30 +01:00
829b01b72f Set up proper drawing for RectViewNode. it grabs the required parameters from new methods in WorldGenBaseResource. 2021-12-26 00:03:17 +01:00
61b66b4109 Reduce the scale border's size to 5. 2021-12-25 23:41:50 +01:00
7b4f044f43 Fixed keeping zoom in RectView. 2021-12-25 23:34:33 +01:00
11aa1e1b6a Set up the rect property to expand horizontally. 2021-12-25 23:20:40 +01:00
a8dfb9a156 Fix label. 2021-12-25 23:14:51 +01:00
10ee9bb44a Similar cleanups to the SubZone editor. 2021-12-25 23:14:02 +01:00
1fa6903106 Cleaned up the methods in the Zone editor. Also fixed a few smaller usability issues. 2021-12-25 23:09:56 +01:00
900f402370 Set up the subzone editor. 2021-12-25 12:31:36 +01:00
0b74e33fc8 Set up the zone editor. 2021-12-25 12:18:59 +01:00
200a030882 Zero the positions of the created contents. 2021-12-25 11:30:22 +01:00
c21970b82f Also add the initial rect size setup code to Continent and Zone. 2021-12-25 03:26:33 +01:00
b7b36d47ab Set the selected continent into the widgets. 2021-12-25 03:25:42 +01:00
b30016bc28 Set up continent select dropdown. 2021-12-25 02:52:21 +01:00
65562c6523 Set the world into the continent editor. 2021-12-25 02:33:43 +01:00
c34b629b26 Move World's setup to the World class. 2021-12-25 02:32:00 +01:00
ba1c85b729 Set up the Continent editor's base ui. 2021-12-25 02:29:30 +01:00
13428b9a33 The world tab is now it's own scene. 2021-12-25 02:18:20 +01:00
87e4318e06 Implemented editing the names of resources in the DataList widget. 2021-12-25 02:15:17 +01:00
4cc9baf23b When adding a continent the world will set up a base size now. 2021-12-25 01:55:52 +01:00
6c438c97f4 Set the edited resource's rect after drag. 2021-12-25 01:51:35 +01:00
d07f9c4949 Fix RectViewNode's _draw(). 2021-12-25 01:48:56 +01:00
a4367ee257 Fix dragging. 2021-12-24 22:32:45 +01:00
9641d29001 Fix cursor switching on the borders in RectViewNode. 2021-12-24 22:25:56 +01:00
1a3a95809a Ported drag and resize code from godot's window dialog as a base for RectViewNode. 2021-12-24 22:20:30 +01:00
9aa18a9278 Implement zoom for RectView. 2021-12-23 18:08:13 +01:00
dd7024c0ed Basic RectView functionality. Renamed RectEditorNode to RectViewNode. 2021-12-23 17:45:36 +01:00
6b388b3c1b Removed stray print. 2021-12-23 16:51:59 +01:00
9c4c30b821 RectView basic setup. 2021-12-23 16:46:54 +01:00
c2e75ef147 Added a rect2 property. And started working on the rect editor. 2021-12-23 00:45:32 +01:00
3f7f5c0e07 Implement basic data list node. Also fix error spam. 2021-12-22 16:52:06 +01:00
afc929350b Work on the world editor. Also added a property editor similar to mat_maker_gd's nodes. 2021-12-22 16:15:39 +01:00
e44d367c0e Now world generator's resources inherit from a new base resource. 2021-12-22 16:14:26 +01:00
3524c3bf7f Ported EditorZoomWidget from godot4. 2021-12-22 11:27:15 +01:00
855b1120ab Add some exports to world generator's resources. 2021-12-22 10:03:55 +01:00
bbcd340cff Add a space to the text of the button that appears on the bottom. 2021-12-22 10:02:55 +01:00
e3f73103af Fix error. 2021-12-21 21:57:15 +01:00
5723a11825 Initial class and plugin setup. 2021-12-21 21:50:22 +01:00
c3093be0d4 Added a new world generator addon. 2021-12-21 21:25:35 +01:00
a643072963 Fixed missing VoxelWorld class error. 2021-12-19 14:20:47 +01:00
56866e65ba Updated mat_maker_gd. 2021-12-18 20:44:28 +01:00
991f327682 Fix 2 errors in mesh_data_resource_editor when a mesh data resource is empty. 2021-11-17 15:31:04 +01:00
baf4c89ce1 Small cleanups to transforms.gd. 2021-11-12 01:04:39 +01:00
0cb0559118 Color tiler node for mat_maker_gd. 2021-11-06 11:50:39 +01:00
1b9450cc74 Tiler node for mat_maker_gd. 2021-11-05 22:15:30 +01:00
b78f3c8358 Added 'pass' to cancel_render_and_wait, so if the lines that require ThreadPool are commented out it will not complain about scopes and indents. 2021-10-31 13:03:25 +01:00
547197e78f Improved the threading logic of MMMaterial's render by quite a bit. Also updated ThreadPool to get the new cleanups / fixes / api improvements required. 2021-10-31 12:37:51 +01:00
2a2918ddb7 Now the render can be cancelled. 2021-10-31 11:37:16 +01:00
ccc0a59a58 Return the default color if no image is set in image universal properties. 2021-10-31 11:30:14 +01:00
ee03da9a85 Implemented threaded generation for mat_maker_gd using ThreadPool. 2021-10-31 11:29:36 +01:00
d63dbbbf68 Math node for mat_maker_gd. 2021-10-30 15:52:14 +02:00
2dcac48022 fill_to_color and fill_to_random_color nodes for mat_maker_gd. 2021-10-30 11:40:09 +02:00
5ba662d628 Fill_to_random_grey node for mat_maker_gd. 2021-10-30 02:12:55 +02:00
170f50c31f Fill_to_position, fill_to_size, and fill_to_uv nodes for mat_maker_gd. 2021-10-29 18:20:21 +02:00
1d27ddd159 Greyscale quantize and tonality nodes. 2021-10-27 18:26:06 +02:00
f17de5a15d circle_map, kaleidoscope, mirror, repeat, rotate, scale, shear, transform, and translate nodes for mat_maker_gd. 2021-10-27 13:19:56 +02:00
96f2646ccb Decompose node. 2021-10-26 23:22:25 +02:00
5cf570a3d0 Swap channels node. 2021-10-26 23:14:35 +02:00
db5d96a4cd Combine node. 2021-10-26 23:00:52 +02:00
713fcfb490 Invert node. 2021-10-26 22:56:10 +02:00
77d2e64fe1 adjust_hsv node. 2021-10-26 22:51:51 +02:00
583415d5fb brightness_contrast node. 2021-10-26 17:16:19 +02:00
16910b5110 Fixed a few copy-paste errors, and removed 3 old nodes with test implementation. 2021-10-26 17:16:06 +02:00
1c988c54ed sdf3d_op_revolution and extrusion nodes. 2021-10-26 14:08:18 +02:00
182034fd82 sdf3d_op_morph node. 2021-10-26 13:52:55 +02:00
9252c7b21f sdf3d_op_elongation and rounded nodes. 2021-10-26 13:42:34 +02:00
1c8af1f3f7 sdf3d_op_repeat and circle_repeat nodes. 2021-10-26 13:26:59 +02:00
6429b4e725 sdf3d_op_bool and smooth_bool nodes. 2021-10-26 12:53:23 +02:00
ea9b0a1b2e sdf3d rotate, translate, and scale nodes. 2021-10-26 11:57:20 +02:00
32f80f288a sdf3d_shape_capsule node. 2021-10-26 11:37:08 +02:00
c7a2fea2c4 curve_base now has different initialization methods for the curve. sd_shape_line now initializes it's curve to the 1,1 variant. 2021-10-26 11:36:48 +02:00
920d4895e1 Fix and index in curves.gd. 2021-10-26 11:35:45 +02:00
6c5f2c0e95 sdf3d_shape cone and asd3d_shape_torus nodes. 2021-10-26 11:05:57 +02:00
709dd8081d sdf3d_shape_cylinder node. 2021-10-26 10:54:22 +02:00
e7556f14de sdf3d_shape_box node. 2021-10-26 10:47:27 +02:00
2f4f4888cf sdf3d_color node. 2021-10-26 10:38:57 +02:00
c5c75a4d40 Removed the ptex files. 2021-10-24 13:39:16 +02:00
783532fe93 Recreated the rest of the textures which was made with material maker wityh mat_maker_gd. 2021-10-24 13:38:49 +02:00
a0a54b388f Rename the row_col parameter to col_row in brick as it was supposed to be. 2021-10-24 13:33:27 +02:00
23fd87a294 Recreated the grass texture in mat_maker_gd. 2021-10-24 13:14:49 +02:00
facdcb6469 Now implemented node deletion. 2021-10-24 12:49:49 +02:00
b609b3caa4 Fixed the alpha of the dirt texture with the new fill channel node. 2021-10-24 11:59:38 +02:00
a165061608 Added a new fill channel node. 2021-10-24 11:48:38 +02:00
daf42e692c Apparently the blend node handles transparency properly, the original dirt texture had the same transparency issue. (I'll fix that later.) So added a make_tileable node to it, and made it export the texture. 2021-10-24 02:42:03 +02:00
33be950fd6 Make texture slots scale their images. Also their size is now set to 128x128. 2021-10-24 02:37:14 +02:00
898ec5a387 Small improvement for the blend node. It still doesn't handles transparency properly. 2021-10-24 02:15:32 +02:00
dfa3b7ed51 Reworked the colorize node, this fixes it's output via connections. 2021-10-24 01:59:20 +02:00
baa30dd3f5 Recreated the dirt texture with mat_maker_gd. 2021-10-24 01:18:40 +02:00
676de9083c make_tileable node. 2021-10-24 01:01:15 +02:00
a5e81bc69c Gaussian blur node. 2021-10-24 00:44:02 +02:00
61c6ea476e Emboss node. 2021-10-23 21:36:41 +02:00
2f4912c2b9 blend node. 2021-10-23 20:10:14 +02:00
e42a25a53b sdf3d_render and sdf3d_sphere nodes. 2021-10-23 00:18:44 +02:00
577e9d705a Curve node. 2021-10-22 23:24:29 +02:00
fc8fa79624 sd_op_morph node. 2021-10-22 11:06:17 +02:00
27ba62e20a sd_op_circle_repeat node. 2021-10-22 11:01:35 +02:00
8a896d0e3d sd_repeat node. 2021-10-22 10:51:06 +02:00
d570d8aea3 sd_annular_shape node. 2021-10-22 10:15:12 +02:00
d2dd31ae72 sd_op_ronded_shape node. 2021-10-22 09:29:34 +02:00
d4da602f65 sd_op_smooth_bool node. 2021-10-21 21:41:18 +02:00
c849944f2b Fix typo. 2021-10-21 21:39:48 +02:00
89b6600dd9 sd_op_bool node. 2021-10-21 21:33:49 +02:00
dc56ca252b sd_tf_scale, sd_tf_rotate, sd_tf_translate nodes. 2021-10-20 20:22:44 +02:00
6f2437279e Fixed curves, and the curve editor, and added curve support for sd_shape_line. 2021-10-20 19:53:05 +02:00
3841c50674 Added sd_shape_line node. Initial setup for curves, but they don't yet work properly with it. 2021-10-20 18:33:11 +02:00
bb7fee062c Make sure that polygon's changed method is called even when the control points were only moved. 2021-10-20 18:06:02 +02:00
17d0dc99dd Actually export the points in polygon base. 2021-10-20 17:59:50 +02:00
5d0c999103 Emit changed events properly in sd shapes. 2021-10-20 17:57:42 +02:00
1e57dba26e Better output text for the arc and circle shape nodes, and removed sdf.gd. 2021-10-20 17:47:40 +02:00
a690c76612 Made the polygon editor work with my setup, and added sd_polygon_shape node. 2021-10-20 17:46:31 +02:00
c082ee9a60 Added the curve editor and polygon editor from Material Maker. I only fixed compile so far. 2021-10-20 11:54:54 +02:00
df1a1c59a2 sd_shape_arc and sd_shape_rhombus nodes. 2021-10-19 22:42:03 +02:00
2984eef392 sd_shape_box node. 2021-10-19 22:20:45 +02:00
01c886d56f Now sd_shape_circle will emit changed events properly for it's type. 2021-10-19 18:26:12 +02:00
bcd0fdbbb1 Added sd show and sd shape circle nodes. 2021-10-19 18:04:00 +02:00
47cb1b8086 Voronoi node. 2021-10-19 15:38:12 +02:00
8feda525db FBM noise node. 2021-10-19 13:43:35 +02:00
fb502505a3 Anisotropic noise node. 2021-10-19 13:08:50 +02:00
7ef34acfbf Color noise node. 2021-10-19 12:44:02 +02:00
31547bf86f Color value node. 2021-10-19 12:21:56 +02:00
98ade190f9 Value node. 2021-10-19 12:13:15 +02:00
0cd3f2d8db Noise node. 2021-10-19 11:15:01 +02:00
dade6413b3 Cleaned up the noises folder. 2021-10-18 20:20:29 +02:00
a317240526 Scratches node. 2021-10-18 20:06:49 +02:00
0e07f2388c sine_wave node. 2021-10-18 19:39:51 +02:00
63713bc6cd Fix random color output on the bricks node. 2021-10-18 19:28:06 +02:00
c91c947871 Beehive node. 2021-10-18 19:26:54 +02:00
6ea422c166 IChing node. 2021-10-18 18:44:39 +02:00
a186c71f9a Runes node. 2021-10-18 18:14:08 +02:00
2b2c485992 Weave pattern node. 2021-10-18 17:59:57 +02:00
e6468b8226 Added the bricks node. 2021-10-18 15:32:30 +02:00
095fcab86c Truchet node. 2021-10-18 14:16:50 +02:00
4f6829beb3 Pattern node. 2021-10-18 14:01:18 +02:00
c634c3b882 Colorize node. 2021-10-18 13:17:25 +02:00
e04f17dac2 Added the image picker button from Material Maker. Also added image node. 2021-10-18 12:33:31 +02:00
e036935e4b Removed a few unneeded classes. 2021-10-18 11:01:38 +02:00
c9edde9ef9 Added uniform and greyscale_uniform nodes for mat_maker_gd. 2021-10-18 11:00:13 +02:00
01bb81675e Lots of work on gradient_type_4. It doesn't work properly yet, however the current implementation produces a cyberpunk-ish neon like effect, so I also saved it as gradient_type_5 for the time being. 2021-10-17 21:01:54 +02:00
56aa47ccc3 Radial gradient node. 2021-10-17 17:41:50 +02:00
f74ad34219 Implemented circular gradient node, and fixed circular gradient calculation. 2021-10-17 17:40:16 +02:00
6a241d3051 Split the new gradient node into a gradient_base and gradient nodes. 2021-10-17 17:23:06 +02:00
4282cc8385 Implemented the gradient node. Made Material Maker's gradient editor work with my setup. 2021-10-17 17:18:41 +02:00
d23c7b00b8 Turned the widget scripts into tool scripts. 2021-10-17 00:58:07 +02:00
7dfdf6c1ce Also added the icons, and fixed all resource paths. 2021-10-17 00:35:35 +02:00
45fc6bcdbd Added the color picker, the float edit, and the gradient editor widgets from material maker. 2021-10-17 00:11:51 +02:00
7ab05bf407 Renamed colors.gd to filter.gd. 2021-10-13 18:51:34 +02:00
bfcf4b0475 Went through the rest of the .mmg files. 2021-10-13 18:48:59 +02:00
bf0afa6ad6 Tuned most of the remaining .mmg files into comments. 2021-10-13 12:54:29 +02:00
8a907bfb6b Turned a lot more mmg files into comments. 2021-10-13 00:38:05 +02:00
a25d43ae29 Turned all except one sdf related mmg files into comments. In a more crude way than before. 2021-10-12 22:23:31 +02:00
c9fe275357 Processed a 4 more mmg files. 2021-10-12 19:59:24 +02:00
c54948d81a Turn more .mmg files into comments. 2021-10-12 19:04:40 +02:00
ea795998cf Comments from weave.mmg and weave2.mmg. 2021-10-12 18:20:07 +02:00
3ceb7a3236 Comments from the rest of the sdf3d mmg files. 2021-10-12 17:54:31 +02:00
666f735379 Comments from sdf3d_color.mmg. 2021-10-12 16:48:51 +02:00
56ebdb0ec5 Comments from iching.mmg. 2021-10-12 16:36:20 +02:00
e6d4b2b755 Comments from sdf3d_angle.mmg. 2021-10-12 13:20:15 +02:00
33e8a8adb0 Comments from sdf3d_circle_repeat.mmg. 2021-10-12 13:07:06 +02:00
4ee9c69d15 Comments from sdf3d_boolean.mmg. 2021-10-12 12:24:38 +02:00
d75ee3dac2 Comments from sdf3d_torus.mmg. 2021-10-12 12:16:46 +02:00
95eb126b8f Comments from sdf3d_plane.mmg. 2021-10-12 12:11:49 +02:00
55c23bc6b2 Comments from sdf3d_cylinder.mmg. 2021-10-12 11:58:46 +02:00
2eabdc5536 COmments from sdf3d_rotate.mmg. 2021-10-12 11:27:32 +02:00
a5b96ad8f1 Comments from scratches.mmg. 2021-10-12 11:12:20 +02:00
eacc08e69a Comments from runes.mmg. 2021-10-12 10:58:39 +02:00
13e3d248d0 Notes from sdf3d_repeat.mmg. 2021-10-11 20:12:34 +02:00
52d73a0abd Comments from sdf3d_cone.mmg. 2021-10-11 16:41:39 +02:00
8fff2bc0e9 Comments from sdf3d_capsule.mmg. 2021-10-11 14:14:05 +02:00
1a65e35471 Notes from sdf3d_sphere.mmg. 2021-10-11 13:40:13 +02:00
3f12c7c23e Notes from sdf3d_box.mmg. 2021-10-11 13:30:58 +02:00
b04d8b7fc6 Notes from uneven_bricks.mmg. 2021-10-11 13:18:24 +02:00
b31eb46120 Notes from bricks.mmg. Also improvements to beehive notes. 2021-10-11 12:55:18 +02:00
b622bb2f73 Turned pattern.mmg to notes. 2021-10-11 11:47:00 +02:00
d6148fd43c Notes for the beehive pattern. 2021-10-11 11:01:42 +02:00
f6e1207c3e Notes for noise_fbm.gd. 2021-10-11 10:51:00 +02:00
b077bc83ac Add relevant comments from radial_gradient.mmg and circular_gradient.mmg. 2021-10-11 10:20:56 +02:00
44df757149 Add relevant thingd as comments from gradient.mmg to gradients.gd. 2021-10-10 10:39:23 +02:00
bfd32409d2 Added more notes to colors.gd, and removed the corresponding material maker mmg files. 2021-10-10 09:00:39 +02:00
c07ca3d8d8 Implement restoring node connections on opening an MMMaterian in mat_maker_gd's editor. 2021-10-09 19:30:57 +02:00
da126d1d45 Removed the input and output slot type parameter from the simple MMGraphNode property methods. Input and output was only available with universal properties anyway. 2021-10-09 19:15:15 +02:00
babee4f93a Fix division by zero error in shape.gd. 2021-10-09 19:07:50 +02:00
a0a2a81acf Implement type conversions for universal properties. 2021-10-09 19:07:32 +02:00
956d35fd84 Add support for disconnection and connecting universal properties via the mat_maker_gd editor plugin. 2021-10-09 18:48:01 +02:00
8758111bf6 Renamed output.gd to output_image.gd and implemented it's logic. 2021-10-09 14:47:55 +02:00
52858a6970 Add line edit slot support to mm_graph_node. 2021-10-09 14:47:26 +02:00
ebef2b0fd5 Update the test resource. 2021-10-09 14:09:44 +02:00
56a6bb75a9 The image property in shape.gd is not supposed to be exported. 2021-10-09 14:07:33 +02:00
c816f0e0fe Finish up the new mat_maker_gd input/output notification api and made shape use it. Now shape's image updates whenever a property changes. 2021-10-09 14:04:09 +02:00
7fd3ccd4ad Generic image rendering / property connection api for mat_maker_gd. 2021-10-09 13:33:59 +02:00
51dfad5018 Added image universal property to shape.gd. Not yet used. 2021-10-07 15:48:38 +02:00
6f5c7395ba Added a new output node. 2021-10-07 15:47:09 +02:00
e31aedbb1b Now add slot universal methods in MMGraphNode only take an universal property as argument. Also added an universal texture slot. Had to add init_properties and _init_properties, and had to change register_methods to _register_methods in subclasses. 2021-10-06 10:30:22 +02:00
8654865b1b Add everything needed to construct slots to the universal property. 2021-10-06 09:53:40 +02:00
efc5d8ae9c Added image type to MMNodeUniversalProperty. 2021-10-06 09:46:34 +02:00
f1afa03c66 Removed obj, getter and params from MMNodeUniversalProperty, now instead it will have an another MMNodeUniversalProperty ref as input_property. Also smaller simplifications. 2021-10-06 09:27:22 +02:00
1611efc9d1 Moved the SlotTypes enum from MMNode to MMNodeUniversalProperty. 2021-10-06 09:15:48 +02:00
9f24edd50f Now shape's radius and edge is using universal property. 2021-10-06 00:56:13 +02:00
cca43432f3 Add uv parameter to get_value, and call emit_changed() in get_default_value in the universal property. 2021-10-06 00:53:19 +02:00
04c3098390 Fix issues with universal property handling in MMGraphNode. 2021-10-06 00:51:52 +02:00
ebb8098ba2 Initial shapes node implementation / cleanup. It still needs universal inputs. 2021-10-06 00:24:13 +02:00
0923f1095b Enum slot support for mat_maker_gd. 2021-10-06 00:23:24 +02:00
27471b8bdf Universal input support for mat_maker_gd. Nothing is using it yet, so it might need fixes. 2021-10-05 23:14:54 +02:00
88aa8e84ac Optional range parameter for some of ht eadd slot methods. 2021-10-05 20:59:47 +02:00
59c43c0cab Now all add_slot methods return the slot index. 2021-10-05 20:21:11 +02:00
0548a8b7fd Did the same to noise_voronoi.gd. 2021-10-05 17:54:06 +02:00
28e7719c52 Add the original shader code top colors.gd aswell. 2021-10-05 17:27:15 +02:00
a80d0334a1 Updated noise_fbm code based on the new shaders. 2021-10-05 13:33:27 +02:00
49f9cf7d01 Added the shader code for noise_fbm aswell. 2021-10-05 13:26:40 +02:00
2074729364 Missed one. 2021-10-05 11:57:40 +02:00
057ad6c4bc Fix a few newlines. 2021-10-05 11:56:51 +02:00
1bc5139058 Merge branch 'master' of github.com:Relintai/broken_seals 2021-10-05 11:54:28 +02:00
9f41deb164 Added the current shader code from material maker as a comment to shapes. 2021-10-05 11:54:16 +02:00
b55487d6df Added a vector2 slot to MMGraphNode. 2021-10-04 18:29:11 +02:00
54003493f2 Fix errors. 2021-10-04 15:14:41 +02:00
e8a3874cfb Added universal slot type. 2021-10-04 15:10:38 +02:00
679e992ef8 Add step as a parameter to add_slot_float. 2021-10-04 15:00:00 +02:00
ef784088b4 Implemented int and float slots. 2021-10-04 14:58:15 +02:00
634d28b713 Added slot color support. 2021-10-04 13:28:00 +02:00
2eb6f789dd Added a SlotTypes Enum. 2021-10-04 13:27:29 +02:00
a13908fcec Also pass the seed to get_value for, and cleaned up perlin.gd. 2021-10-04 13:15:18 +02:00
0943dc32f8 Aldo pass slot_idx to get_value_for. 2021-10-04 13:11:08 +02:00
4b334a6ad6 Initial slot api for MMGraphNode. Already supports images. Also implemented the image generation helper methods for MMMaterial and MMNode. 2021-10-04 13:09:43 +02:00
537d44bc63 Now the editor loads and created nodes from MMNodes, and also implemented MMNode and graphnode creating logic for the add button/dialog. 2021-10-04 11:55:47 +02:00
1374df2b59 Not mat maker nodes inherit fromMMNode instead of TextureRect. 2021-10-04 11:54:52 +02:00
c5621036b2 Added an Add button to the mat maker's editor. 2021-10-04 11:27:35 +02:00
0c099d3325 Added a new MMGraphNode script. 2021-10-04 11:24:47 +02:00
137fd29f35 Also add MMMaterial as a custom type. 2021-10-04 11:24:02 +02:00
5bb4822164 MMNode now has a class_name declaration. 2021-10-04 11:23:43 +02:00
96e07af946 Removed the test scenes from mat_maker_gd. 2021-10-04 10:12:47 +02:00
059cabc48b Main nodes for mat_maker_gd and Initial setup for an editor plugin. 2021-10-03 19:56:35 +02:00
46dae7373b Moved color related methods to a new colors.gd file. 2021-10-03 17:12:13 +02:00
44bdbeb56d Moved shapes to a new shapes.gd file. 2021-10-03 17:04:54 +02:00
55f85a9b2d Moved the rest of the gradient related code to gradients.gd. 2021-10-03 17:02:07 +02:00
0fc71e0f2c Moved circular gradient calculations to gradients.gd. This time the logic had to be changed extensively and the new logic still has bugs. It will be fixed later. 2021-10-03 13:41:31 +02:00
b3604ffebc Same change to sdf3d. 2021-10-03 10:10:56 +02:00
2f521f2998 Moved sdf2d stuff to a new sdf2d script. 2021-10-03 01:07:39 +02:00
743e92ad55 Finished patterns. 2021-10-03 00:23:55 +02:00
cb7fd0a873 Moving pattern related things to a central patterns.gd. 2021-10-02 19:48:45 +02:00
5129cda7f1 Same change to perlin related calculations. 2021-10-02 18:45:29 +02:00
735b1f67cd Moved every voronoi related calculations to a new class. 2021-10-02 17:20:26 +02:00
fdac5e5e85 Moved all fbm related calculations to a new noise_fbm class. 2021-10-02 16:59:50 +02:00
1d6a95d578 Moved even more things to commons.gd. 2021-10-02 15:38:12 +02:00
01fd374344 Moved a lot more things to Commons.gd. 2021-10-02 10:39:30 +02:00
e4eccdc034 Simple nodes are using Commons.gd aswell. 2021-10-01 23:37:14 +02:00
f3504fd634 SDF3d also uses Commons.gs now. 2021-10-01 23:32:11 +02:00
15971442d0 Sdf also uses Commons.gd. 2021-10-01 23:30:23 +02:00
0869d1096b Patterns now also use Commons.gd. 2021-10-01 23:24:08 +02:00
bb338ea1aa Nises now also use Commons.gd. 2021-10-01 23:07:05 +02:00
1e621a8278 Filter nodes now use the common methods from Common.gd. 2021-10-01 22:41:03 +02:00
50b7575ef9 Added Commons.gd to store common static methods for mat_maker_gd. 2021-10-01 22:39:22 +02:00
69767cd08b Reorganize mat_maker_gd. 2021-10-01 22:04:09 +02:00
88caf0d31f Added the color-palette plugin from the AssetLib. 2021-10-01 10:17:08 +02:00
bc1c8b2718 Created an addon from https://github.com/Relintai/mat_maker_gd . (Only the ported stuff). Also took the nodes from the newest https://github.com/RodZill4/material-maker . 2021-10-01 00:54:13 +02:00
96fff0331e Mesh data resource editor now uses MeshUtils to uv unwrap meshes. Removed my half-finished unwrapping code. 2021-09-29 11:27:42 +02:00
321302e9c5 Committing image .import files as they get a new property stored on reimport. 2021-09-29 11:24:07 +02:00
410161831f Bit more experimentation. 2021-09-28 14:54:26 +02:00
626b02dc94 Bit more work on uv unwrapping. 2021-09-28 14:38:51 +02:00
a6caaadb38 A bit more work on uv unwrapping. 2021-09-27 19:27:12 +02:00
1260374274 Bit more work on uv unwrapping. 2021-09-27 18:24:16 +02:00
3a13c1e21b Added uv normalization to the unwrap algorithm. Also now it sets the new uvs to the mesh data resource. Doesn't work properly yet though. 2021-09-27 14:43:57 +02:00
e5de63c421 Initial uv layout implementation. 2021-09-27 14:15:17 +02:00
660933915b More work on uv unwrapping. 2021-09-27 12:52:33 +02:00
a2208d0489 More work on the uv unwrapping algorithm. 2021-09-27 12:38:57 +02:00
2c266711a3 I think I figured out a way to uv unwrap meshes for the mesh data resource editor. Started implementing it. Mesh partitioning is done. 2021-09-26 23:02:51 +02:00
ed3c6eb19d Use the forward_spatial_gui_input variant which has the index parameter in mesh data resource editor by default. 2021-09-26 20:04:42 +02:00
eee70dac69 Removed the bone_editor addon, as now the engine has a skeleton editor built in. 2021-09-26 17:23:00 +02:00
6062255177 Updated the engine to the latest. Also removed "as" casts after get_node_or_null-s, as now when they return null you get an error. 2021-09-22 00:11:19 +02:00
8e0e86ef39 Work on the mesh data resource editor plugin. Also updated the mesh data resource module to the latest. 2021-09-13 18:47:56 +02:00
74b35246c8 Now the mesh data resource addon actually shows uvs in the uv editor. 2021-09-13 12:32:33 +02:00
de97b132a2 Fixed the set rest pose implementation. 2021-09-13 11:27:20 +02:00
878f045f92 Added my seketon editor test scene. 2021-09-12 23:18:26 +02:00
d9e0ed3741 Initial set rest pose implementation for the bone editor. Doesn't work properly yet. 2021-09-12 23:18:05 +02:00
242321fd7a Bone hierarchy editing support. 2021-09-12 15:52:22 +02:00
6c32deb131 Now the bone editor addon can create bones. 2021-09-12 15:28:40 +02:00
b181be5ddf Fix error spam due to missing method. 2021-09-06 12:26:31 +02:00
9fb8e01314 Fix error printed to the console on clients. 2021-08-31 02:00:49 +02:00
4f7cb3c904 Fixed networked movement. 2021-08-31 01:57:32 +02:00
9ba79d9dc4 More work on fixing networking. Also updated ESS to get the fixes from it too. 2021-08-31 00:40:45 +02:00
288eaabe18 Updated ESS to get the Entity controller property rework. 2021-08-30 20:18:29 +02:00
e6d21cbb8a Remove the nameplate if the entity gets controlled by the player and it wasn't before. 2021-08-30 17:45:40 +02:00
67b3ce48f5 Work on fixing networking. 2021-08-30 00:35:27 +02:00
c0280ce6f3 Don't spawn mobs at all during world generation on a client. 2021-08-29 23:38:15 +02:00
f8803b99ab Fix update_visibility in PlayerGDBase. Also fix spawn_for in the entity spawner. 2021-08-29 23:32:54 +02:00
3dd4f4592a Fix setting up network_owner in the spawner. 2021-08-29 21:39:51 +02:00
fcf4e520e9 Now the generated terrain and dungeons are actually seeded. 2021-08-29 19:38:58 +02:00
715e4f209f Don't spawn trees in the 0,0 chunk. 2021-08-29 11:43:27 +02:00
026652931b Physics bodies (the dungeon teleporters) on windows and even wine doesn't receive the mouse click events properly. So temporarily added a different way to detect clicks on them for windows. 2021-08-28 12:06:10 +02:00
3b3650c851 Bump version. 2021-08-28 10:36:58 +02:00
6b36577aa3 Spawn mobs into the dungeons. 2021-08-28 00:55:59 +02:00
12e7618cd3 Now the dungeons will delete themselves when their teleporter goes out of range in the world. (The world is disabled while in a dungeon, so they won't despawn while the player is inside.) 2021-08-28 00:29:24 +02:00
c6ae7518c0 Deactivate / activate the world on teleporting to a dungeon. 2021-08-28 00:09:05 +02:00
9a8d658643 Now dungeons and teleporters get spawned in the world. They use placeholder graphics for now. 2021-08-27 23:07:58 +02:00
4b5f6253db The dungeon will now spawn plugs. 2021-08-27 19:30:27 +02:00
99bab47f9f Implemented room overlap checks for the building. It's only 2d for now. 2021-08-27 01:05:03 +02:00
78c08c4f28 Re-generate room points for all the test rooms, and also re-export them to props. 2021-08-26 20:54:10 +02:00
7ee9a14b01 Small changes to the test dungeon. 2021-08-26 00:18:39 +02:00
4f02de36d9 Material cache support for the character. 2021-08-26 00:15:30 +02:00
1d5fff0f06 Figured out room transforms. 2021-08-25 01:03:27 +02:00
2b2d175a66 Initial Building implementation. The room transforms are still broken, will figure them out later. 2021-08-24 21:10:32 +02:00
1b492b863f Added more test rooms and started working on the dungeon class. 2021-08-20 23:53:09 +02:00
861676531b Exported the test rooms into props. 2021-08-18 19:02:32 +02:00
65fba11bcd Remade the test rooms with TiledWalls. Also committing the rest of the test stuff I made during the last few days to test the portal system. 2021-08-18 17:54:43 +02:00
f83e53b0a1 Added a test room to help with implementing portal and room support to the prop system. 2021-08-12 20:53:13 +02:00
583fadae70 Updated the props module to get the automatic lod change support to PropInstanceMerger. 2021-08-12 18:47:07 +02:00
70a1ebef4c Updated the props module. Now when the scene to prop conversion tool re-converts props the editor will pick up the changes without a restart. 2021-08-11 20:36:24 +02:00
60e7d4af78 Updated the props module, I reimplemented vertex color lights + rao for PropInstanceMerger. Also updated mesh_utils, MeshMerger did not use vector write proxies. 2021-08-11 19:20:26 +02:00
94681037ff Added a few more small test prop scenes. 2021-08-10 19:10:01 +02:00
364dea8159 Disabled the mesh data resource editor addon. 2021-08-10 19:09:40 +02:00
c16bb42ea1 Updated the props module to get the PropCache singleton rework. Set up the project settings for it. 2021-08-09 22:13:18 +02:00
d1cfc79887 Bump version to 0.3.5. 2021-08-08 21:13:21 +02:00
fae48b30cf Updated Terraman to get the new prop texture merging/caching support and texture packer as I added const and const references to it's api wherever possible. 2021-08-08 14:11:14 +02:00
5228fbe0d2 Created a prop with the other tree texture. 2021-08-07 17:58:19 +02:00
d56b96bf24 Turn on collision for the tree. 2021-08-07 14:41:43 +02:00
7476d08ed2 Updated Terraman (and the engine) to get JobSteps support for PropJob. This also fixes the error spam during mesh generation. 2021-08-07 13:56:24 +02:00
86511cdd26 Temporarily set the tree's texture to the prop material, and also added prop materials to the library. 2021-08-07 11:33:14 +02:00
522242182c Let TerraWorld apply voxel scale to the tree. Also now the tree's scale's random range is a lot smaller. 2021-08-07 11:32:23 +02:00
f29445bdf6 Now the trees are spawned with terraman's prop system. It does need some fixes though. 2021-08-07 10:14:17 +02:00
885ba9e4d4 Removed one of the two tree meshes as they are the same. 2021-08-07 10:07:41 +02:00
254fb23d98 Now trees will spawn on grass. Currently it's done with nodes/mesh instances for testing. It actually looks a lot better that I anticipated, so I'll soon port it to use terraman's prop system (Which also needs to have material caches implemented). 2021-08-06 22:33:50 +02:00
c7938caaa8 increased the height for the stone texture. 2021-08-06 21:53:15 +02:00
29a41a8077 Rescaled one of the tree and added a collision shape to it. 2021-08-06 21:51:22 +02:00
abc1d53813 Added 2 trees from https://opengameart.org/content/rpg-item-collection-3 . 2021-08-06 21:42:44 +02:00
41fba2bec7 The test/simple biome now gets generated by summing 2 noises. I made the main elevation noise scaled out more. 2021-08-06 20:38:47 +02:00
1697167975 Changed the simple biome's generator to FastNoise from OpenSimplexNoise. Also scaled it out more. 2021-08-06 19:24:13 +02:00
bf40b5c12f Updated ess to the latest. Replaced the range checks with the newly added helper calls. 2021-08-05 23:01:31 +02:00
2e15d3f74e Same logic for the vendor window. 2021-08-05 22:07:34 +02:00
78af5acc8a The trainer window will now close itself if the player gets too far. 2021-08-05 22:04:37 +02:00
6c7f8625b5 Added interaction range check. 2021-08-05 21:55:33 +02:00
124c163212 Added a new library based on TerramanLibraryMergerPCM, and set the main world to use it. 2021-08-03 01:13:25 +02:00
523d5e478b Added the multirun addon to the project. (Disabled by default) 2021-08-01 15:44:24 +02:00
b3c7c142c5 Now tab containers are also navigable with keys in the menu. 2021-07-31 15:46:59 +02:00
dca4ea1cb4 Keyboard/controller navigation for the main menu. 2021-07-31 15:09:54 +02:00
e34e005890 Update the engine tot he latest. 2021-07-26 09:59:46 +02:00
cea803979c Fix property deprecation warnings. 2021-07-20 22:12:50 +02:00
8e2a6d96e7 Increased the jump height a bit. 2021-07-20 22:05:48 +02:00
bebf321c7c Changed the physics engine to GodotPhysics. So far it seems like everything is working with it. After the recent improvements it actually feels better now than bullet. 2021-07-20 22:03:25 +02:00
0c849a6c8a Brought in the player's movement controller implementation from the tower. This also means jumping is now possible. (I don't yet have animations for it though.) 2021-07-20 21:58:32 +02:00
596bb64db8 Changed the procedural animations back to normal Animations. 2021-07-20 19:57:16 +02:00
560df5b16f Added a few audio buses. 2021-07-19 20:09:47 +02:00
8aa89457e4 Update mesh data resource to the latest to get the new mesh optimization settings. Reimported the character's meshes with the remove doubles interpolate normals setting. This reduced the character's vertex count from 1850 to 617 without any visual change. 2021-07-19 18:56:59 +02:00
4aa2a21d4f Created a new material for the test shield. 2021-07-19 15:54:22 +02:00
8f60d2a87e Updated the engine and modules. Had to add a new class to the broken seals module to be able to call 2 protected functions in MeshInstance , to have gpu skinning for my merged characters again. Not yet sure whether it's a regression or not. 2021-07-19 15:47:47 +02:00
fd189d0d26 Optimized the character's meshes. The head will need some more tweaks, but I think it's mostly going to work. Also apparently the meshes get imported with broken up triangles, so they have way too high vertex count (1800 per character). I'll fix that in the mdr importer. 2021-07-19 15:01:20 +02:00
4c63763c75 Increased the world's scale to 3. 2021-06-08 15:40:53 +02:00
364d181e35 Update the engine and modules to get the PropInstance improvements / implementation. 2021-04-27 18:04:16 +02:00
0b2e4616ad Bump version to 0.3.4. 2021-04-24 09:16:32 +02:00
225c086286 Player type should be networked. 2021-04-21 22:00:06 +02:00
00711977d4 Work on fixing networking. Fixed hosting, and character uploading. 2021-04-21 21:55:15 +02:00
71d2cf0358 Turn off chunk generation in the menu, as the chunks are saved. 2021-04-21 21:53:46 +02:00
a8d6a69e4e Added an exit button to the menu. It will hide itself on the web and mobile platforms. 2021-04-21 20:10:32 +02:00
7c99802509 Update Terraman to get the android chunk generation fix. 2021-04-21 12:05:09 +02:00
21e1f3af23 Don't generate lods in the menu. 2021-04-21 10:49:49 +02:00
7e272029d1 Updated WorldGenerator to the latest. I removed Dungeon, DungeonRoom adn DungeonCorridor, and added a Building class (it's a cleaned up version of Dungeon right now, it will work differently later.). 2021-04-19 22:30:51 +02:00
a3634380ed Updated Terraman and added the new chunk_lod_first_falloff parameter to the ingame settings. 2021-04-19 18:39:43 +02:00
b20303a24e Re-enable lods. The simple lod seams still need work. Also updated Terraman for a the fixes. 2021-04-19 18:19:19 +02:00
a8ec0ec501 Fix in editor level generation. 2021-04-19 17:33:57 +02:00
e582f4d6e5 Removed the voxelman specific code/resources from the project. 2021-04-19 10:41:41 +02:00
3e07631361 Now the planet generator uses Terraman. Also updated the modules, as I fixed a vmethod. 2021-04-18 23:56:44 +02:00
a4e54f048a Updated the modules. I added lots of getters and setters to WorldGenerator. 2021-04-18 23:16:33 +02:00
81f2bacec9 Replaced voxelman in the menu aswell. 2021-04-18 20:03:03 +02:00
148cee772b Now the game uses terraman instead of voxelman ingame. 2021-04-18 19:55:34 +02:00
287e7af447 The level generator will now also use a third cell type. 2021-04-18 19:41:56 +02:00
a4459a949d Now the test terrain generator will set a few cells to a different type. 2021-04-18 19:39:12 +02:00
ccb6070bd8 Updated Terraman to get the lighting generation fixes, and crash fixes. 2021-04-18 19:38:17 +02:00
e16aa1c73f Updated terraman to the latest. 2021-04-17 19:31:23 +02:00
9e9a0e62c0 The level generator will now get noise values in world coordinates. Also updated Terraman. 2021-04-17 19:21:48 +02:00
1dac12d28e Updated terraman. Now it uses JobSteps. 2021-04-17 19:07:35 +02:00
02548015ea Updated the engine and modules. TerraMesherBlocky now only supports having one mesher and one liquid mesher. 2021-04-17 16:03:14 +02:00
0621a5da3b Fix error spam on test generation. 2021-04-17 12:27:47 +02:00
13fff7b64c Updated the modules, and added a few test scripts/scenes for terraman. 2021-04-17 00:45:08 +02:00
3d7b24ff5a Update copyright headers. 2021-04-15 11:52:32 +02:00
d87694cb03 Renamed a few methods in the mesh data resource editor. 2021-03-24 19:09:02 +01:00
382d1079f6 Started work on a uv editor. 2021-03-23 19:03:32 +01:00
131369ed71 Mesh data resource editor's gizmo now properly uses indices. 2021-03-23 18:18:07 +01:00
1e20ac43a4 Clean up the buttons on the mesh data editor's panel. Also added buttons for face manipulation. 2021-03-23 15:27:37 +01:00
ef47ab6b63 Now the mesh data resource editor will update the mesh aswell. 2021-03-23 11:24:44 +01:00
76265b54a8 Fix editor world generation. 2021-03-22 23:41:58 +01:00
dceba985b4 Implemented vertex scaling mode for mesh data resource editor. 2021-03-16 12:24:24 +01:00
79733aa63a Mesh data editor's vertex translation should work properly with any rotation of the editor's camera. 2021-03-15 15:25:19 +01:00
5d9651253c In mesh data editor now the selected vertices are draggable with the handles, instead of blender like commands. Also now axis constraints are togglable per axis. 2021-03-15 15:02:25 +01:00
c05519244d Added events for mesh data resource. Also simple half-baked vertex translation implementation. 2021-03-02 21:41:24 +01:00
696887b44c Added arlez80's bone editor from the asset lib as an alternative to the patch. 2021-03-02 13:10:46 +01:00
ec558d1a16 More work/experimentation on the mesh data resource editor. 2021-03-02 13:03:02 +01:00
4e071994f6 More initial work / experiments on the mesh data resource editor plugin. 2021-02-28 00:18:38 +01:00
8fe94c3ca4 Removed gdpose, as its no longer needed. 2021-02-23 01:34:02 +01:00