Camera Rendering Incomplete After Modifying znear and zfar #1982
Unanswered
LinShuang22
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm a student and I'm trying to use MuJoCo for visual simulation and servo control.
My simulation environment is small, so I need to make the camera's observable space very limited. I am restricting the camera's field of view using the
znear
,zfar
, andextent
parameters.In my model, there are two types of cameras: one is horizontal, and the other is tilted. After limiting the field of view, the rendering of the tilted camera becomes incomplete. Only the lower half displays a normal image, while the upper half may render the scene.
When there are no restrictions, the image looks like this:




When the restrictions are applied, the image looks like this. The upper half of the image displays almost nothing, with only a small part of the scene visible.
I increased the zfar value, which alleviated the issue to some extent, but a significant portion of the scene is still not visible.
Additionally, this issue seems to occur only with the tilted camera, and not with the horizontal camera.
Here is a model which explains my question:
minimal XML
I want to know if there are parameters I haven't set correctly or if this is a bug.
Thanks a lot for your help.
Beta Was this translation helpful? Give feedback.
All reactions