Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-UltraTex > UltraTex Prep (mesh + reference)

ComfyUI Node: UltraTex Prep (mesh + reference)

Class Name

UltraTexPrep

Category
UltraTex
Author
visualbruno (Account age: 5879days)
Extension
ComfyUI-UltraTex
Latest Updated
2026-10-10
Github Stars
0.03K

How to Install ComfyUI-UltraTex

Install this extension via the ComfyUI Manager by searching for ComfyUI-UltraTex
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-UltraTex in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

UltraTex Prep (mesh + reference) Description

Transforms untextured 3D mesh and reference image for multi-view 3D texturing in UltraTex pipeline.

UltraTex Prep (mesh + reference):

UltraTexPrep is a sophisticated node designed to transform an untextured 3D mesh and a reference image into a set of conditions suitable for UltraTex's multi-view 3D texturing process. This node is integral to the UltraTex pipeline, which is aimed at creating high-quality textures for 3D models using a diffusion-based approach. The primary function of UltraTexPrep is to prepare the mesh by normalizing its vertices, calculating normals, and generating UV mappings, which are essential for rendering and baking textures. It also aligns the reference image to the mesh's front view, ensuring that the textures are accurately applied. By providing a structured and normalized representation of the mesh, UltraTexPrep facilitates the subsequent steps in the UltraTex pipeline, ultimately leading to the creation of detailed and realistic textures.

UltraTex Prep (mesh + reference) Input Parameters:

mesh_obj

The mesh_obj parameter represents the 3D mesh object that you want to texture. This mesh is processed to extract vertices, normals, and faces, which are essential for rendering and baking textures. The quality and complexity of the mesh can significantly impact the final texture results.

reference_rgba

The reference_rgba parameter is a 4-channel RGBA image that serves as a reference for aligning and texturing the mesh. This image is aligned to the front view of the mesh, providing a visual guide for texture application. The alignment ensures that the textures are applied consistently across different views.

render_size

The render_size parameter determines the resolution at which the mesh is rendered during the preparation process. A higher render size can lead to more detailed textures but may require more computational resources. The default value is typically set to balance quality and performance.

atlas_size

The atlas_size parameter specifies the size of the texture atlas used for UV mapping. This size affects how the UVs are laid out and can influence the texture's resolution and detail. Choosing an appropriate atlas size is crucial for achieving high-quality textures.

uv_mode

The uv_mode parameter dictates how the UV mapping is handled. Options include keeping existing UVs or generating new ones using different methods. The choice of UV mode can affect the texture's appearance and the presence of seams.

ref_align

The ref_align parameter controls how the reference image is aligned to the mesh. Proper alignment is essential for ensuring that the textures are applied accurately and consistently across the mesh's surface.

UltraTex Prep (mesh + reference) Output Parameters:

vertices

The vertices output is an array of normalized vertex positions of the mesh. These vertices are essential for rendering and baking processes, as they define the mesh's shape and structure.

normals

The normals output provides the normalized normals of the mesh's vertices. Normals are crucial for lighting calculations and texture application, as they determine how light interacts with the surface.

faces

The faces output is an array of indices defining the mesh's triangular faces. These faces are used in rendering and baking to determine how the mesh's surface is constructed.

uvs

The uvs output contains the UV coordinates for the mesh's vertices. These coordinates map the 2D texture onto the 3D mesh, ensuring that the texture is applied correctly.

centre

The centre output is the calculated center of the mesh, used for normalizing the vertex positions. This normalization ensures that the mesh is consistently scaled and positioned.

scale

The scale output is a scalar value used to normalize the mesh's size. This scaling ensures that the mesh fits within a standard coordinate space, facilitating consistent texture application.

normal_rgba

The normal_rgba output is an array of rendered normal maps for the mesh, encoded in RGBA format. These maps are used to simulate surface details and lighting effects.

reference_rgba

The reference_rgba output is the aligned reference image, adjusted to match the mesh's front view. This alignment ensures that the textures are applied consistently across different views.

render_size

The render_size output confirms the resolution used for rendering the mesh during preparation. This size affects the detail and quality of the resulting textures.

UltraTex Prep (mesh + reference) Usage Tips:

  • Ensure that your mesh is clean and well-structured before using UltraTexPrep to avoid issues during the preparation process.
  • Choose an appropriate render_size and atlas_size to balance texture quality and computational resources.
  • Use the uv_mode that best suits your mesh's needs, whether it's keeping existing UVs or generating new ones.

UltraTex Prep (mesh + reference) Common Errors and Solutions:

Mesh has no usable UVs, falling back to the GPU unwrapper

  • Explanation: This error occurs when the mesh lacks existing UVs, and the uv_mode is set to keep existing UVs.
  • Solution: Ensure that your mesh has valid UVs or allow the node to generate new UVs using the GPU unwrapper.

ComfyUI's UV unwrapper is unavailable

  • Explanation: This error indicates that the GPU-based UV unwrapper is not available, possibly due to missing dependencies.
  • Solution: Install the necessary dependencies or switch to an alternative UV unwrapping method like xatlas.

UltraTex Prep (mesh + reference) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-UltraTex
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

UltraTex Prep (mesh + reference)