photo_to_scene
Turn a still photo and its depth map into a textured, depth-displaced 3D parallax scene for Blender, ready for camera moves and fly-through renders.
Instructions
Turn a still photo + depth map (from the estimate_depth tool) into a parallax scene: a subdivided plane textured with the photo, vertices pulled toward the camera by depth. Add camera_move/camera_orbit for a cinematic fly-through, or use the photo_flythrough host tool which does everything including QA.
grid: mesh resolution across the width (160-240 is plenty; vertex count grows quadratically). depth_scale: max displacement toward the camera, relative to plane_height (0.3 subtle, 0.5 strong parallax; higher starts to tear geometry at depth edges). plane_height: world height of the photo in metres (camera distance derives from it and lens). margin: plane enlargement factor beyond the frame (1.1 covers gentle moves, 2.0+ covers aggressive push/pan; the extra band MIRROR-folds the photo's edge content so it reads naturally instead of streaking). lens: mm, 50 = natural. The result includes camera_envelope: the safe camera-movement limits for this scene (prevention layer; see README). Keep poses inside it and the margin fold never enters the central frame.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_path": "<image_path>",
"depth_path": "<depth_path>"
},
"name": "photo_to_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | ||
| lens | No | ||
| name | No | Photo | |
| margin | No | ||
| depth_path | Yes | ||
| image_path | Yes | ||
| depth_scale | No | ||
| plane_height | No |