Files
Mujoco_WASM/python/mujoco
Anas ce025f0ec3 render: skip textures the classic renderer can't upload
KTX textures crash the classic OpenGL renderer and the Python viewer with
"Number of channels not supported: 1": mjCTexture::LoadKTX stores the file as
an opaque single-channel blob for the Filament renderer, and mjr_uploadTexture
aborts via mju_error because the classic path only handles 3- or 4-channel
textures.

Skip textures the classic renderer can't upload (nchannel not 3 or 4) with a
warning instead of aborting, so the model still loads and the other textures
render. LoadKTX and the Filament path are unchanged. The guard also covers the
cube/skybox path, which previously over-read a single-channel blob as RGB.

Add a render_test.py regression test that builds a model with a KTX texture and
constructs an MjrContext; it aborts before this change and passes after.

Addresses #3343.
2026-06-21 01:49:23 -04:00
..
2026-06-20 15:10:54 -07:00
2024-11-19 14:07:21 -08:00
2022-05-25 07:01:59 -07:00
2022-05-23 01:08:49 -07:00
2026-06-16 12:06:34 -07:00
2023-10-13 16:13:24 -07:00
2024-12-16 09:57:08 -08:00
2024-12-16 09:57:08 -08:00
2026-05-01 09:34:17 -07:00