Skip to content

Commit

Permalink
Revert "BUGFIX: Depth rendering was throwing lots of warnings. Defaul…
Browse files Browse the repository at this point in the history
…ting it back to the previous versions. This should be undone in the future when this feature is stable"

This reverts commit ae51c9e.
  • Loading branch information
sriramsk1999 authored and vikashplus committed Mar 24, 2024
1 parent 777edf3 commit fb90d46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions robohive/renderer/mj_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ def render_offscreen(self,
rgb_arr = self._renderer.render()
if depth:
self._renderer.enable_depth_rendering()
# Remove the following WARNING:absl:ARB_clip_control unavailable while mjDEPTH_ZEROFAR requested, depth accuracy will be limited
# TODO: When this feature stabalizes in mujoco, switch back to mjDEPTH_ZEROFAR for better accuracy
self._renderer._mjr_context.readDepthMap = mujoco.mjtDepthMap.mjDEPTH_ZERONEAR
self._renderer.update_scene(self._sim.data.ptr, camera=camera_id, scene_option=self._scene_option)
dpt_arr = self._renderer.render()
self._renderer.disable_depth_rendering()
Expand Down

0 comments on commit fb90d46

Please sign in to comment.