A comprehensive Unreal Engine plugin that integrates TRELLIS 2 AI model for generating high-quality 3D models from 2D images. This plugin provides a user-friendly interface within the Unreal Editor for seamless 3D content creation.
- Image-to-3D Generation: Convert 2D images into detailed 3D models using advanced AI technology
- TRELLIS 2 Integration: Powered by the state-of-the-art TRELLIS 2 model for native and compact structured latents
- Dual Mode Support: Local and remote API modes for flexible deployment
- Webhook Server: Built-in HTTP server for receiving generation notifications and status updates
- Intuitive Editor Window: Clean, professional UI integrated into Unreal Editor
- Real-time Status Updates: Live progress tracking during generation
- Configurable Parameters: Extensive customization options for generation settings
- Automatic Import: Seamless GLB file download and import into Unreal scenes
- HTTP Client: Robust HTTP communication for API interactions
- Webhook Handling: Automatic processing of generation completion notifications
- Background Processing: Non-blocking generation with progress feedback
- Error Handling: Comprehensive error reporting and recovery
- Firewall Management: Automatic port configuration and firewall rule setup
- Seed Control: Reproducible results with configurable random seeds
- Resolution Settings: Multiple output resolutions (1K, 2K, 4K)
- Background Removal: Optional automatic background removal from input images
- Guidance Parameters: Fine-tune generation with SS, Shape SLAT, and Tex SLAT guidance strengths
- Sampling Steps: Adjustable sampling steps for quality vs speed trade-off
- Unreal Engine: Version 5.7 or later
- Operating System: Windows 10/11 (64-bit)
- Visual Studio: 2022 with C++ development tools
- Internet Connection: Required for remote API mode
- Local API Server: Optional, for local processing mode
-
Download the Plugin:
- Clone or download the plugin source code
- Place the
TostEngineTrellis2folder in your project'sPluginsdirectory
-
Enable the Plugin:
- Open your Unreal Engine project
- Go to
Edit > Plugins - Search for "TostEngine TRELLIS 2"
- Enable the plugin and restart the editor
-
Build the Plugin (if not pre-built):
- Follow the build instructions below
- Unreal Engine 5.7 installed
- Visual Studio 2022 with the following workloads:
- Game development with C++
- Windows 10/11 SDK
-
Open Command Prompt as Administrator
-
Navigate to Project Directory:
cd c:\Users\PC\Documents\content\unreal\TostEngineTrellis2 -
Run the Build Command:
"C:\Program Files\Epic Games\UE_5.7\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="c:\Users\PC\Documents\content\unreal\TostEngineTrellis2\TostEngineTrellis2.uplugin" -Package="c:\Users\PC\Documents\content\unreal\TostEngineTrellis2\Build" -Rocket -
Wait for Completion:
- The build process will compile for both Development and Shipping configurations
- This may take several minutes depending on your system
-
Verify Build Success:
- Check that the
Builddirectory contains the packaged plugin files - Look for "BUILD SUCCESSFUL" in the output
- Check that the
- Missing Dependencies: Ensure all required Unreal Engine components are installed
- Visual Studio Errors: Verify VS 2022 is properly configured for UE development
- Path Issues: Use absolute paths in the build command
- Firewall: Some antivirus software may interfere with the build process
-
Open the Plugin Window:
- In Unreal Editor:
Window > TostEngine TRELLIS 2
- In Unreal Editor:
-
Configure Settings:
- Select input image
- Choose local or remote mode
- Configure API URLs and authentication
- Adjust generation parameters
-
Enable Webhook Server (Recommended):
- Check "Enable Webhook Server" for automatic notifications
- Ensure port 8080 is available and firewall allows access
-
Generate 3D Model:
- Click "Generate 3D Model"
- Monitor progress in the status area
- Wait for completion and automatic import
- Set "Local Upload URL" (e.g.,
http://localhost:9000) - Set "Local API URL" (e.g.,
http://localhost:8000) - Ensure local TRELLIS 2 server is running
- Obtain API token from your TRELLIS 2 service provider
- Enter "Auth Token" and "Worker ID"
- Webhook URL is automatically configured when webhook server is enabled
- Default port: 8080
- Accessible endpoints:
GET /status- Server status checkPOST /webhook- Webhook notifications
- Automatically binds to all network interfaces
For external access to the webhook server:
Add Rule:
netsh advfirewall firewall add rule name="Allow HTTP on Port 8080" dir=in action=allow protocol=TCP localport=8080
Remove Rule:
netsh advfirewall firewall delete rule name="Allow HTTP on Port 8080"
{
"output": {
"status": "DONE",
"result": "https://example.com/model.glb"
}
}{
"status": "Webhook server is running",
"port": 8080
}TostEngineTrellis2/
βββ Source/
β βββ TostEngineTrellis2/ # Runtime module
β β βββ Private/ # Implementation files
β β βββ Public/ # Headers
β βββ TostEngineTrellis2Editor/ # Editor module
β βββ Private/ # Editor implementation
β βββ Public/ # Editor headers
βββ Config/ # Plugin configuration
βββ Resources/ # Icons and assets
βββ TostEngineTrellis2.uplugin # Plugin descriptor
UTostEngineWebhookServer: HTTP server for webhooksUTostEngineHttpClient: HTTP client for API communicationSTostEngineTrellis2Window: Main editor UIUTostEngineTrellis2Functions: Core functionality
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Plugin Won't Load
- Ensure UE 5.7+ is installed
- Check plugin dependencies
- Verify build configuration
Generation Fails
- Check API credentials
- Verify network connectivity
- Review error logs in editor output
Webhook Server Issues
- Confirm port 8080 is not in use
- Check firewall settings
- Verify local IP address
Build Errors
- Clean and rebuild
- Update Visual Studio
- Check UE installation integrity
- Enable verbose logging in editor
- Check
Saved/Logsdirectory - Use
UE_LOGstatements for custom debugging
MIT License
