Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity plugin] Add support for OBJ file import from MuJoCo scenes #2378

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Balint-H
Copy link
Collaborator

@Balint-H Balint-H commented Jan 21, 2025

This feature handles OBJ mesh assets referenced in MJCF. It applies the scale to the OBJ mesh then saves it as a local asset in the project, after swizzling the mesh coordinates. An additional step is taken to enable read-write of mesh data from obj files. We flip around mesh faces if the scale has an odd number of negative numbers. In fact this is a missing detail from the STL parser, will add a fix for that soon in a separate PR.

A related feature included is by default now the mesh renderer is turned of Geoms with group >=3 (default function with Simulate). This will make imported scenes appear more similar to what is expected from the Simulate UI (commonly collision geoms are hidden by default using this approach).

This now enables importing many more menagerie models to Unity.

Addresses #2372

@yuvaltassa yuvaltassa requested a review from erez-tom January 22, 2025 23:20
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.

1 participant