AI-Powered 3D Modeling with Natural Language
Transform text prompts into 3D models using LangChain + LangGraph multi-agent system with Claude Sonnet 4.5 and Blender MCP.
π Demo: http://a4492a6f36024441e8d6740b22fe8ee4-1878007781.us-east-1.elb.amazonaws.com:8501
Multi-Agent System with Vision-Based Refinement:
The Refinement Agent enhances user prompts with technical specifications before execution.
The Artisan Agent autonomously plans, executes, and refines 3D modeling steps with vision-based quality assessment.
# Install required tools
winget install Amazon.AWSCLI
choco install eksctl
choco install kubernetes-cli
# Configure AWS credentials
aws configureeksctl create cluster -f eks-cluster-config.yaml# Create ECR repositories
.\infrastructure\ecr-setup.ps1
# Build and push Docker images
.\scripts\build-and-push-images.ps1# Create namespace and secrets
kubectl create namespace prompt2mesh
kubectl create secret generic prompt2mesh-secrets -n prompt2mesh \
--from-literal=db-password=<YOUR_PASSWORD> \
--from-literal=jwt-secret=<YOUR_SECRET> \
--from-literal=anthropic-api-key=<YOUR_KEY>
# Deploy all services
kubectl apply -f k8s/# Get LoadBalancer URL
kubectl get svc frontend -n prompt2meshOpen the EXTERNAL-IP URL in your browser on port 8501.
π Detailed Guide: See EKS Setup Guide for complete instructions.
- Artisan Agent: Autonomous 3D modeling with 8-node LangGraph workflow
- Refinement Agent: Prompt enhancement with technical specifications with 5-node LangGraph workflow
- Vision AI: Claude Sonnet 4.5 Vision for quality assessment
- Iterative Refinement: Automatic quality scoring and improvement loops
- LangChain: Tool abstraction over Blender MCP operations
- LangGraph: StateGraph workflow with checkpointing
- Claude Sonnet 4.5: Tool calling + vision analysis
- Blender MCP: Model Context Protocol for Blender operations
- Kubernetes: Per-user pod isolation on AWS EKS
- Multi-User: Isolated Blender pods per user
- Persistent Storage: EBS volumes for user workspaces
- Auto-Scaling: Dynamic resource allocation
- Authentication: JWT-based user management
- Cloud-Native: Full AWS EKS deployment
βββ src/
β βββ artisan_agent/ # LangGraph autonomous modeling agent
β βββ refinement_agent/ # Prompt enhancement agent
β βββ backend/ # FastAPI + K8s session manager
β βββ frontend/ # Streamlit web interface
β βββ addon/ # Blender MCP addon
βββ k8s/ # Kubernetes manifests
βββ docker/ # Docker configurations
βββ docs/ # Comprehensive documentation
βββ infrastructure/ # AWS/Terraform setup
- EKS Setup Guide - Complete AWS deployment walkthrough
- Architecture - System design and multi-agent workflow
- Refinement Loop - Vision-based quality assessment
- Artisan Agent - Autonomous modeling agent
- Refinement Agent - Prompt enhancement system
- K8s Deployment - Kubernetes manifests and orchestration
- Auth Setup - JWT authentication system
cd docker
docker-compose up -dAccess: http://localhost:8501
# Configure Python environment
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
# Start FastAPI server
uvicorn src.backend.backend_server:app --reloadstreamlit run src/frontend/streamlit_blender_chat.py"Create a decorated Christmas tree"
"Create a 3D conical evergreen tree (height 5m, base 1.5m),
add 20 sphere ornaments in red/gold/silver, star topper at apex"
analyze_scene β plan (5-12 steps) β execute_step β capture_screenshot
β assess_quality (Claude Vision scores 1-10)
β refine_step (if score < 6) β evaluate_progress β complete
- Each step scored by Claude Sonnet 4.5 Vision
- Quality threshold: β₯6 (normal steps), β₯7 (critical steps)
- Max 2 refinement attempts per step
- Automatic improvement code generation
- Fully modeled 3D asset in Blender
- Saved
.blendfile with execution logs - Quality scores and refinement history
# 1. User prompt
user_input = "Create a medieval castle tower"
# 2. Refinement Agent
refined_prompt = refinement_agent.refine(user_input)
# Output: "Create cylindrical stone tower (height 15m, radius 3m),
# crenellated top, 4 narrow window slits, wooden door..."
# 3. Artisan Agent (LangGraph)
result = artisan_agent.invoke({
"user_prompt": refined_prompt
})
# 4. Execution Steps (example)
# Step 1: Create cylinder β Screenshot β Quality: 8/10 β
# Step 2: Add material β Screenshot β Quality: 5/10 β Refine β 7/10 β
# Step 3: Create windows β Screenshot β Quality: 9/10 β
# ...
# Complete: 8 steps, 2 refinements, avg quality 7.8/10- Vision-Based Quality Control: First autonomous 3D modeling system with screenshot analysis
- Iterative Refinement: Self-improving agent that detects and fixes quality issues
- State Checkpointing: Resume workflows after interruptions or rate limits
- Multi-User Cloud Architecture: Scalable Kubernetes deployment with per-user isolation
- Transparent Execution: Full MCP tool call logs and quality scores
-
Higher Recursion Limits (e.g., 50-100 iterations):
- β Better Results: More refinement attempts lead to higher quality 3D models
- β Complex Scenes: Can handle intricate multi-object compositions
- β High Cost: Each iteration calls Claude Sonnet 4.5 Vision API (screenshot analysis)
- β Extended Runtime: Quality assessment on every step increases execution time
-
Lower Recursion Limits (e.g., 15-25 iterations):
- β Cost-Effective: Fewer API calls reduce operational expenses
- β Faster Execution: Quicker turnaround for simple models
- β Limited Refinement: May terminate before achieving optimal quality
- β Incomplete Complex Scenes: Multi-step workflows may hit recursion limit
Production Recommendation: Configure recursion limits based on use case:
- Demo/Testing: 15-20 iterations (cost-efficient)
- Production Quality: 40-60 iterations (balanced)
- High-Fidelity Work: 80-100 iterations (premium quality, higher cost)
Configure via max_iterations in LangGraph agent configuration.
We attest that we haven't used any other students' work in our assignment and abide by the policies listed in the student handbook.
Team Contributions:
- Reky George Philip: 50%
- Mycline Shareena John Peter Kennedy: 50%
This project extensively uses AI tools as core architectural components:
Claude Sonnet 4.5 (Anthropic API):
- Tool Calling Agent: Powers the BlenderChatAgent for MCP tool orchestration
- Vision API: Screenshot analysis and quality assessment (1-10 scoring)
- Prompt Refinement: Enhances user prompts with technical specifications
- Code Generation: Generates Blender Python code for 3D modeling operations
- Iterative Refinement: Autonomous quality improvement and self-correction
LangChain + LangGraph:
- Multi-agent workflow orchestration
- State management and checkpointing
- Tool abstraction layer over Blender MCP
Development Assistance:
- GitHub Copilot: Code completion and boilerplate generation
- Claude/ChatGPT: Documentation writing, debugging assistance, architecture design discussions





