Skip to content

Commit

Permalink
fix mjcf position
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenjia-xu committed Dec 27, 2024
1 parent f98c5f1 commit f6ce790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genesis/utils/mjcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def parse_geom(mj, i_g, scale, convexify, surface, xml_path):
texturedir = extract_compiler_attributes(xml_path)["texturedir"]
assets_dir = os.path.join(get_assets_dir(), os.path.join(os.path.dirname(xml_path), texturedir))

uv_coordinates = tmesh.vertices[:, :2]
uv_coordinates = tmesh.vertices[:, :2].copy()
uv_coordinates -= uv_coordinates.min(axis=0)
uv_coordinates /= uv_coordinates.max(axis=0)
image = Image.open(os.path.join(assets_dir, tex_path))
Expand Down

0 comments on commit f6ce790

Please sign in to comment.