mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-30 19:07:25 +08:00
refactor: drop rotation from Load3DCamera
This commit is contained in:
parent
6ceec29bd1
commit
359357de8e
@ -762,17 +762,17 @@ class Accumulation(ComfyTypeIO):
|
|||||||
@comfytype(io_type="LOAD3D_CAMERA")
|
@comfytype(io_type="LOAD3D_CAMERA")
|
||||||
class Load3DCamera(ComfyTypeIO):
|
class Load3DCamera(ComfyTypeIO):
|
||||||
class CameraInfo(TypedDict):
|
class CameraInfo(TypedDict):
|
||||||
position: dict[str, float | int]
|
# Coordinate system: right-handed, Y-up, camera looks down -Z
|
||||||
target: dict[str, float | int]
|
position: dict[str, float | int] # scene units
|
||||||
zoom: int
|
target: dict[str, float | int] # scene units; OrbitControls focus point
|
||||||
cameraType: str
|
zoom: float | int # dimensionless, 1 = 100%
|
||||||
quaternion: NotRequired[dict[str, float | int]]
|
cameraType: str # 'perspective' | 'orthographic'
|
||||||
rotation: NotRequired[dict[str, float | int | str]]
|
quaternion: NotRequired[dict[str, float | int]] # normalized, dimensionless; camera world rotation
|
||||||
fov: NotRequired[float | int]
|
fov: NotRequired[float | int] # degrees, vertical FOV (perspective only)
|
||||||
aspect: NotRequired[float | int]
|
aspect: NotRequired[float | int] # width / height (perspective only)
|
||||||
near: NotRequired[float | int]
|
near: NotRequired[float | int] # scene units
|
||||||
far: NotRequired[float | int]
|
far: NotRequired[float | int] # scene units
|
||||||
frustum: NotRequired[dict[str, float | int]]
|
frustum: NotRequired[dict[str, float | int]] # orthographic only: {left, right, top, bottom} in scene units
|
||||||
|
|
||||||
Type = CameraInfo
|
Type = CameraInfo
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user