Customizing the rendering range for individual cameras. #2020
Replies: 2 comments
-
Hi, My understanding is that the In theory you should be able to set These variables are normally computed from the global |
Beta Was this translation helpful? Give feedback.
-
@aftersomemath Thank you, I also noticed the 'glcamera' low-level camera. But I don't know how to use it. Mujoco's description of it is a bit sparse. Could you provide an example program? : ) |
Beta Was this translation helpful? Give feedback.
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 simulating cameras.
I'm looking for some help with customizing the rendering range for individual cameras. In my simulation environment, there are many cameras, and each camera requires a different rendering range. I know that I can adjust the camera's rendering range using
znear
andzfar
.I have a few questions:
These parameters(
znear
,zfar
) seem to be global. How can I set different rendering ranges for different cameras?What can the
frustum
parameter be used for? I thought only objects within the frustum range could be rendered. I tried changing the size of thefrustum
, but the camera's rendered image doesn't seem to change. Objects outside the frustum are still visible in the camera. The rendering range seems to only be related toznear
andzfar
.Here is my test model:
minimal XML
the viewpoint of camera0.

Beta Was this translation helpful? Give feedback.
All reactions