> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# UltraTex：在 ComfyUI 中用一张图像为 3D 模型制作纹理

> 在 ComfyUI 中借助运行于 FLUX.2 Klein 9B 的 UltraTex，为未贴图的 3D 网格制作纹理：渲染六个法线视图，绘制 albedo 与 metallic/roughness，并烘焙 PBR GLB。

**UltraTex** 可以从单张参考图像为 3D 网格生成纹理。它是来自 SIGGRAPH Asia 2026 的 2K 多视角纹理框架，在 ComfyUI 中运行于 FLUX.2 Klein base 9B 主干之上：UltraTex LoRA 将该模型改造为纹理生成器，UltraTex VAE 则保证渲染出的视图保持干净。

只需给它一个未贴图的网格，外加一张展示物体外观的图片。该工作流会从六个世界法线视图渲染网格，在一遍中绘制反照率，在另一遍中绘制金属度/粗糙度，将两者烘焙到网格 UV 上，并保存带有 PNG 贴图的 PBR GLB。它需要 ComfyUI **0.46.0+** 和模板包 **0.11.115+**。

## 为 3D 模型添加纹理

在 **Load 3D (Advanced)** 中加载网格，在 **Load Image** 中加载参考图像，然后运行工作流。模板自带一个青蛙雕像网格及其上色版本，因此下载后即可直接运行。

![UltraTex 从一张参考图像为青蛙雕像网格添加纹理](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/3d_ultratex_texture_3d_model-1.webp)

> [!TIP]
>
> > [tab] 本地用户
> >
> > 请确保你的 ComfyUI 已经更新。
> >
> > * [ComfyUI 下载](https://www.comfy.org/download)
> > * [ComfyUI 更新教程](https://docs.comfy.org/zh/installation/update_comfyui.md)
> >
> > 本指南里的工作流可以在[工作流模板](https://docs.comfy.org/zh/interface/features/template.md)中找到。如果找不到，可能是 ComfyUI 没有更新。
> >
> > 如果加载工作流时有节点缺失，可能原因有：
> >
> > 1. 你用的不是最新版（每夜版）。
> > 2. 启动时有些节点导入失败。
>
> > [tab] 云端用户
> >
> > * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新。
> >
> > 所以，如果你发现本文档中有任何核心节点缺失，可能是因为新核心节点尚未在最新稳定版中发布。请等待下一个稳定版发布。

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/3d_ultratex_texture_3d_model.json)
>
> 下载 JSON 或在模板库中搜索“UltraTex: Texture a 3D Model”

**输入素材**

> [card] [sir\_frog.obj](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/sir_frog.obj)
>
> 要添加纹理的网格，在 Load 3D (Advanced) 中打开

> [card] [sir\_frog.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/sir_frog.png)
>
> 参考图：对象应呈现的样子

## 需要修改的内容

* **加载 3D（高级）**：你的网格，以及拍摄正视图所用的相机。烘焙会复用同一套相机装置。
* **加载图像**：从正面相机一侧看到的参考图，因为它会落在正视图上。保持一个物体只有一个朝向。
* **渲染网格分辨率**（1024）决定渲染图像和 Latent 的尺寸。**纹理分辨率**（4096）决定烘焙贴图的尺寸。
* **反照率通道**在种子 1 下运行 4 步。**金属度/粗糙度通道**在种子 4 下运行 8 步。
* **相机环绕**固定为四个侧视图加上顶部和底部，共六个视图。UltraTex Conditioning 只接受这六个视图，或仅四个侧视图，因此缩减环绕视角时需把 Latent 批处理大小改为 4。

## 运行之前

* 网格必须已经具有 UV。烘焙和应用步骤会复用这些 UV，且没有展开步骤。
* 种子只改变表面细节。轮廓始终来自网格。
* `fill_unseen` 会把颜色填充到任何视角都未看到的 texel 中。关闭它可在这些区域保留网格自身的纹理。

## 模型下载

七个文件需放入 `ComfyUI/models` 下。随附的节点图需要 13.16 GB；将 checkpoint 更换为全精度版本后，会增至 21.87 GB。

> [card] [Diffusion 模型：flux-2-klein-base-9b\_int8\_convrot.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/diffusion_models/flux-2-klein-base-9b_int8_convrot.safetensors)
>
> FLUX.2 Klein base 9B，INT8，9.44 GB。放入 `ComfyUI/models/diffusion_models/`

> [card] [蒸馏 LoRA：flux-2-klein-9b\_distill\_lora\_avg\_rank\_345\_bf16.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/loras/flux-2-klein-9b_distill_lora_avg_rank_345_bf16.safetensors)
>
> 以强度 0.5 加载，1.96 GB。放入 `ComfyUI/models/loras/`

> [card] [Albedo LoRA：ultratex\_flux2\_klein\_9b\_albedo\_lora\_bf16.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/loras/ultratex_flux2_klein_9b_albedo_lora_bf16.safetensors)
>
> Albedo 通道，478 MB。放入 `ComfyUI/models/loras/`

> [card] [金属度/粗糙度 LoRA：ultratex\_flux2\_klein\_9b\_metallic\_roughness\_lora\_bf16.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/loras/ultratex_flux2_klein_9b_metallic_roughness_lora_bf16.safetensors)
>
> 金属度/粗糙度通道，478 MB。放入 `ComfyUI/models/loras/`

> [card] [Embedding：flux-2-klein-9b\_empty\_prompt.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/embeddings/flux-2-klein-9b_empty_prompt.safetensors)
>
> 预编码的空提示词，25 MB。放入 `ComfyUI/models/embeddings/`

> [card] [VAE：ultratex\_flux2\_vae\_fp32.safetensors](https://huggingface.co/Comfy-Org/UltraTex/resolve/main/vae/ultratex_flux2_vae_fp32.safetensors)
>
> UltraTex VAE，FP32，336 MB。放入 `ComfyUI/models/vae/`

> [card] [背景移除：birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)
>
> 为参考图像生成遮罩，444 MB。放入 `ComfyUI/models/background_removal/`

**模型存储位置**

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 diffusion_models/
│   │   └── flux-2-klein-base-9b_int8_convrot.safetensors
│   ├── 📂 loras/
│   │   ├── flux-2-klein-9b_distill_lora_avg_rank_345_bf16.safetensors
│   │   ├── ultratex_flux2_klein_9b_albedo_lora_bf16.safetensors
│   │   └── ultratex_flux2_klein_9b_metallic_roughness_lora_bf16.safetensors
│   ├── 📂 embeddings/
│   │   └── flux-2-klein-9b_empty_prompt.safetensors
│   ├── 📂 vae/
│   │   └── ultratex_flux2_vae_fp32.safetensors
│   └── 📂 background_removal/
│       └── birefnet.safetensors
```

该节点图不加载文本编码器：`Load Conditioning` 会改为读取预编码的空提示词。模型权重采用 [FLUX 非商业许可证](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B/blob/main/LICENSE.md)。论文和代码：[arXiv 上的 UltraTex](https://arxiv.org/abs/2609.23169)、[yiboz2001/UltraTex](https://github.com/yiboz2001/UltraTex)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.