ComfyUI > Nodes > ComfyUI-SAM3DObjects > SAM3D Mesh Decode

ComfyUI Node: SAM3D Mesh Decode

Class Name

SAM3DMeshDecode

Category
SAM3DObjects
Author
PozzettiAndrea (Account age: 0days)
Extension
ComfyUI-SAM3DObjects
Latest Updated
2026-03-21
Github Stars
0.17K

How to Install ComfyUI-SAM3DObjects

Install this extension via the ComfyUI Manager by searching for ComfyUI-SAM3DObjects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-SAM3DObjects 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

SAM3D Mesh Decode Description

Transforms SLAT data into 3D meshes with vertex colors, offering quick conversion and post-processing.

SAM3D Mesh Decode:

The SAM3DMeshDecode node is designed to transform SLAT (Sparse Latent) data into a 3D mesh format, providing a fast and efficient way to generate vertex-colored meshes. This node is particularly beneficial for AI artists who need to convert latent representations into tangible 3D models quickly, with the entire process taking approximately 15 seconds. The node offers optional post-processing features, such as mesh simplification and hole filling, to enhance the quality and usability of the output mesh. The resulting GLB file can be further utilized in texture baking processes, making this node a crucial component in the 3D asset creation pipeline.

SAM3D Mesh Decode Input Parameters:

slat_decoder_mesh

This parameter represents the mesh decoder used to interpret the SLAT data. It is crucial for converting the latent data into a mesh format. The precision of the decoding process can be specified within this parameter, with a default setting of "bf16" for balanced performance and quality.

slat

The slat parameter is a string that points to the location of the SLAT data file. This data serves as the input for the decoding process, and its accuracy and completeness directly impact the quality of the resulting mesh.

with_postprocess

This boolean parameter determines whether post-processing steps, such as mesh simplification and hole filling, are applied to the decoded mesh. By default, it is set to False, meaning no post-processing is applied unless specified otherwise.

simplify

The simplify parameter is a float that controls the degree of mesh simplification during post-processing. It ranges from 0 to 1, with a default value of 0.95, where higher values result in more aggressive simplification, potentially reducing the mesh's complexity and file size.

up_axis

This parameter specifies the orientation of the up axis for the mesh, with options like "Y-up (standard)" being the default. It ensures that the mesh is correctly oriented in 3D space, which is essential for proper integration into various 3D environments.

world_coordinates

A boolean parameter that, when set to True, ensures the mesh is decoded using world coordinates, which can be important for maintaining spatial accuracy in certain applications. By default, it is set to False.

SAM3D Mesh Decode Output Parameters:

glb_path

The output parameter glb_path provides the file path to the saved vertex-colored GLB file. This file is the final product of the decoding process and can be used for further processing, such as texture baking or direct integration into 3D applications. The GLB format is widely supported and allows for easy sharing and use of the 3D model.

SAM3D Mesh Decode Usage Tips:

  • To achieve a balance between performance and mesh quality, consider adjusting the simplify parameter based on the complexity of your SLAT data and the intended use of the mesh.
  • Utilize the with_postprocess option to enhance the mesh's appearance by filling holes and simplifying geometry, especially if the initial output appears too complex or contains unwanted artifacts.

SAM3D Mesh Decode Common Errors and Solutions:

RuntimeError: GLB file was not generated

  • Explanation: This error occurs when the decoding process fails to produce a GLB file, possibly due to incorrect SLAT data or configuration issues.
  • Solution: Verify that the SLAT data is correctly formatted and accessible. Ensure that all input parameters are set correctly, and try running the process again. If the issue persists, check the logs for more detailed error messages that might indicate the root cause.

SAM3D Mesh Decode Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-SAM3DObjects
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.

SAM3D Mesh Decode