Files
armorpaint/README.md
T

119 lines
4.6 KiB
Markdown
Raw Normal View History

2018-11-07 15:52:34 +01:00
![](https://armorpaint.org/img/git.jpg)
armorpaint
==============
2020-01-11 23:15:51 +01:00
[ArmorPaint](https://armorpaint.org) is a software for 3D PBR texture painting - check out the [manual](https://armorpaint.org/manual).
2018-11-07 15:52:34 +01:00
2021-07-13 13:14:39 +02:00
*Note 1: This repository is aimed at developers and may not be stable. Distributed binaries are [paid](https://armorpaint.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!*
2018-11-07 15:52:34 +01:00
2022-03-18 16:15:57 +01:00
*Note 2: If you are compiling git version of ArmorPaint, then you need to have a compiler ([Visual Studio](https://visualstudio.microsoft.com/downloads/) - Windows, [clang](https://clang.llvm.org/get_started.html) + [deps](https://github.com/armory3d/armorpaint/wiki/Linux-Dependencies) - Linux, [Xcode](https://developer.apple.com/xcode/resources/) - macOS / iOS, [Android Studio](https://developer.android.com/studio) - Android) and [git](https://git-scm.com/downloads) installed.*
2020-10-22 19:24:53 +02:00
2019-05-26 12:30:39 +02:00
```bash
git clone --recursive https://github.com/armory3d/armorpaint
cd armorpaint
```
2020-10-22 19:24:53 +02:00
**Windows**
2019-05-26 12:30:39 +02:00
```bash
2022-03-18 16:15:57 +01:00
# Unpack `armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB)
2022-03-22 13:49:01 +01:00
armorcore\Kinc\make --from armorcore -g direct3d11
2021-08-09 19:30:35 +02:00
# Open generated Visual Studio project at `build\ArmorPaint.sln`
2020-12-08 00:23:16 +01:00
# Build and run for x64 & release
2022-04-19 08:03:30 +02:00
# Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly
2019-05-26 12:30:39 +02:00
```
2020-10-22 19:24:53 +02:00
**Linux**
2019-05-26 12:30:39 +02:00
```bash
2022-03-18 16:15:57 +01:00
armorcore/Kinc/make --from armorcore -g opengl --compiler clang --compile
cd armorcore/Deployment
2021-08-09 19:30:35 +02:00
strip ArmorPaint
./ArmorPaint ../../build/krom
2019-05-26 12:30:39 +02:00
```
2020-10-22 19:24:53 +02:00
**macOS**
2019-05-26 12:30:39 +02:00
```bash
2022-03-19 17:13:25 +01:00
git apply armorcore/patch/metal_depth.diff --directory=armorcore/Kinc
2022-03-18 16:15:57 +01:00
armorcore/Kinc/make --from armorcore -g metal
2020-08-15 15:03:16 +02:00
cp -a build/krom/ armorcore/Deployment
2021-08-09 19:30:35 +02:00
# Open generated Xcode project at `build/ArmorPaint.xcodeproj`
2020-12-08 00:23:16 +01:00
# Build and run
2019-05-26 12:30:39 +02:00
```
2020-10-22 19:24:53 +02:00
**Android** *wip*
2019-10-10 14:33:28 +02:00
```bash
2022-03-19 17:13:25 +01:00
git apply armorcore/patch/android_document_picker.diff --directory=armorcore/Kinc
2022-03-23 13:35:06 +01:00
armorcore/Kinc/make android --from armorcore -g opengl
2022-03-18 16:15:57 +01:00
cp -r build/krom/* build/ArmorPaint/app/src/main/assets/
2020-03-06 19:21:43 +01:00
# Manual tweaking is required for now:
2020-08-15 15:03:16 +02:00
# https://github.com/armory3d/armorcore/blob/master/kincfile.js#L68
2021-08-09 19:30:35 +02:00
# Open generated Android Studio project at `build/ArmorPaint`
2020-03-06 19:21:43 +01:00
# Build for device
```
2020-10-22 19:24:53 +02:00
**iOS** *wip*
2020-03-06 19:21:43 +01:00
```bash
2022-03-18 16:15:57 +01:00
git clone https://github.com/armory3d/armorpaint_plugins armorcore/Libraries/plugins
git apply armorcore/patch/ios_document_picker.diff --directory=armorcore/Kinc
git apply armorcore/patch/metal_depth.diff --directory=armorcore/Kinc
2022-03-19 17:13:25 +01:00
armorcore/Kinc/make ios --from armorcore -g metal
cp -a build/krom/ armorcore/Deployment
2021-08-09 19:30:35 +02:00
# Open generated Xcode project `build/ArmorPaint.xcodeproj`
2021-07-15 11:02:35 +02:00
# Set iOS Deployment Target to 11.0
2021-07-13 13:14:39 +02:00
# Build for device in release mode
2020-03-06 19:21:43 +01:00
```
2020-10-22 19:24:53 +02:00
**Windows DXR** *wip*
2020-03-06 19:21:43 +01:00
```bash
2022-03-18 16:15:57 +01:00
# Unpack `armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB)
git apply armorcore/patch/d3d12_raytrace.diff --directory=armorcore/Kinc
2022-03-22 13:49:01 +01:00
armorcore\Kinc\make --from armorcore -g direct3d12
2021-08-09 19:30:35 +02:00
# Open generated Visual Studio project at `build\ArmorPaint.sln`
2020-12-08 00:23:16 +01:00
# Build and run for x64 & release
2022-04-19 08:03:30 +02:00
# Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly
2020-05-09 19:23:22 +02:00
```
2020-10-22 19:24:53 +02:00
**Linux VKRT** *wip*
2020-05-09 19:23:22 +02:00
```bash
2022-03-18 16:15:57 +01:00
git clone --recursive https://github.com/armory3d/glsl_to_spirv armorcore/Libraries/glsl_to_spirv
git apply armorcore/patch/vulkan_raytrace.diff --directory=armorcore/Kinc
2022-03-19 17:13:25 +01:00
armorcore/Kinc/make --from armorcore -g vulkan --compiler clang --compile
2022-03-18 16:15:57 +01:00
cd armorcore/Deployment
2021-08-09 19:30:35 +02:00
strip ArmorPaint
./ArmorPaint ../../build/krom
2020-08-05 19:26:14 +02:00
```
2020-10-22 19:24:53 +02:00
**Windows VR** *wip*
2020-08-05 19:26:14 +02:00
```bash
2022-03-18 16:15:57 +01:00
# Unpack `armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB)
2022-03-22 13:49:01 +01:00
armorcore\Kinc\make --from armorcore -g direct3d11 --vr oculus
2021-08-09 19:30:35 +02:00
# Open generated Visual Studio project at `build\ArmorPaint.sln`
2020-12-08 00:23:16 +01:00
# Build and run for x64 & release
2022-04-19 08:03:30 +02:00
# Copy build\x64\Release\ArmorPaint.exe to build\krom to run ArmorPaint.exe directly
2020-08-07 15:22:56 +02:00
```
2020-10-22 19:24:53 +02:00
**Updating cloned repository**
2020-08-07 15:22:56 +02:00
```bash
2022-04-19 08:03:30 +02:00
git pull origin main
2019-10-10 14:33:28 +02:00
git submodule update --init --recursive
2020-09-08 23:15:17 +02:00
# Delete `armorpaint/build` directory if present
2019-10-10 14:33:28 +02:00
```
2020-10-22 19:24:53 +02:00
2020-11-03 15:19:41 +01:00
**Generating a locale file**
2020-06-25 01:37:07 +09:00
```bash
pip install typing_extensions -t Assets/locale/tools
python ./Assets/locale/tools/extract_locales.py <locale code>
2020-11-03 15:19:41 +01:00
# Generates an `Assets/locale/<locale code>.json` file
2020-06-25 01:37:07 +09:00
```
2020-11-14 12:34:28 +01:00
**Release builds** *Optional, used for best performance*
```bash
# Compile krom.js using the closure compiler
https://developers.google.com/closure/compiler
# Generate a v8 snapshot file
2022-03-22 13:49:01 +01:00
export ARM_SNAPSHOT=1
armorcore/Kinc/make --from armorcore -g api
2021-08-09 19:30:35 +02:00
./ArmorPaint . --snapshot
2020-11-14 12:34:28 +01:00
# Generates a `krom.bin` file from `krom.js` file
```