Files
Spellcast3d/README.md

148 lines
8.4 KiB
Markdown

# Spellcast3D
**[Windows Installer (Zip)](https://github.com/IgorAherne/spellcast3d/releases/latest)**  |  **[Linux Installer (Zip)](https://github.com/IgorAherne/spellcast3d/releases/latest)**
A free, open-source app specifically designed to <b>efficiently</b> make many game-ready 3D assets.</br>
Runs **on your own PC**, in a browser. You need 8GB vram NVIDIA gpu and 16GB ram.
<div align="center">
<a href="https://www.youtube.com/watch?v=PVsLIxGTDQM">
<img src="spellcast_yt_video_demo_banner.jpg" alt="Watch the Video" />
</a>
</div>
Using asynchronous loading and Qwen-Image 2.1 + Pixal3D + TriFlow / LATO.2 / Instant Meshes.</br>
Highly optimized by Claude Fable 5.2 over many iterations, down to c++ level.
The core idea is to develop several 3D assets simultaneously, when moving between stages.</br>
**All Images -> All 3D Generations -> All Retopology -> All Projection**</br>
Each neural net loads once per stage, and every 3D asset uses it.</br>
Saves a lot of time, because we're not juggling networks back and forth.</br>
So - the more 3D assets you create at once, the more time you save.
![4 assets made one at a time load a neural net 12 times; stage by stage, only 3 times](spellcast3d-stage-by-stage.gif)
<br>
| Stage | What it does | Tool |
|---|---|---|
| Images | render or import images or character sheets</br>create tileable textures | Qwen-Image 2.1 Turbo (built in)</br>FLUX.3 Klein / Forge Neo (optional) |
| 3D | picture (or several views) -> textured high-poly mesh | [Pixal3D](https://github.com/IgorAherne/Pixal3D), optionally [Hi3D](http://hi3d.ai/) for the shape |
| Omni-Texture | optional: repaints the colours, sharper, from 8 sides | Qwen-Image 2.1</br>Our albedo LoRA: [Marigold V2](https://github.com/huawei-bayerlab/marigold-v2)'s recipe</br>Detail: [4xNomos2](https://huggingface.co/Phips/4xNomos2_hq_mosr) (Upscaled) or [SeedVR2-3B](https://huggingface.co/ByteDance-Seed/SeedVR2-3B) (Detailed) |
| Retopo | clean low-poly mesh with UVs | [TriFlow](https://github.com/IgorAherne/triflow), [LATO.2](https://github.com/IgorAherne/LATO2-stableprojectorz) or [Instant Meshes](https://github.com/IgorAherne/instant-meshes-py) |
| Projection | bakes the detailed textures onto the clean mesh</br>Export GLB, FBX, OBJ + PBR maps | Spellcast3D's own baker |
## Requirements
- Windows 10 or 11, 64-bit, or Linux (see [Linux](#linux) below)
- NVIDIA graphics card with 8 GB of video memory or more, GTX 10xx series or newer</br>(RTX 30xx and newer are
the fastest)
- 16 GB of RAM
- About 92 GB of free disk space: downloads libraries, AI models
Don't worry about Python, git or CUDA: they are inside the zip.
## Install
1. Download `spellcast3d-<version>-windows.zip` from the
[Releases page](https://github.com/IgorAherne/spellcast3d/releases)
2. Unzip it to a **short** place with only English letters, for example straight into `C:\`: the zip holds one
folder, `spellcast3d`, so that gives `C:\spellcast3d`.
3. Double-click `run-browser\run-spellcast3d.bat`.
Initial startup takes a few minutes and opens your browser.</br>
The AI tools then install in the background (30 to 90 minutes, mostly downloads).
### Linux
The same cards and the same stages. You need a 64-bit Linux with glibc 2.35 or newer (Ubuntu 22.04,
Debian 12, Fedora 36, or later), NVIDIA's own driver 570 or newer, `git`, `curl`, `unzip` and a C compiler
(Ubuntu / Debian: `sudo apt install git curl unzip build-essential`).</br>
1. Download `spellcast3d-<version>-linux.zip` from the
[Releases page](https://github.com/IgorAherne/spellcast3d/releases)
2. Unzip it into a short place, for example your home folder: the zip holds one folder, `spellcast3d`.
3. In a terminal, in that folder: `./run-browser/run-spellcast3d.sh`
The first start downloads Spellcast3D's own Python into the folder and then goes on as on Windows.</br>
Nothing else is installed into your system. Update with `tools/update.sh`.
## Image generators
Pick one per asset on the Images page, under *Model*:
| Model | Speed</br>(1024 x 1024, RTX 3060) | Notes |
|---|---|---|
| **Qwen-Image 2.1 Turbo** | ~15 s | the default; installed at the first start |
| **Qwen-Image 2.1 Full** | ~31 s | sometimes finer detail;</br>a 4.2 GB download, on request |
| **FLUX.3 Klein** | ~30 s | follows *long prompts* best, no transparent background;</br>a 6.8 GB download, on request |
All three take your words and up to 10 example pictures.</br>They can redraw the picture in the viewport with
marks you paint over it.</br>Resolutions: 1K, 1.5K and 2K.
**Forge Neo** is also supported.</br>Open `spellcast3d-config.ini` with Notepad before the
first start and switch the backend:
```ini
; backend = qwen
backend = forge
```
The same file sets the size of the built-in models (`quality`, `text_encoder`).</br>
A bigger size is a little finer and needs more memory. The file explains each setting.
## Models and disk space
AI models (neural nets) live in the `models` folder.</br>
Updates and reinstalls never touch it.</br>
Already have neural nets? Put them there first to skip download (see [`models/README.txt`](models/README.txt)).
| Folder | What | Size |
|---|---|---|
| `models\qwen-image` | Qwen-Image 2.1 | ~11 GB (+4.2 GB for Full) |
| `models\flux3-klein` | FLUX.3 Klein, optional | 6.8 GB |
| `models\checkpoints` | your image models for Forge Neo | yours |
| `models\pixal3d` | Pixal3D | ~27 GB, + up to 14 GB of faster-loading copies |
| `models\pixal3d` | multi-view models, optional | 22 GB, + up to 14 GB of copies |
| `models\hi3d` | Hi3D, optional | 11.4 GB |
| `models\lato2` | LATO.2 | 4.8 GB |
| `models\triflow` | TriFlow | 1.3 GB |
Finished assets are saved into the `exports` folder, one folder per asset.
## Updating
Close Spellcast3D and run `tools\update.bat`</br>
It downloads the newest version and reinstalls only what changed.</br>
Your projects, your settings and the `models` folder are kept.
## Licences
Each part keeps its own licence. Read them before selling anything you make: some parts allow
non-commercial use only. [`README - LICENSE.txt`](README%20-%20LICENSE.txt) lists them all, with the
notices some of them ask for.
| Part | Licence |
|---|---|
| Spellcast3D, including its baker | [AGPL-3.0](LICENSE) |
| Qwen-Image 2.1 | [Qwen Research License](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/d26bb61231c349cf6b7896fa83353113880e1ba3/LICENSE) (renders/generations can be used commercially:</br>[Qwen's statement](https://x.com/QwenDevs/status/2101917379785838660)) |
| Spellcast3D Albedo LoRA | [Qwen Research License](https://huggingface.co/IgorAherne/spellcast3d-marigold-albedo-qwen-image-2.1/blob/main/LICENSE) (renders/generations can be used commercially) |
| 4xNomos2_hq_mosr (Omni-Texture's "Upscaled" detail) | [CC BY 4.0](https://huggingface.co/Phips/4xNomos2_hq_mosr), by Philip Hofmann |
| SeedVR2-3B (Omni-Texture's "Detailed" detail) | [Apache-2.0](https://huggingface.co/ByteDance-Seed/SeedVR2-3B), by ByteDance Seed; run by [numz's SeedVR2 runner](https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler) (Apache-2.0) |
| FLUX.3 Klein (optional) | [FLUX Kommunity License](https://huggingface.co/unsloth/flux-3-image-klein-GGUF/blob/12ef13ce920d53f45fe805093910c899668b9e76/LICENSE.md) |
| Forge Neo (optional) | [AGPL-3.0](https://github.com/IgorAherne/stable-diffusion-webui-forge/blob/neo/LICENSE), and the licence of each image model you use with it |
| Pixal3D | [MIT](https://github.com/IgorAherne/Pixal3D/blob/master/LICENSE); parts it downloads: [RMBG-2.0](https://huggingface.co/briaai/RMBG-2.0), [nvdiffrast](https://github.com/NVlabs/nvdiffrast/blob/main/LICENSE.txt), [nvdiffrec](https://github.com/NVlabs/nvdiffrec/blob/main/LICENSE.txt), [DINOv3](https://github.com/facebookresearch/dinov3/blob/main/LICENSE.md) |
| Hi3D (optional) | [Hi3D Open License Agreement](https://huggingface.co/hi3d-official/Hi3Dv1.0/blob/d502e938cbedc6e87aba8884614c5ca6d177a4b6/LICENSE) |
| TriFlow | [ADPNCL 1.0](https://github.com/IgorAherne/triflow/blob/main/LICENSE); part it downloads: [MeshLib](https://github.com/MeshInspector/MeshLib/blob/master/LICENSE) |
| LATO.2 | [MIT](https://github.com/IgorAherne/LATO2-stableprojectorz/blob/master/LICENSE) |
| Instant Meshes | [BSD-3-Clause](https://github.com/IgorAherne/instant-meshes-py/blob/master/LICENSE.txt) |
## For developers and LLMs
Building from source, rebuilding the wheels and making a release: [`DEVELOPERS.md`](DEVELOPERS.md).
## Community
[Discord](https://discord.gg/yg4dABJpyZ)</br>
[Website](https://spellcast3d.com)