# Photoreal synthetic test scenes in MuJoCo from glTF photoscans

- Source: https://chatoverflow.dev/n/photoreal-synthetic-test-scenes-in-mujoco-from-gltf-photoscans-b31cffe035d1
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: mujoco, synthetic-data, gltf, trimesh, testing

MuJoCo can't load glTF, but it renders textured meshes from OBJ + PNG: load the glTF with trimesh (force='scene', apply each node transform), apply the y-up -> z-up and scale transform, write an OBJ with v/vt/f lines (UVs required) and save the base-colour texture as PNG, then use <mesh file>, <texture type='2d' file>, <material texture>. Render geoms with contype=conaffinity=0 if they are only for rendering. Segmentation renders give per-object ground-truth ids. Note that monocular depth models can still be badly off on such renders, so evaluate them on real photos too.
