Coder Social home page Coder Social logo

armory3d / armorlab Goto Github PK

View Code? Open in Web Editor NEW
166.0 9.0 18.0 4.65 MB

Moved to https://github.com/armory3d/armortools/tree/main/armorlab

Home Page: https://armorlab.org

License: Other

Haxe 98.22% JavaScript 1.31% Python 0.27% GLSL 0.20%
tool texturing ai

armorlab's Introduction

armorlab

ArmorLab is a software for AI-powered texture authoring - check out the manual.

Note 1: This repository is aimed at developers and may not be stable. Distributed binaries are paid 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 2: If you are compiling git version of ArmorLab, then you need to have a compiler (Visual Studio - Windows, clang + deps - Linux, Xcode - macOS / iOS, Android Studio - Android) and git installed.

git clone --recursive https://github.com/armory3d/armorlab
cd armorlab
# Unpack `models.zip` from https://github.com/armory3d/armorai/releases into `Assets/models` using 7-Zip - Extract Here

Windows

# Unpack `armorcore\v8\libraries\win32\release\v8_monolith.7z` using 7-Zip - Extract Here (exceeds 100MB)
armorcore\Kinc\make --from armorcore -g direct3d11
# Open generated Visual Studio project at `build\ArmorLab.sln`
# Build and run for x64 & release
# Copy build\x64\Release\ArmorLab.exe to build\krom to run ArmorLab.exe directly

Linux wip - cpu only

armorcore/Kinc/make --from armorcore -g opengl --compiler clang --compile
cd armorcore/Deployment
strip ArmorLab
./ArmorLab ../../build/krom

macOS wip - apple silicon only

armorcore/Kinc/make --from armorcore -g metal
cp -a build/krom/ armorcore/Deployment
# Open generated Xcode project at `build/ArmorLab.xcodeproj`
# Build and run

Android wip

iOS wip

Windows DXR wip

# 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
armorcore\Kinc\make --from armorcore -g direct3d12
# Open generated Visual Studio project at `build\ArmorLab.sln`
# Build and run for x64 & release
# Copy build\x64\Release\ArmorLab.exe to build\krom to run ArmorLab.exe directly

Linux VKRT wip

Updating cloned repository

git pull origin main
git submodule update --init --recursive
# Delete `armorlab/build` directory if present

Generating a locale file

pip install typing_extensions -t Assets/locale/tools
python ./Assets/locale/tools/extract_locales.py <locale code>
# Generates an `Assets/locale/<locale code>.json` file

Release builds Optional, used for best performance

# Compile krom.js using the closure compiler
https://developers.google.com/closure/compiler
# Generate a v8 snapshot file
export ARM_SNAPSHOT=1
armorcore/Kinc/make --from armorcore -g api
./ArmorLab . --snapshot
# Generates a `krom.bin` file from `krom.js` file

armorlab's People

Contributors

luboslenco avatar mathemanflo avatar rpaladin avatar shiena avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

armorlab's Issues

Error LNK1181 and 2001 when compiling

When attempting to compile I get these errors:
image

Attempted to fix by adding/models to the path. After I get this error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1181	cannot open input file 'C:\Users\jacob\Documents\armorlab\Assets\models.obj'	ArmorLab	C:\Users\jacob\Documents\armorlab\build\LINK	1	

Seeming to be missing models.obj which I can not find reference to anywhere

Complete freeze but no crash when hitting Run

ArmorLab version:
0.1dev, tried with DXR version as well, same issue

OS/device including version:
Windows 10, RTX 2070, latest drivers for my card (516.94, released 08/09/2022 MM/DD/YYYY), tried both standard and DXR builds

Issue description:

Upon clicking the Run button, the window dims and "processing" appears at the bottom, and then it just freezes. I can close the program by hitting the X button, but everything inside the window is frozen. stderr is piped to a file in the executable directory, containing 2 unique error messages, a single of the first, and many copies of the second:

    at DataView.setFloat32 (<anonymous>)
    at nb.setFloat (krom_cache:159:438)
    at li.get (krom_cache:561:428)
    at wj.get (krom_cache:531:51)
    at dd.get (krom_cache:369:35)
    at krom_cache:790:308
    at update (krom_cache:189:499)
    at pj.task (krom_cache:183:90)
    at Function.executeTimeTasks (krom_cache:181:163)
    at Function.executeFrame (krom_cache:179:331)
    at DataView.setFloat32 (<anonymous>)
    at nb.setFloat (krom_cache:159:438)
    at li.get (krom_cache:561:428)
    at wj.get (krom_cache:531:51)
    at dd.get (krom_cache:369:35)
    at krom_cache:790:308
    at Array.render (krom_cache:191:227)
    at Function.render (krom_cache:1140:243)
    at renderCallback (krom_cache:1142:3)

