Camera Pose Visualizer(CameraPoseVisualizer)
This node supports two main data sources: AnimateDiff-Evolved's CameraCtrl pose data, and data containing RealEstate camera intrinsics and coordinates.
Camera Pose Visualizer
The Camera Pose Visualizer node supports two main data sources: CameraCtrl pose data from AnimateDiff-Evolved, and .txt files containing RealEstate camera intrinsics and coordinates.
The Camera Pose Visualizer is a node used for visualizing camera poses. It converts abstract camera position and orientation data into intuitive 3D graphics, helping users understand the camera's motion trajectory and viewpoint changes in three-dimensional space.
Node Functionality
This node supports two main data sources: CameraCtrl pose data from AnimateDiff-Evolved, and .txt files containing RealEstate camera intrinsics and coordinates. Its core mechanism involves reading this data, drawing cones or coordinate systems representing each camera's position and orientation in a 3D coordinate system, and finally rendering the 3D plot generated by Matplotlib into an image tensor usable by ComfyUI.
Node Parameter Description - Camera Pose Visualizer
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
pose_file_path | STRING | Yes | "" | - | Specifies the path to the .txt file containing camera pose data. Leave empty to use CameraCtrl pose input. |
base_xval | FLOAT | Yes | 0.2 | 0 - 100 (Step: 0.01) | Adjusts the base size of the camera cone along the X-axis. Range 0-100, step 0.01. |
zval | FLOAT | Yes | 0.3 | 0 - 100 (Step: 0.01) | Adjusts the display scale of the camera cone along the Z-axis (depth). Range 0-100, step 0.01. |
scale | FLOAT | Yes | 1.0 | 0.01 - 10.0 (Step: 0.01) | Controls the scaling factor for the entire 3D visualization scene. Range 0.01-10.0, step 0.01. |
use_exact_fx | BOOLEAN | Yes | False | - | Boolean switch determining whether to use the exact camera focal length value to adjust the cone's field of view. |
relative_c2w | BOOLEAN | Yes | True | - | Boolean switch controlling whether camera poses are interpreted as transformations relative to the world coordinate system. |
use_viewer | BOOLEAN | Yes | False | - | Boolean switch. When enabled, it attempts to open an interactive Matplotlib window to display the plot. |
cameractrl_poses | CAMERACTRL_POSES | No | None | - | - |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | Outputs an image tensor containing the 3D camera pose visualization. |
Use Cases
When creating animations based on AnimateDiff, you can integrate this node into your workflow to preview whether the camera motion path generated by the CameraCtrl module is smooth and meets expectations. Alternatively, when working with datasets containing real camera trajectories (such as RealEstate10K), use it to quickly verify that the imported camera pose files are correct.
Notes
Please note that this node is primarily intended for visual preview. The resolution of the generated image is fixed and is not suitable for final render output. When the use_viewer parameter is enabled, it may open a separate Matplotlib window in some runtime environments.
Camera Pose Visualizer Node Source Code Link
The Camera Pose Visualizer node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.