From 366041756d7c2df0820be6af068b75bf68f077ee Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Mon, 8 Apr 2024 06:50:06 -0700 Subject: [PATCH] Add note about segmentation images to `offsamples` documentation. PiperOrigin-RevId: 622830327 Change-Id: I8e15ce65babc86086335b0f9010db5be581460fc --- doc/XMLreference.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/XMLreference.rst b/doc/XMLreference.rst index 497bb654..05b67169 100644 --- a/doc/XMLreference.rst +++ b/doc/XMLreference.rst @@ -751,6 +751,9 @@ visualization should somehow be simplified. anti-aliasing but can slow down the GPU. Set this to 0 to disable multi-sampling. Note that this attribute only affects offscreen rendering. For regular window rendering, multi-sampling is specified in an OS-dependent way when the OpenGL context for the window is first created, and cannot be changed from within MuJoCo. + |br| When rendering segmentation images, multi-sampling is automatically disabled so as not to average segmentation + indices. However, some rendering backends ignore the automatic disabling. If your segmentation images contain bad + indices, try manually setting this attribute to 0. .. _visual-quality-numslices: