generate_with_viewpoint
Generate game assets with precise camera viewpoint control using depth maps to ensure consistent angles like top-down, side, or front views.
Instructions
Generate a game asset with precise camera viewpoint control using ControlNet.
This tool uses depth maps to guide the generation, ensuring consistent camera angles
like top-down, side view, front view, etc.
Args:
prompt: Description of the asset to generate (e.g., "a wooden barrel")
view_type: Camera angle - "topdown", "side", "front", "3/4"
shape: Object shape hint - "flat", "sphere", "cylinder", "box"
preset: Style preset to use (default: topdown_prop)
controlnet_model: ControlNet model (default: diffusers_xl_depth_full.safetensors)
control_strength: How strongly to follow viewpoint (0.0-1.0, default: 0.8)
width: Output width in pixels
height: Output height in pixels
seed: Random seed for reproducibility
save_to_file: Whether to save the image to disk
Returns:
JSON with base64 image data and metadata
Note:
Requires ControlNet models installed in ComfyUI. Common depth models:
- diffusers_xl_depth_full.safetensors (SDXL)
- control_v11f1p_sd15_depth.pth (SD1.5)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| view_type | No | topdown | |
| shape | No | flat | |
| preset | No | topdown_prop | |
| controlnet_model | No | diffusers_xl_depth_full.safetensors | |
| control_strength | No | ||
| width | No | ||
| height | No | ||
| seed | No | ||
| save_to_file | No |