Update readme

This commit is contained in:
luboslenco
2024-06-30 21:25:23 +02:00
parent a40fa0aed0
commit f739f45692
3 changed files with 12 additions and 32 deletions
+1 -1
View File
@@ -18,6 +18,6 @@ git submodule update --init --recursive
**Generating a locale file** **Generating a locale file**
```bash ```bash
export ARM_LOCALE=<locale code> export ARM_LOCALE=<locale code>
./armorcore/Kinc/make --from base/Tools --kfile extract_locales.js ./armorcore/make --from base/Tools --kfile extract_locales.js
# Generates a `base/Assets/locale/<locale code>.json` file # Generates a `base/Assets/locale/<locale code>.json` file
``` ```
+4 -7
View File
@@ -3,7 +3,7 @@
armorlab armorlab
============== ==============
[ArmorLab](https://armorlab.org) is a software for AI-powered texture authoring - check out the [manual](https://armorlab.org/manual). [ArmorLab](https://armorlab.org) is a software for PBR texture authoring - check out the [manual](https://armorlab.org/manual).
*Note 1: This repository is aimed at developers and may not be stable. Distributed binaries are [paid](https://armorlab.org/download) to help with the project funding. All of the development is happening here in order to make it accessible to everyone. Thank you for support!* *Note 1: This repository is aimed at developers and may not be stable. Distributed binaries are [paid](https://armorlab.org/download) to help with the project funding. All of the development is happening here in order to make it accessible to everyone. Thank you for support!*
@@ -18,7 +18,7 @@ git clone https://github.com/armory3d/onnx_bin onnx
**Windows** **Windows**
```bash ```bash
..\armorcore\Kinc\make --from ..\armorcore -g direct3d11 ..\armorcore\make --graphics direct3d11
# Open generated Visual Studio project at `build\ArmorLab.sln` # Open generated Visual Studio project at `build\ArmorLab.sln`
# Build and run for x64 & release # Build and run for x64 & release
# Copy build\x64\Release\ArmorLab.exe to build\krom to run ArmorLab.exe directly # Copy build\x64\Release\ArmorLab.exe to build\krom to run ArmorLab.exe directly
@@ -26,7 +26,7 @@ git clone https://github.com/armory3d/onnx_bin onnx
**Linux** *wip - cpu only* **Linux** *wip - cpu only*
```bash ```bash
../armorcore/Kinc/make --from ../armorcore -g opengl --compiler clang --compile ../armorcore/make --graphics opengl --compile
cd ../armorcore/Deployment cd ../armorcore/Deployment
strip ArmorLab strip ArmorLab
./ArmorLab ../../armorlab/build/krom ./ArmorLab ../../armorlab/build/krom
@@ -34,10 +34,7 @@ strip ArmorLab
**macOS** *wip - apple silicon only* **macOS** *wip - apple silicon only*
```bash ```bash
cd ../armorcore ../armorcore/make --graphics metal
git apply Patches/metal_raytrace.diff --directory=Kinc
cd ../armorlab
../armorcore/Kinc/make --from ../armorcore -g metal
cp -a build/krom/ ../armorcore/Deployment cp -a build/krom/ ../armorcore/Deployment
# Open generated Xcode project at `build/ArmorLab.xcodeproj` # Open generated Xcode project at `build/ArmorLab.xcodeproj`
# Set macOS Deployment Target to 13.0 # Set macOS Deployment Target to 13.0
+7 -24
View File
@@ -16,7 +16,7 @@ cd armortools/armorpaint
**Windows** **Windows**
```bash ```bash
..\armorcore\Kinc\make --from ..\armorcore -g direct3d11 ..\armorcore\make --graphics direct3d11
# Open generated Visual Studio project at `build\ArmorPaint.sln` # Open generated Visual Studio project at `build\ArmorPaint.sln`
# Build and run for x64 & release # Build and run for x64 & release
# Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly # Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly
@@ -24,7 +24,7 @@ cd armortools/armorpaint
**Linux** **Linux**
```bash ```bash
../armorcore/Kinc/make --from ../armorcore -g opengl --compiler clang --compile ../armorcore/make --graphics opengl --compile
cd ../armorcore/Deployment cd ../armorcore/Deployment
strip ArmorPaint strip ArmorPaint
./ArmorPaint ../../armorpaint/build/krom ./ArmorPaint ../../armorpaint/build/krom
@@ -32,10 +32,7 @@ strip ArmorPaint
**macOS** **macOS**
```bash ```bash
cd ../armorcore ../armorcore/make --graphics metal
git apply Patches/metal_raytrace.diff --directory=Kinc
cd ../armorpaint
../armorcore/Kinc/make --from ../armorcore -g metal
cp -a build/krom/ ../armorcore/Deployment cp -a build/krom/ ../armorcore/Deployment
# Open generated Xcode project at `build/ArmorPaint.xcodeproj` # Open generated Xcode project at `build/ArmorPaint.xcodeproj`
# Set macOS Deployment Target to 13.0 # Set macOS Deployment Target to 13.0
@@ -44,10 +41,7 @@ cp -a build/krom/ ../armorcore/Deployment
**Android** *wip* **Android** *wip*
```bash ```bash
cd ../armorcore ../armorcore/make --graphics opengl --target android
git apply Patches/android_document_picker.diff --directory=Kinc
cd ../armorpaint
../armorcore/Kinc/make --from ../armorcore -g opengl android
cp -r build/krom/* build/ArmorPaint/app/src/main/assets/ cp -r build/krom/* build/ArmorPaint/app/src/main/assets/
# Manual tweaking is required for now: # Manual tweaking is required for now:
# https://github.com/armory3d/armorcore/blob/master/kfile.js#L136 # https://github.com/armory3d/armorcore/blob/master/kfile.js#L136
@@ -57,12 +51,7 @@ cp -r build/krom/* build/ArmorPaint/app/src/main/assets/
**iOS** *wip* **iOS** *wip*
```bash ```bash
cd ../armorcore ../armorcore/make --graphics metal --target ios
git apply Patches/metal_raytrace.diff --directory=Kinc
git apply Patches/ios_document_picker.diff --directory=Kinc
git apply Patches/ios_pencil_hover.diff --directory=Kinc
cd ../armorpaint
../armorcore/Kinc/make --from ../armorcore -g metal ios
cp -a build/krom/ ../armorcore/Deployment cp -a build/krom/ ../armorcore/Deployment
# Open generated Xcode project `build/ArmorPaint.xcodeproj` # Open generated Xcode project `build/ArmorPaint.xcodeproj`
# Set iOS Deployment Target to 16.0 # Set iOS Deployment Target to 16.0
@@ -71,10 +60,7 @@ cp -a build/krom/ ../armorcore/Deployment
**Windows DXR** *wip* **Windows DXR** *wip*
```bash ```bash
cd ..\armorcore ..\armorcore\make --graphics direct3d12
git apply Patches/d3d12_raytrace.diff --directory=Kinc
cd ..\armorpaint
..\armorcore\Kinc\make --from ..\armorcore -g direct3d12
# Open generated Visual Studio project at `build\ArmorPaint.sln` # Open generated Visual Studio project at `build\ArmorPaint.sln`
# Build and run for x64 & release # Build and run for x64 & release
# Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly # Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly
@@ -83,10 +69,7 @@ cd ..\armorpaint
**Linux VKRT** *wip* **Linux VKRT** *wip*
```bash ```bash
git clone --recursive https://github.com/armory3d/glsl_to_spirv git clone --recursive https://github.com/armory3d/glsl_to_spirv
cd ../armorcore ../armorcore/make --graphics vulkan --compile
git apply Patches/vulkan_raytrace.diff --directory=Kinc
cd ../armorpaint
../armorcore/Kinc/make --from ../armorcore -g vulkan --compiler clang --compile
cd ../armorcore/Deployment cd ../armorcore/Deployment
strip ArmorPaint strip ArmorPaint
./ArmorPaint ../../armorpaint/build/krom ./ArmorPaint ../../armorpaint/build/krom