ComfyUI > Nodes > ComfyUI-SAM3DObjects > SAM3D Scene Generate

ComfyUI Node: SAM3D Scene Generate

Class Name

SAM3DSceneGenerate

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 Scene Generate Description

Transforms 2D images into 3D objects using masks for dynamic, immersive scenes.

SAM3D Scene Generate:

The SAM3DSceneGenerate node is designed to transform 2D image data into 3D objects by processing batches of masks. This node is particularly useful for AI artists who want to convert flat images into three-dimensional scenes, allowing for more dynamic and immersive visual experiences. By leveraging advanced 3D modeling techniques, the node takes input images and associated masks to generate detailed 3D objects, which can then be used in various creative projects. The node's primary goal is to facilitate the creation of 3D content from 2D sources, making it an essential tool for artists looking to expand their creative horizons into the realm of 3D modeling.

SAM3D Scene Generate Input Parameters:

generator

This parameter requires a SAM3D_MODEL type, which acts as the primary generator model for the 3D scene creation process. It is crucial for defining the foundational structure of the 3D objects generated from the input masks.

slat_decoder_gs

This SAM3D_MODEL type parameter is the Gaussian decoder, necessary when add_textures is set to true. It helps in adding realistic textures to the generated 3D objects, enhancing their visual appeal.

slat_decoder_mesh

Another SAM3D_MODEL type, this parameter is the mesh decoder, which is essential for constructing the mesh framework of the 3D objects. It ensures that the objects have a solid and accurate 3D structure.

image

An IMAGE type parameter that serves as the input RGB image. This image is the source from which the 3D objects are derived, and its quality directly impacts the detail and accuracy of the generated objects.

masks

This MASK type parameter consists of a batch of masks in the format [N, H, W], where each mask corresponds to a potential 3D object. The masks define the areas of the image that will be converted into 3D objects.

intrinsics

A SAM3D_INTRINSICS type parameter that provides camera intrinsics from SAM3DDepthEstimate. These intrinsics are vital for accurately mapping the 2D image data into a 3D space, ensuring proper perspective and depth.

pointmap

The SAM3D_POINTMAP type parameter is a pointmap tensor from SAM3DDepthEstimate. It provides depth information that is crucial for accurately positioning the 3D objects within the scene.

seed

An INT type parameter used as a random seed for generation, with a default value of 42. It has a minimum value of 0 and a maximum of 2^31 - 1. This seed ensures reproducibility of the 3D generation process, allowing for consistent results across multiple runs.

SAM3D Scene Generate Output Parameters:

base_output_dir

This output parameter provides the directory path where the generated 3D objects are stored. It is essential for accessing and utilizing the 3D models created by the node, allowing you to easily locate and manage your generated content.

SAM3D Scene Generate Usage Tips:

  • Ensure that the input image is of high quality to achieve detailed and accurate 3D objects. The better the input, the more realistic the output.
  • Utilize the add_textures option to enhance the visual appeal of your 3D objects, especially if they will be used in visually demanding projects.

SAM3D Scene Generate Common Errors and Solutions:

"Invalid input type for generator"

  • Explanation: This error occurs when the generator parameter is not of the SAM3D_MODEL type.
  • Solution: Ensure that the generator input is correctly loaded as a SAM3D_MODEL type from the LoadSAM3DModel node.

"Masks dimension mismatch"

  • Explanation: This error indicates that the masks provided do not match the expected dimensions [N, H, W].
  • Solution: Verify that the masks are correctly formatted and match the dimensions specified in the node's requirements.

"Missing camera intrinsics"

  • Explanation: This error arises when the camera intrinsics parameter is not provided or is incorrect.
  • Solution: Ensure that the intrinsics parameter is correctly obtained from the SAM3DDepthEstimate node and is of the SAM3D_INTRINSICS type.

SAM3D Scene Generate 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 Scene Generate