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] Basic support for heightfields #1253

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

Balint-H
Copy link
Collaborator

@Balint-H Balint-H commented Dec 4, 2023

This PR adds preliminary support for heightfields in the Unity plugin. The hfield type is now allowed to be selected in MjGeom, and lets you reference a Unity terrain object. Heightmaps can be loaded and configured with the built-in Unity tools in the paired terrain component. When the scene MJCF is constructed, the current heightmap of the terrain will be saved as a PNG at a path local to the Application as specified by the user, which will be referenced in the scene's assets.

The current implementation does not support importing heightfields referenced from an MJCF, nor does it support runtime terrain editing, but both are straightforward future additions.

Let me know if you think it would be better to wait until those features are implemented.

Movie_005.mp4

@Balint-H Balint-H changed the title Basic support for heightfields in Unity plugin [Unity Plugin] Basic support for heightfields in Unity plugin Dec 4, 2023
@Balint-H Balint-H changed the title [Unity Plugin] Basic support for heightfields in Unity plugin [Unity plugin] Basic support for heightfields in Unity plugin Dec 4, 2023
@Balint-H Balint-H changed the title [Unity plugin] Basic support for heightfields in Unity plugin [Unity plugin] Basic support for heightfields Dec 4, 2023
@kevinzakka kevinzakka requested a review from erez-tom December 4, 2023 17:10
@copybara-service copybara-service bot merged commit e4359c0 into google-deepmind:main Dec 6, 2023
12 checks passed
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.

2 participants