The 3D Object Generation Blueprint is an end-to-end generative AI workflow that allows users to prototype 3D scenes quickly by simply describing the scene. The Blueprint takes a user's 3D scene idea, generates object recommendations, associated prompts and previews using a Llama 3.1 8B LLM and NVIDIA SANA, and ready-to-use 3D objects with Microsoft TRELLIS.
This blueprint supports the following NVIDIA GPUs: RTX 5090, RTX 5080, RTX 4090, RTX 4080, RTX 6000 Ada. We're planning to add wider GPU support in the near future. We recommend at least 48 GB of system RAM.
Before you begin, ensure you have:
Note: gsplat is installed from a prebuilt wheel with CUDA kernels precompiled for Ampere (sm_86), Ada (sm_89), and Blackwell (sm_120). No JIT compilation or build tools are required.
Step 1: Clone the repository with submodules:
git clone --recurse-submodules https://github.com/NVIDIA-AI-Blueprints/3d-object-generation.git
Step 2: Set the required environment variables:
# PowerShell
$env:CUDA_HOME = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8"
$env:HF_TOKEN = "your_huggingface_token_here"
# Command Prompt
set CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
set HF_TOKEN=your_huggingface_token_here
Note: Adjust the
CUDA_HOMEpath if your CUDA 12.8 is installed in a different location.
Step 3: Open PowerShell as Administrator and navigate to this repository. Run the automated installation script. Select (n) if prompted to re-clone the repo:
.\setup_environment.ps1
The setup script will automatically:
Optional Parameters:
.\setup_environment.ps1 -InstallPath "D:\my-custom-path" -CondaEnvName "myenv"
| Parameter | Default | Description |
|---|---|---|
-InstallPath | C:\3d-object-generation | Where to install the project |
-CondaEnvName | 3dwithtrellis | Name of the Conda environment |
Note: The installation process may take 30-60 minutes depending on your internet connection and hardware.
This blueprint requires Blender 4.2+ for the add-on integration. You can download and install manually from:
Or via winget:
winget install --id 9NW1B444LDLW
Note: Blender can be installed before or after the main setup. The installation script will automatically copy the add-ons to your Blender installation.
You can customize the following settings in config.py:
# Model name from HuggingFace
# Qwen3-4B: "Qwen/Qwen3-4B" (4B params)
# Llama-3.1-8B: "meta-llama/Llama-3.1-8B-Instruct" (8B params)
NATIVE_LLM_MODEL = "Qwen/Qwen3-4B"
# Precision options: "float16", "bfloat16", "float32", "int4" (for GPTQ)
NATIVE_LLM_PRECISION = "bfloat16"
The application automatically manages GPU memory across three models:
Memory Management Strategy:
There are two ways to run the application:
| Method | Best For | Description |
|---|---|---|
| Blender Add-on (Recommended) | 3D artists using Blender | Start services from within Blender, with integrated asset import |
| Standalone | Testing or non-Blender workflows | Run python app.py manually from command line |
Both methods launch the same Gradio web interface. If you're working in Blender, use the add-on — there's no need to run python app.py separately.
The 3D Object Generation add-on launches and manages all services directly from Blender.
E:\3d-object-generation)To stop services and free GPU memory, click Services Started .. Click to Terminate.
If you prefer to run the application outside of Blender:
conda activate 3dwithtrellis
cd C:\3d-object-generation
python app.py
💡 Recommended: For the best experience, use the light theme by accessing the application with: http://127.0.0.1:7860/?__theme=light
⚠️ Important Note: Browser refresh is not supported and may cause the application to crash. In that case, please restart the application instead.
To stop the application and free VRAM, simply press Ctrl+C in the terminal where the application is running.
Once the application is running, you can:
Scene Planning:
Asset Generation:
The LLM will automatically create prompts for suggested items which will be sent to the 2D image generator
Each image contains additional controls
Convert all images to 3D Objects (Delete unwanted images before converting to 3D)
NOTE: Image to 3D Object processing takes up to 45 seconds per object on a RTX 5090, when using the Convert All image option this time will be a multiple of the number of objects being converted, using the Convert All option may take a significant amount of time. The UI will not be updated until all objects have been converted.
Save Objects:
Blender Integration:
config.py Key Settings# =============================================================================
# LLM Settings
# =============================================================================
NATIVE_LLM_MODEL = "Qwen/Qwen3-4B" # HuggingFace model ID
NATIVE_LLM_PRECISION = "bfloat16" # float16, bfloat16, or int4 (for GPTQ)
# =============================================================================
# Logging
# =============================================================================
VERBOSE = False # Detailed timing/memory logs
CUDA not found during installation
CUDA_HOME before running install.bat:
# PowerShell
$env:CUDA_HOME = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8"
# Command Prompt
set CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
Get-ChildItem "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\"
Out of VRAM
Slow LLM inference
requirements.txt has gradio==5.50.0Model download fails
set HF_TOKEN=your_tokenTRELLIS import errors
git submodule update --init --recursive
Installation Issues:
VERBOSE = True in config.pyApache 2.0 - See LICENSE for details.
The 3D Object Generation Blueprint is an end-to-end generative AI workflow that allows users to prototype 3D scenes quickly by simply describing the scene. The Blueprint takes a user's 3D scene idea, generates object recommendations, associated prompts and previews using a Llama 3.1 8B LLM and NVIDIA SANA, and ready-to-use 3D objects with Microsoft TRELLIS.
This blueprint supports the following NVIDIA GPUs: RTX 5090, RTX 5080, RTX 4090, RTX 4080, RTX 6000 Ada. We're planning to add wider GPU support in the near future. We recommend at least 48 GB of system RAM.
Before you begin, ensure you have:
Note: gsplat is installed from a prebuilt wheel with CUDA kernels precompiled for Ampere (sm_86), Ada (sm_89), and Blackwell (sm_120). No JIT compilation or build tools are required.
Step 1: Clone the repository with submodules:
git clone --recurse-submodules https://github.com/NVIDIA-AI-Blueprints/3d-object-generation.git
Step 2: Set the required environment variables:
# PowerShell
$env:CUDA_HOME = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8"
$env:HF_TOKEN = "your_huggingface_token_here"
# Command Prompt
set CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
set HF_TOKEN=your_huggingface_token_here
Note: Adjust the
CUDA_HOMEpath if your CUDA 12.8 is installed in a different location.
Step 3: Open PowerShell as Administrator and navigate to this repository. Run the automated installation script. Select (n) if prompted to re-clone the repo:
.\setup_environment.ps1
The setup script will automatically:
Optional Parameters:
.\setup_environment.ps1 -InstallPath "D:\my-custom-path" -CondaEnvName "myenv"
| Parameter | Default | Description |
|---|---|---|
-InstallPath | C:\3d-object-generation | Where to install the project |
-CondaEnvName | 3dwithtrellis | Name of the Conda environment |
Note: The installation process may take 30-60 minutes depending on your internet connection and hardware.
This blueprint requires Blender 4.2+ for the add-on integration. You can download and install manually from:
Or via winget:
winget install --id 9NW1B444LDLW
Note: Blender can be installed before or after the main setup. The installation script will automatically copy the add-ons to your Blender installation.
You can customize the following settings in config.py:
# Model name from HuggingFace
# Qwen3-4B: "Qwen/Qwen3-4B" (4B params)
# Llama-3.1-8B: "meta-llama/Llama-3.1-8B-Instruct" (8B params)
NATIVE_LLM_MODEL = "Qwen/Qwen3-4B"
# Precision options: "float16", "bfloat16", "float32", "int4" (for GPTQ)
NATIVE_LLM_PRECISION = "bfloat16"
The application automatically manages GPU memory across three models:
Memory Management Strategy:
There are two ways to run the application:
| Method | Best For | Description |
|---|---|---|
| Blender Add-on (Recommended) | 3D artists using Blender | Start services from within Blender, with integrated asset import |
| Standalone | Testing or non-Blender workflows | Run python app.py manually from command line |
Both methods launch the same Gradio web interface. If you're working in Blender, use the add-on — there's no need to run python app.py separately.
The 3D Object Generation add-on launches and manages all services directly from Blender.
E:\3d-object-generation)To stop services and free GPU memory, click Services Started .. Click to Terminate.
If you prefer to run the application outside of Blender:
conda activate 3dwithtrellis
cd C:\3d-object-generation
python app.py
💡 Recommended: For the best experience, use the light theme by accessing the application with: http://127.0.0.1:7860/?__theme=light
⚠️ Important Note: Browser refresh is not supported and may cause the application to crash. In that case, please restart the application instead.
To stop the application and free VRAM, simply press Ctrl+C in the terminal where the application is running.
Once the application is running, you can:
Scene Planning:
Asset Generation:
The LLM will automatically create prompts for suggested items which will be sent to the 2D image generator
Each image contains additional controls
Convert all images to 3D Objects (Delete unwanted images before converting to 3D)
NOTE: Image to 3D Object processing takes up to 45 seconds per object on a RTX 5090, when using the Convert All image option this time will be a multiple of the number of objects being converted, using the Convert All option may take a significant amount of time. The UI will not be updated until all objects have been converted.
Save Objects:
Blender Integration:
config.py Key Settings# =============================================================================
# LLM Settings
# =============================================================================
NATIVE_LLM_MODEL = "Qwen/Qwen3-4B" # HuggingFace model ID
NATIVE_LLM_PRECISION = "bfloat16" # float16, bfloat16, or int4 (for GPTQ)
# =============================================================================
# Logging
# =============================================================================
VERBOSE = False # Detailed timing/memory logs
CUDA not found during installation
CUDA_HOME before running install.bat:
# PowerShell
$env:CUDA_HOME = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8"
# Command Prompt
set CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
Get-ChildItem "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\"
Out of VRAM
Slow LLM inference
requirements.txt has gradio==5.50.0Model download fails
set HF_TOKEN=your_tokenTRELLIS import errors
git submodule update --init --recursive
Installation Issues:
VERBOSE = True in config.pyApache 2.0 - See LICENSE for details.