OpenGL camera settings

Discussion in 'Visualization' started by Jaldert, Feb 27, 2017.

  1. Does anyone have an example of how to explicitly set the OpenGL camera properties in MuJoCo 1.40? I would like to set up a camera with completely fixed properties.

    I have adapted a version of record.cpp, and then set the camera to be a fixed camera that I've defined in my model XML file. I run mjv_updateScene() to populate the parameters of the low-level OpenGL cameras embedded in the scene (mjvGLCamera camera[] in the mjvScene struct), and after that I set the camera type to "mjCAMERA_USER", and manually set the frustum properties. However, this does not seem to constrain all parameters - for instance, the x-frustum still seems to change depending on the exact scene.

    Thank you in advance!