KJNodes/miscgenerated

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

cameractrl_poses
IMAGE
pose_file_path
STRING
base_xval
0.20
zval
0.30
scale
1.00
use_exact_fx
relative_c2w
use_viewer
KJNodes

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 NameData TypeRequiredDefault ValueValue Range/OptionsDescription
pose_file_pathSTRINGYes""-Specifies the path to the .txt file containing camera pose data. Leave empty to use CameraCtrl pose input.
base_xvalFLOATYes0.20 - 100 (Step: 0.01)Adjusts the base size of the camera cone along the X-axis. Range 0-100, step 0.01.
zvalFLOATYes0.30 - 100 (Step: 0.01)Adjusts the display scale of the camera cone along the Z-axis (depth). Range 0-100, step 0.01.
scaleFLOATYes1.00.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_fxBOOLEANYesFalse-Boolean switch determining whether to use the exact camera focal length value to adjust the cone's field of view.
relative_c2wBOOLEANYesTrue-Boolean switch controlling whether camera poses are interpreted as transformations relative to the world coordinate system.
use_viewerBOOLEANYesFalse-Boolean switch. When enabled, it attempts to open an interactive Matplotlib window to display the plot.
cameractrl_posesCAMERACTRL_POSESNoNone--

Output

Parameter NameData TypeDescription
IMAGEIMAGEOutputs 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.

The Camera Pose Visualizer node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…