An OpenUSD camera can point straight at an inspection board and still cut off its ends. Before changing the camera pose, check the horizontal field of view on the composed camera prim. In a centered perspective camera, that angle depends on the ratio of horizontal aperture to focal length.

Both attributes use tenths of a scene unit in the USD camera schema. For the view angle, their shared conversion factor cancels. For the physical span at the target, the distance must use the same scene length convention as the target. This distinction matters when a review compares coverage in a model with coverage at a measured bench.

Test two focal lengths at one distance

The example creates a perspective camera with aperture value 16 and zero horizontal aperture offset. At each focal length it compares the OpenUSD angle with the pinhole formula and computes the full width at a plane 100 scene units forward along the optical axis and perpendicular to it.

from math import atan, degrees, isclose, radians, tan

from pxr import Gf, Usd, UsdGeom

stage = Usd.Stage.CreateInMemory()

camera = UsdGeom.Camera.Define(stage, "/InspectionCamera")

camera.GetProjectionAttr().Set(UsdGeom.Tokens.perspective)

camera.GetHorizontalApertureAttr().Set(16.0)

camera.GetHorizontalApertureOffsetAttr().Set(0.0)

def measure(focal_length):

camera.GetFocalLengthAttr().Set(focal_length)

gf_camera = camera.GetCamera(Usd.TimeCode.Default())

angle = gf_camera.GetFieldOfView(Gf.Camera.FOVHorizontal)

expected = degrees(2 * atan(16.0 / (2 * focal_length)))

assert isclose(angle, expected, abs_tol=1e-5)

return angle, 2 * 100 * tan(radians(angle) / 2)

for focal_length in (20.0, 40.0):

angle, span = measure(focal_length)

print(round(angle, 3), round(span, 3))

OpenUSD 0.26.11 reports 43.603 degrees and a width of 80.000 scene units for focal length 20. It reports 22.620 degrees and 40.000 units for focal length 40. A centered flat target 60 units wide fits horizontally in the former case and exceeds the latter view. This computation assumes a centered perspective window and ignores any output crop.

Verify coverage in the actual inspection render

Read the composed camera at the time code used for the inspection. Check both horizontal and vertical coverage, and use the target corners rather than width alone if it is offset or tilted. Confirm the active render camera and how the render settings fit the aperture to the image aspect ratio. Then verify that the corner points land within the usable pixels, with the intended margin.

Record the camera path, time code, aperture, focal length, target distance and render settings with the result. The scene calculation checks the expected perspective projection. If the result will be used to compare against a physical camera, also measure lens distortion and verify the calibrated image area.

Sources

OpenUSD UsdGeomCamera API reference for perspective camera properties and units

https://openusd.org/release/api/class_usd_geom_camera.html

OpenUSD GfCamera API reference for field-of-view queries

https://openusd.org/release/api/class_gf_camera.html