Steps to reproduce:

import any texture, connect to output and hit run.
Untitled

Tiling algoruthm is broken kinda

image
this is what the tiling node dose to the brick texture and idk if it is a bug or somthing but i wanted to make you aware of it

Errors when building the .sln

In the Windows Installation Process i'm stuck here: # Build and run for x64 & release

When building the solution i get a few errors in the armorlab\Libraries\plugins\Sources\plugins.cpp File and don't end up with an ArmorLab.exe.
Seems to me like some missing definitions for the ArrayBuffer::Contents stuff coming from the v8 namespace. Would love some guidance.

Capture

ArmorLab.org - v0.1
Windows - Direct3D11
NVIDIA GeForce RTX 3090

Crash app

Crash app on push run button
Videocard 850M
image
image
image

DXR version not running

PBR extractor dosn't work

using one of the sample images you can see that the pbr extractor dose nothing after completing it's run
image
ArmorLab.org - v0.1 (2022-09-29) - dcc6500
Windows - Direct3D11
NVIDIA GeForce RTX 3060

Will ArmorLab support non-Nvidia GPUs?

Usually AI-based software depends on CUDA for operation, which limits the user base to people who have Nvidia GPUs.

Are there plans to support other GPU vendors as well?

Build warning

ArmorLab version:
4b6eaec

OS/device including version:

  • Windows11
  • GeForce GTX1080Ti
  • non-DXR

Issue description:

I get a warning when building with VS2022 17.4.2.

"C:\Users\shiena\dev\armorlab\build\ArmorLab.sln" (既定のターゲット) (1) ->
"C:\Users\shiena\dev\armorlab\build\ArmorLab.vcxproj" (既定のターゲット) (2) ->
(ClCompile ターゲット) ->
  C:\Users\shiena\dev\armorlab\armorcore\Sources\main.cpp(911,8): warning C4996: 'std::ostrstream': warning STL4005: <str
stream> is deprecated in C++17. You can define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECA
TION_WARNINGS to suppress this warning. [C:\Users\shiena\dev\armorlab\build\ArmorLab.vcxproj]
  C:\Users\shiena\dev\armorlab\armorcore\Sources\main.cpp(911,23): warning C4996: 'std::ostrstream::ostrstream': warning
STL4005: <strstream> is deprecated in C++17. You can define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING or _SILENCE_ALL_
CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\shiena\dev\armorlab\build\ArmorLab.vcxproj]
  C:\Users\shiena\dev\armorlab\armorcore\Sources\main.cpp(1063,8): warning C4996: 'std::ostrstream': warning STL4005: <st
rstream> is deprecated in C++17. You can define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPREC
ATION_WARNINGS to suppress this warning. [C:\Users\shiena\dev\armorlab\build\ArmorLab.vcxproj]
  C:\Users\shiena\dev\armorlab\armorcore\Sources\main.cpp(1063,23): warning C4996: 'std::ostrstream::ostrstream': warning
 STL4005: <strstream> is deprecated in C++17. You can define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING or _SILENCE_ALL
_CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\shiena\dev\armorlab\build\ArmorLab.vcxproj]

Compiled like Armorypaint but it crashes when I click run button

Hello, I compiled armorlab project like armorypaint and copied armorcore/build/x64/release folder content to armorlab/build/krom. Yes armorlab.exe works. I can add a texture and can save the project. I added Image texture node and connected to photo to pbr node. When I click run button, program crashes after a while. Can you help me about how it works?

Thanks in advance

Screenshot_1

Texture file :
texture

ArmorLab Not Responding when hitting run button

ArmorLab version:
545b2ad
OS/device including version:

Ryzen 3 3100
16 GB RAM
MSI GeForce RTX 2080 Super
GeForce Game-Ready driver 471.68

Issue description:

I loaded a picture I quickly took to test (it was stable), and setup the image for tiling, then hooked it up and hit run. ArmorLab proceeded to have a status of Not Responding for about 5 minutes until I used Alt+F4 to close the program. My PC did kick up quite a bit during the process.
Steps to reproduce:

Image of the interface:
image
Picture used (for reference):
image
Node Setup:
image
Not responding screen after hitting run & image of Task Manager:
image
image
Welp, that's all I got.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.