luboslenco 1 month ago
parent
commit
3dbdf2b3ed
100 changed files with 30 additions and 30 deletions
  1. 2 2
      .github/workflows/linux_vulkan.yml
  2. 2 2
      .github/workflows/macos_metal.yml
  3. 2 2
      .github/workflows/windows_direct3d12.yml
  4. 4 4
      .gitignore
  5. 4 4
      base/project.js
  6. 3 3
      base/tools/extract_locales.js
  7. 0 0
      forge/assets/badge.png
  8. 0 0
      forge/assets/default_brush.arm
  9. 0 0
      forge/assets/default_material.arm
  10. 0 0
      forge/assets/licenses/keepme.txt
  11. 0 0
      forge/assets/meshes/box.arm
  12. 0 0
      forge/assets/meshes/box_bevel.arm
  13. 0 0
      forge/assets/meshes/cone.arm
  14. 0 0
      forge/assets/meshes/cylinder.arm
  15. 0 0
      forge/assets/meshes/sphere.arm
  16. 0 0
      forge/assets/meshes/torus.arm
  17. 0 0
      forge/assets/plugins/keepme.txt
  18. 0 0
      forge/assets/readme/readme.txt
  19. 0 0
      forge/icon.png
  20. 0 0
      forge/plugins/plugins.c
  21. 0 0
      forge/plugins/project.js
  22. 8 8
      forge/project.js
  23. 0 0
      forge/readme.md
  24. 0 0
      forge/shaders/keepme.txt
  25. 0 0
      forge/sources/base_ext.ts
  26. 0 0
      forge/sources/context_ext.ts
  27. 0 0
      forge/sources/manifest.ts
  28. 0 0
      forge/sources/sim.ts
  29. 0 0
      forge/sources/tab_object.ts
  30. 0 0
      forge/sources/tab_scene.ts
  31. 0 0
      forge/sources/ui_base_ext.ts
  32. 0 0
      forge/sources/ui_header_ext.ts
  33. 0 0
      forge/sources/ui_toolbar_ext.ts
  34. 0 0
      forge/sources/util_mesh_ext.ts
  35. 0 0
      lab/assets/badge.png
  36. 0 0
      lab/assets/default_brush.arm
  37. 0 0
      lab/assets/keymap_presets/touch.json
  38. 0 0
      lab/assets/licenses/license_esrgan.md
  39. 0 0
      lab/assets/licenses/license_onnx.md
  40. 0 0
      lab/assets/licenses/license_photo_to_pbr.md
  41. 0 0
      lab/assets/licenses/license_sd.md
  42. 0 0
      lab/assets/licenses/license_texsynth.md
  43. 0 0
      lab/assets/meshes/keepme.txt
  44. 0 0
      lab/assets/models/README.md
  45. 0 0
      lab/assets/placeholder.png
  46. 0 0
      lab/assets/plugins/keepme.txt
  47. 0 0
      lab/assets/readme/readme.txt
  48. 0 0
      lab/icon.png
  49. 0 0
      lab/onnx/include/LICENSE
  50. 0 0
      lab/onnx/include/coreml_provider_factory.h
  51. 0 0
      lab/onnx/include/cpu_provider_factory.h
  52. 0 0
      lab/onnx/include/dml_provider_factory.h
  53. 0 0
      lab/onnx/include/onnxruntime_c_api.h
  54. 0 0
      lab/onnx/include/onnxruntime_cxx_api.h
  55. 0 0
      lab/onnx/include/onnxruntime_cxx_inline.h
  56. 0 0
      lab/onnx/include/onnxruntime_run_options_config_keys.h
  57. 0 0
      lab/onnx/include/onnxruntime_session_options_config_keys.h
  58. 0 0
      lab/onnx/include/provider_options.h
  59. 0 0
      lab/onnx/linux/libonnxruntime.so
  60. 0 0
      lab/onnx/linux/libonnxruntime.so.1.14.1
  61. 0 0
      lab/onnx/macos/libonnxruntime.1.14.1.dylib
  62. 0 0
      lab/onnx/macos/libonnxruntime.dylib
  63. 0 0
      lab/onnx/win32/DirectML.dll
  64. 0 0
      lab/onnx/win32/onnxruntime.dll
  65. 0 0
      lab/onnx/win32/onnxruntime.lib
  66. 0 0
      lab/plugins/plugins.c
  67. 0 0
      lab/plugins/proc_texsynth/LICENSE.md
  68. 0 0
      lab/plugins/proc_texsynth/linux/libtexsynth.a
  69. 0 0
      lab/plugins/proc_texsynth/macos/libtexsynth.a
  70. 0 0
      lab/plugins/proc_texsynth/proc_texsynth.h
  71. 0 0
      lab/plugins/proc_texsynth/win32/texsynth.lib
  72. 0 0
      lab/plugins/project.js
  73. 4 4
      lab/project.js
  74. 1 1
      lab/readme.md
  75. 0 0
      lab/shaders/inpaint_preview.kong
  76. 0 0
      lab/shaders/layer_copy_rrrr.kong
  77. 0 0
      lab/sources/base_ext.ts
  78. 0 0
      lab/sources/context_ext.ts
  79. 0 0
      lab/sources/layers_ext.ts
  80. 0 0
      lab/sources/make_material.ts
  81. 0 0
      lab/sources/make_mesh.ts
  82. 0 0
      lab/sources/make_paint.ts
  83. 0 0
      lab/sources/manifest.ts
  84. 0 0
      lab/sources/nodes/brush_output_node_ext.ts
  85. 0 0
      lab/sources/nodes/image_texture_node.ts
  86. 0 0
      lab/sources/nodes/inpaint_node.ts
  87. 0 0
      lab/sources/nodes/photo_to_pbr_node.ts
  88. 0 0
      lab/sources/nodes/rgb_node.ts
  89. 0 0
      lab/sources/nodes/text_to_photo_node.ts
  90. 0 0
      lab/sources/nodes/tiling_node.ts
  91. 0 0
      lab/sources/nodes/upscale_node.ts
  92. 0 0
      lab/sources/nodes/variance_node.ts
  93. 0 0
      lab/sources/nodes_brush.ts
  94. 0 0
      lab/sources/render_path_paint.ts
  95. 0 0
      lab/sources/ui_base_ext.ts
  96. 0 0
      lab/sources/ui_header_ext.ts
  97. 0 0
      lab/sources/ui_nodes_ext.ts
  98. 0 0
      lab/sources/ui_toolbar_ext.ts
  99. 0 0
      paint/assets/badge.png
  100. 0 0
      paint/assets/default_brush.arm

