ComfyTV/Panoramagenerated
Panorama · Current View(PanoramaCurrentViewStage)
The node also provides a preview shell for the current view.
Panorama Current View Stage
panorama
image
yaw
0.0
pitch
0.0
fov
75.0
aspect_ratio
16:9
resolution
1K
ComfyTV
Description
Panorama · Current View renders a perspective camera view from a panorama and outputs the captured view as a COMFYTV_IMAGE. It is part of the ComfyTV/Panorama category. The node combines camera aiming controls (yaw and pitch), a vertical field of view, an aspect ratio, and a resolution tier to define the exact view that is captured.
The node also provides a preview shell for the current view. The aspect_ratio setting locks the shape of that preview shell, so the interactive preview and the rendered image keep the same framing. Connect a COMFYTV_PANORAMA to the optional panorama input when the view should be sampled from an external panorama.
Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
yaw | FLOAT | Yes | 0 | Camera azimuth in degrees. Range: -180 to 180, step 0.1. 0 points forward. Adjust to rotate the view horizontally around the panorama. |
pitch | FLOAT | Yes | 0 | Camera elevation in degrees. Range: -89 to 89, step 0.1. 0 looks at the horizon. The limits keep the view away from the panorama poles. |
fov | FLOAT | Yes | 75 | Vertical field of view in degrees. Range: 10 to 120, step 0.5. Larger values widen the view; smaller values narrow and zoom in. |
aspect_ratio | COMBO | Yes | 16:9 | Captured view aspect ratio. This also locks the preview shell aspect ratio so the preview matches the output framing. |
resolution | COMBO | Yes | 1K | Captured view short-side resolution tier. 1K = 1024, 2K = 2048, 4K = 4096 pixels on the short side. The long side follows from the selected aspect ratio. |
panorama | COMFYTV_PANORAMA | No | none | Source panorama for the current view. Connect a panorama to render the view from it using the camera controls above. This input is optional; use it when the view should be driven by an external panorama. |
Outputs
The node has one output:
| Type | Description |
|---|---|
COMFYTV_IMAGE | The captured perspective view. It reflects the selected yaw, pitch, fov, aspect_ratio, resolution, and connected panorama. |
Usage Notes
- Set
yawandpitchto aim the camera. Ayawof0with apitchof0looks forward toward the horizon. fovis vertical, so horizontal coverage is derived from the aspect ratio. When changing aspect ratio, expect the horizontal framing to change even iffovstays the same.- The pitch range stops at
±89degrees to avoid looking directly at the panorama poles, where perspective projection can become unstable or heavily distorted. resolutionsets the short side of the output image. For a16:9output at the1Ktier, the short side is1024pixels and the long side is calculated from the aspect ratio.aspect_ratioaffects both the captured image and the preview shell. Use it to lock the preview to the final output shape.- The node is useful for extracting a specific perspective view from a 360 panorama, creating thumbnails or camera stills, and feeding the result into an image pipeline.
Comments
Sign in with GitHub to join the discussion.