Skip to content

Add max_depth and depth_clipping_behavior to CameraSensorCfg - #1334

Closed
M-Colley wants to merge 1 commit into
mujocolab:mainfrom
M-Colley:feat/camera-depth-clipping
Closed

M-Colley wants to merge 1 commit into
mujocolab:mainfrom
M-Colley:feat/camera-depth-clipping

Conversation

@M-Colley

Copy link
Copy Markdown
Contributor

MuJoCo Warp depth rendering writes raw far-plane distances for missed or out-of-range rays, forcing downstream observation terms to clip or zero out invalid depth values manually. This PR adds max_depth and depth_clipping_behavior ('none', 'zero', 'max') to CameraSensorCfg and applies the clipping out-of-place when constructing CameraSensorData so shared Warp render buffers are not mutated.

Fixes #1233

Support per-sensor maximum depth range and configurable miss/far-plane encoding ('zero', 'max', 'none') on CameraSensorCfg without mutating the shared render buffer.

Fixes mujocolab#1233
@kevinzakka kevinzakka closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add depth_clipping_behavior to CameraSensorCfg (similar to Isaac Lab)

2 participants