+ 2 - 2
.github/workflows/linux_vulkan.yml

@@ -21,5 +21,5 @@ jobs:
       run: sudo apt install make clang libvulkan-dev libgtk-3-dev --yes --quiet
     - name: Compile
       run: |
-        cd armorpaint
-        ../base/make --graphics vulkan --compile
+        cd paint
+        ../base/make --compile

+ 2 - 2
.github/workflows/macos_metal.yml

@@ -17,5 +17,5 @@ jobs:
     - uses: actions/checkout@v3
     - name: Compile
       run: |
-        cd armorpaint
-        ../base/make --graphics metal --compile
+        cd paint
+        ../base/make --compile

+ 2 - 2
.github/workflows/windows_direct3d12.yml

@@ -17,5 +17,5 @@ jobs:
     - uses: actions/checkout@v3
     - name: Compile
       run: |
-        cd armorpaint
-        ../base/make --graphics direct3d12 --compile
+        cd paint
+        ../base/make --compile

+ 4 - 4
.gitignore

@@ -2,7 +2,7 @@
 .vscode
 *.DS_Store
 *.blend1
-armorlab/assets/models/*.onnx
-armorlab/assets/models/*.json
-armorlab/assets/models/*.txt
-armorlab/assets/models/*.zip
+lab/assets/models/*.onnx
+lab/assets/models/*.json
+lab/assets/models/*.txt
+lab/assets/models/*.zip

+ 4 - 4
base/project.js

@@ -11,7 +11,7 @@ flags.with_eval = true;
 flags.with_plugins = true;
 
 let project = new Project("Base");
-let dir = flags.name.toLowerCase();
+let dir = flags.name.substr(5).toLowerCase(); // ArmorPaint -> paint
 
 if (!flags.lite) {
 	project.add_define("IDLE_SLEEP");
@@ -107,7 +107,7 @@ if (!flags.lite) {
 
 	let export_version_info = true;
 	if (export_version_info) {
-		let dir = "../" + flags.name.toLowerCase() + "/build";
+		let dir = "../" + flags.name.substr(5).toLowerCase() + "/build";
 		let sha = os_popen(`git log --pretty=format:"%h" -n 1`).stdout.substr(1, 7);
 		let date = new Date().toISOString().split("T")[0];
 		let data = `{ "sha": "${sha}", "date": "${date}" }`;
@@ -119,7 +119,7 @@ if (!flags.lite) {
 
 	let export_data_list = platform === "android"; // .apk contents
 	if (export_data_list) {
-		let root = "../" + flags.name.toLowerCase();
+		let root = "../" + flags.name.substr(5).toLowerCase();
 		let data_list = {
 			"/data/plugins": fs_readdir("../base/assets/plugins").concat(fs_readdir(root + "/assets/plugins")).join(","),
 			"/data/export_presets": fs_readdir(root + "/assets/export_presets").join(","),
@@ -128,7 +128,7 @@ if (!flags.lite) {
 			"/data/meshes": fs_readdir(root + "/assets/meshes").join(","),
 			"/data/themes": fs_readdir("../base/assets/themes").join(","),
 		};
-		let dir = "../" + flags.name.toLowerCase() + "/build";
+		let dir = "../" + flags.name.substr(5).toLowerCase() + "/build";
 		fs_ensuredir(dir);
 		fs_writefile(dir + "/data_list.json", JSON.stringify(data_list));
 		project.add_assets(dir + "/data_list.json", { destination: "data/{name}" });

+ 3 - 3
base/tools/extract_locales.js

@@ -21,9 +21,9 @@ if (fs_exists(locale_path)) {
 
 let source_paths = [
     "base/sources", "base/sources/nodes",
-    "armorpaint/sources", "armorpaint/sources/nodes",
-    "armorlab/sources", "armorlab/sources/nodes",
-    "armorforge/sources", "armorforge/sources/nodes"
+    "paint/sources", "paint/sources/nodes",
+    "lab/sources", "lab/sources/nodes",
+    "forge/sources", "forge/sources/nodes"
 ];
 
 for (let path of source_paths) {

+ 0 - 0
armorforge/assets/badge.png → forge/assets/badge.png


+ 0 - 0
armorforge/assets/default_brush.arm → forge/assets/default_brush.arm


+ 0 - 0
armorforge/assets/default_material.arm → forge/assets/default_material.arm


+ 0 - 0
armorforge/assets/licenses/keepme.txt → forge/assets/licenses/keepme.txt


+ 0 - 0
armorforge/assets/meshes/box.arm → forge/assets/meshes/box.arm


+ 0 - 0
armorforge/assets/meshes/box_bevel.arm → forge/assets/meshes/box_bevel.arm


+ 0 - 0
armorforge/assets/meshes/cone.arm → forge/assets/meshes/cone.arm


+ 0 - 0
armorforge/assets/meshes/cylinder.arm → forge/assets/meshes/cylinder.arm


+ 0 - 0
armorforge/assets/meshes/sphere.arm → forge/assets/meshes/sphere.arm


+ 0 - 0
armorforge/assets/meshes/torus.arm → forge/assets/meshes/torus.arm


+ 0 - 0
armorforge/assets/plugins/keepme.txt → forge/assets/plugins/keepme.txt


+ 0 - 0
armorforge/assets/readme/readme.txt → forge/assets/readme/readme.txt


+ 0 - 0
armorforge/icon.png → forge/icon.png


+ 0 - 0
armorforge/plugins/plugins.c → forge/plugins/plugins.c


+ 0 - 0
armorforge/plugins/project.js → forge/plugins/project.js


+ 8 - 8
armorforge/project.js → forge/project.js

@@ -9,10 +9,10 @@ project.add_define("is_forge");
 project.add_define("is_paint");
 project.add_project("../base");
 
-project.add_tsfiles("../armorpaint/sources");
-project.add_tsfiles("../armorpaint/sources/nodes");
-project.add_shaders("../armorpaint/shaders/*.kong");
-project.add_project("../armorpaint/plugins");
+project.add_tsfiles("../paint/sources");
+project.add_tsfiles("../paint/sources/nodes");
+project.add_shaders("../paint/shaders/*.kong");
+project.add_project("../paint/plugins");
 
 project.add_tsfiles("sources");
 project.add_tsfiles("sources/nodes");
@@ -21,10 +21,10 @@ project.add_assets("assets/*", { destination: "data/{name}" });
 project.add_assets("assets/keymap_presets/*", { destination: "data/keymap_presets/{name}" });
 project.add_assets("assets/licenses/**", { destination: "data/licenses/{name}" });
 project.add_assets("assets/plugins/*", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/hello_world.js", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/import_fbx.js", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/import_gltf_glb.js", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/uv_unwrap.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/hello_world.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/import_fbx.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/import_gltf_glb.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/uv_unwrap.js", { destination: "data/plugins/{name}" });
 project.add_assets("assets/meshes/*", { destination: "data/meshes/{name}", noembed: true });
 project.add_assets("assets/readme/readme.txt", { destination: "{name}" });
 

+ 0 - 0
armorforge/readme.md → forge/readme.md


+ 0 - 0
armorforge/shaders/keepme.txt → forge/shaders/keepme.txt


+ 0 - 0
armorforge/sources/base_ext.ts → forge/sources/base_ext.ts


+ 0 - 0
armorforge/sources/context_ext.ts → forge/sources/context_ext.ts


+ 0 - 0
armorforge/sources/manifest.ts → forge/sources/manifest.ts


+ 0 - 0
armorforge/sources/sim.ts → forge/sources/sim.ts


+ 0 - 0
armorforge/sources/tab_object.ts → forge/sources/tab_object.ts


+ 0 - 0
armorforge/sources/tab_scene.ts → forge/sources/tab_scene.ts


+ 0 - 0
armorforge/sources/ui_base_ext.ts → forge/sources/ui_base_ext.ts


+ 0 - 0
armorforge/sources/ui_header_ext.ts → forge/sources/ui_header_ext.ts


+ 0 - 0
armorforge/sources/ui_toolbar_ext.ts → forge/sources/ui_toolbar_ext.ts


+ 0 - 0
armorforge/sources/util_mesh_ext.ts → forge/sources/util_mesh_ext.ts


+ 0 - 0
armorlab/assets/badge.png → lab/assets/badge.png


+ 0 - 0
armorlab/assets/default_brush.arm → lab/assets/default_brush.arm


+ 0 - 0
armorlab/assets/keymap_presets/touch.json → lab/assets/keymap_presets/touch.json


+ 0 - 0
armorlab/assets/licenses/license_esrgan.md → lab/assets/licenses/license_esrgan.md


+ 0 - 0
armorlab/assets/licenses/license_onnx.md → lab/assets/licenses/license_onnx.md


+ 0 - 0
armorlab/assets/licenses/license_photo_to_pbr.md → lab/assets/licenses/license_photo_to_pbr.md


+ 0 - 0
armorlab/assets/licenses/license_sd.md → lab/assets/licenses/license_sd.md


+ 0 - 0
armorlab/assets/licenses/license_texsynth.md → lab/assets/licenses/license_texsynth.md


+ 0 - 0
armorlab/assets/meshes/keepme.txt → lab/assets/meshes/keepme.txt


+ 0 - 0
armorlab/assets/models/README.md → lab/assets/models/README.md


+ 0 - 0
armorlab/assets/placeholder.png → lab/assets/placeholder.png


+ 0 - 0
armorlab/assets/plugins/keepme.txt → lab/assets/plugins/keepme.txt


+ 0 - 0
armorlab/assets/readme/readme.txt → lab/assets/readme/readme.txt


+ 0 - 0
armorlab/icon.png → lab/icon.png


+ 0 - 0
armorlab/onnx/include/LICENSE → lab/onnx/include/LICENSE


+ 0 - 0
armorlab/onnx/include/coreml_provider_factory.h → lab/onnx/include/coreml_provider_factory.h


+ 0 - 0
armorlab/onnx/include/cpu_provider_factory.h → lab/onnx/include/cpu_provider_factory.h


+ 0 - 0
armorlab/onnx/include/dml_provider_factory.h → lab/onnx/include/dml_provider_factory.h


+ 0 - 0
armorlab/onnx/include/onnxruntime_c_api.h → lab/onnx/include/onnxruntime_c_api.h


+ 0 - 0
armorlab/onnx/include/onnxruntime_cxx_api.h → lab/onnx/include/onnxruntime_cxx_api.h


+ 0 - 0
armorlab/onnx/include/onnxruntime_cxx_inline.h → lab/onnx/include/onnxruntime_cxx_inline.h


+ 0 - 0
armorlab/onnx/include/onnxruntime_run_options_config_keys.h → lab/onnx/include/onnxruntime_run_options_config_keys.h


+ 0 - 0
armorlab/onnx/include/onnxruntime_session_options_config_keys.h → lab/onnx/include/onnxruntime_session_options_config_keys.h


+ 0 - 0
armorlab/onnx/include/provider_options.h → lab/onnx/include/provider_options.h


+ 0 - 0
armorlab/onnx/linux/libonnxruntime.so → lab/onnx/linux/libonnxruntime.so


+ 0 - 0
armorlab/onnx/linux/libonnxruntime.so.1.14.1 → lab/onnx/linux/libonnxruntime.so.1.14.1


+ 0 - 0
armorlab/onnx/macos/libonnxruntime.1.14.1.dylib → lab/onnx/macos/libonnxruntime.1.14.1.dylib


+ 0 - 0
armorlab/onnx/macos/libonnxruntime.dylib → lab/onnx/macos/libonnxruntime.dylib


+ 0 - 0
armorlab/onnx/win32/DirectML.dll → lab/onnx/win32/DirectML.dll


+ 0 - 0
armorlab/onnx/win32/onnxruntime.dll → lab/onnx/win32/onnxruntime.dll


+ 0 - 0
armorlab/onnx/win32/onnxruntime.lib → lab/onnx/win32/onnxruntime.lib


+ 0 - 0
armorlab/plugins/plugins.c → lab/plugins/plugins.c


+ 0 - 0
armorlab/plugins/proc_texsynth/LICENSE.md → lab/plugins/proc_texsynth/LICENSE.md


+ 0 - 0
armorlab/plugins/proc_texsynth/linux/libtexsynth.a → lab/plugins/proc_texsynth/linux/libtexsynth.a


+ 0 - 0
armorlab/plugins/proc_texsynth/macos/libtexsynth.a → lab/plugins/proc_texsynth/macos/libtexsynth.a


+ 0 - 0
armorlab/plugins/proc_texsynth/proc_texsynth.h → lab/plugins/proc_texsynth/proc_texsynth.h


+ 0 - 0
armorlab/plugins/proc_texsynth/win32/texsynth.lib → lab/plugins/proc_texsynth/win32/texsynth.lib


+ 0 - 0
armorlab/plugins/project.js → lab/plugins/project.js


+ 4 - 4
armorlab/project.js → lab/project.js

@@ -12,13 +12,13 @@ project.add_tsfiles("sources");
 project.add_tsfiles("sources/nodes");
 project.add_shaders("shaders/*.kong");
 project.add_assets("assets/*", { destination: "data/{name}" });
-project.add_assets("../armorpaint/assets/export_presets/*", { destination: "data/export_presets/{name}" });
+project.add_assets("../paint/assets/export_presets/*", { destination: "data/export_presets/{name}" });
 project.add_assets("assets/keymap_presets/*", { destination: "data/keymap_presets/{name}" });
 project.add_assets("assets/licenses/**", { destination: "data/licenses/{name}" });
 project.add_assets("assets/plugins/*", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/hello_world.js", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/hello_node_brush.js", { destination: "data/plugins/{name}" });
-project.add_assets("../armorpaint/assets/plugins/import_svg.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/hello_world.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/hello_node_brush.js", { destination: "data/plugins/{name}" });
+project.add_assets("../paint/assets/plugins/import_svg.js", { destination: "data/plugins/{name}" });
 project.add_assets("assets/meshes/*", { destination: "data/meshes/{name}", noembed: true });
 project.add_assets("assets/models/*.onnx", { destination: "data/models/{name}" });
 project.add_assets("assets/models/*.json", { destination: "data/models/{name}" });

+ 1 - 1
armorlab/readme.md → lab/readme.md

@@ -11,7 +11,7 @@ armorlab
 
 ```bash
 git clone https://github.com/armory3d/armortools
-cd armortools/armorlab
+cd armortools/lab
 # Unpack `models.zip` from https://github.com/armory3d/armorai/releases into `assets/models` using 7-Zip - Extract Here
 ```
 

+ 0 - 0
armorlab/shaders/inpaint_preview.kong → lab/shaders/inpaint_preview.kong


+ 0 - 0
armorlab/shaders/layer_copy_rrrr.kong → lab/shaders/layer_copy_rrrr.kong


+ 0 - 0
armorlab/sources/base_ext.ts → lab/sources/base_ext.ts


+ 0 - 0
armorlab/sources/context_ext.ts → lab/sources/context_ext.ts


+ 0 - 0
armorlab/sources/layers_ext.ts → lab/sources/layers_ext.ts


+ 0 - 0
armorlab/sources/make_material.ts → lab/sources/make_material.ts


+ 0 - 0
armorlab/sources/make_mesh.ts → lab/sources/make_mesh.ts


+ 0 - 0
armorlab/sources/make_paint.ts → lab/sources/make_paint.ts


+ 0 - 0
armorlab/sources/manifest.ts → lab/sources/manifest.ts


+ 0 - 0
armorlab/sources/nodes/brush_output_node_ext.ts → lab/sources/nodes/brush_output_node_ext.ts


+ 0 - 0
armorlab/sources/nodes/image_texture_node.ts → lab/sources/nodes/image_texture_node.ts


+ 0 - 0
armorlab/sources/nodes/inpaint_node.ts → lab/sources/nodes/inpaint_node.ts


+ 0 - 0
armorlab/sources/nodes/photo_to_pbr_node.ts → lab/sources/nodes/photo_to_pbr_node.ts


+ 0 - 0
armorlab/sources/nodes/rgb_node.ts → lab/sources/nodes/rgb_node.ts


+ 0 - 0
armorlab/sources/nodes/text_to_photo_node.ts → lab/sources/nodes/text_to_photo_node.ts


+ 0 - 0
armorlab/sources/nodes/tiling_node.ts → lab/sources/nodes/tiling_node.ts


+ 0 - 0
armorlab/sources/nodes/upscale_node.ts → lab/sources/nodes/upscale_node.ts


+ 0 - 0
armorlab/sources/nodes/variance_node.ts → lab/sources/nodes/variance_node.ts


+ 0 - 0
armorlab/sources/nodes_brush.ts → lab/sources/nodes_brush.ts


+ 0 - 0
armorlab/sources/render_path_paint.ts → lab/sources/render_path_paint.ts


+ 0 - 0
armorlab/sources/ui_base_ext.ts → lab/sources/ui_base_ext.ts


+ 0 - 0
armorlab/sources/ui_header_ext.ts → lab/sources/ui_header_ext.ts


+ 0 - 0
armorlab/sources/ui_nodes_ext.ts → lab/sources/ui_nodes_ext.ts


+ 0 - 0
armorlab/sources/ui_toolbar_ext.ts → lab/sources/ui_toolbar_ext.ts


+ 0 - 0
armorpaint/assets/badge.png → paint/assets/badge.png


+ 0 - 0
armorpaint/assets/default_brush.arm → paint/assets/default_brush.arm


Some files were not shown because too many files changed in this diff