mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-19 14:00:43 +01:00
Cameras in FBX, COLLADA and USD files join the project's camera list, as glTF cameras do. - FBX 6/7: Camera Models (looking down +X) with the lens from their Camera NodeAttribute or the Model's own properties (focal length over film height, else FieldOfViewY / FieldOfView; CameraProjectionType 1 = orthographic); FBX 6 Producer views skipped - COLLADA: instance_camera in scene nodes (perspective yfov or xfov + aspect_ratio, orthographic ymag or xmag + aspect_ratio); node transforms understand lookat - USD: Camera prims (focalLength over verticalAperture with USD's fallbacks, orthographic projection), through xform ops and the hierarchy - RawCamera::placed and lens_fov shared by every reader (glTF too); an orthographic view height follows its node's scale; at most 64 cameras per file - tests: a camera in the FBX 7 binary/ASCII scene, a Producer view in the FBX 6 file, a lookat camera in the COLLADA scene, a perspective and an orthographic camera in the USD scene