Cameras from FBX, COLLADA and USD files

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
This commit is contained in:
bflatastic committed 2026-11-01 12:40:50 +07:00
1 parent 89555d9efb
commit 4ddf6bb007
9 files changed
+185 -24

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
anisotropy, subsurface scattering, transmission and parallax occlusion; image-based lighting from
six procedural studio and outdoor environments or **your own HDR/EXR panoramas**; ACES or linear
tone mapping, key-light shadows, bloom, vignette, sharpen, grain, **depth of field** and
**saved cameras** (also imported from glTF).
**saved cameras** (also imported from glTF, FBX, COLLADA and USD files).
- **Rendering mode** (F10): a progressive, **path-traced** view of your textures with multi-bounce
light, environment importance sampling, a denoiser and one-click PNG save, traced on the GPU
(compute shaders, about 25× the CPU tracer, desktop and WebGPU) or on the CPU.