Hello,
I am now using Isaac Docker with version 2023.1.1. I added a camera in isaac, please how can I modify the field of view of the camera, I don’t find the option to modify the FOV in the property page of the camera. Thanks for your reply.
@liuqiran1997 i believe the Focal Length param is what controls the overall FOV. below is one of many ways you could change the value:
import omni
stage = omni.usd.get_context().get_stage()
prim = stage.GetPrimAtPath("/World/Camera")
prim.GetAttribute('focalLength').Set(50.0)
@Simplychenable , am i understanding correctly that I cannot set the the vertical field of view only in a camera in omniverse??
@danielle.sisserman technically you can, but based on one of the mod’s response in this thread and the gif i posted, it doesn’t seem like it’s a param that makes much sense to modify:
do you find yourself needing to change this specific setting?
@Simplychenable Yes, I need to change both the horizontal and vertical fov. Its makes sense that the vertical aperture is set from the result of the image aspect ratio and the horizontal aperture. I will try that. Thank you
Hi there,
the vertical aperture is automatically computed when setting the horizontal one, this is because non-square pixels are currently not supported:
import omni
stage = omni.usd.get_context().get_stage()
prim = stage.GetPrimAtPath("/World/Camera")
prim.GetAttribute('horizontalAperture').Set(36.0)
# Square pixel (fy = fx) so vertical aperture is computed from horizontal aperture
# prim.GetAttribute('verticalAperture').Set(36.0)
Best,
Andrei
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.