Skip to content

[Backport release/3.0.0] Author Newton MPM particles through USD (#7637) - #7933

Merged
ooctipus merged 1 commit into
isaac-sim:release/3.0.0from
maxkra15:backport/release/3.0.0/pr-7637
Sep 21, 2026
Merged

ooctipus merged 1 commit into
isaac-sim:release/3.0.0from
maxkra15:backport/release/3.0.0/pr-7637

Conversation

@maxkra15

Copy link
Copy Markdown
Contributor

Description

Backports #7637 to release/3.0.0.

This migrates Newton MPM particle creation to schema-valid USD authoring and Newton's standard USD import path while preserving explicit masses, point ordering, deterministic jitter, initial transforms and velocities, damping conversion, and the existing dynamic visualization path. It also carries the original MPM demo/task updates, documentation, focused tests, and changelog fragments.

Backport resolution

Field Commit
Original merged change af36c79edced44e914bb9fd81e3aaedd1bd562eb
Release base used c2bce3e232ea5134f98ab14a1e47b3abc900c247
Proposed backport 67c5e65125241d6ffcf1fd6028aaa80f199892a5

All 25 non-lockfile paths cherry-picked without conflict. uv.lock was regenerated from the release manifests to retain release-specific workspace package versions while applying newton-usd-schemas >= 0.5.0. The repository backport validator confirms that the result changes no paths outside the original PR.

Type of change

  • Breaking change
  • Documentation update

Release backport

This pull request targets release/3.0.0 directly; no further backport is requested.

Validation

  • 270 focused tests passed:
    • 12 MPM spawner and object tests.
    • 256 cloning, manager, reset-mask, and MPM visualization tests.
    • Franka Pour and UR10 Particle Push contributed-environment smoke tests.
  • uv lock --check passed.
  • Release-relative formatting, lint, changelog, and repository hooks passed.
  • Warning-as-error documentation build passed across 247 sources.
  • Backport path-scope validation and git diff --check passed.

Checklist

  • I have read and understood the contribution guidelines.
  • I have run the pre-commit checks.
  • I have included the original documentation changes.
  • My changes generate no new warnings.
  • I have preserved the focused tests for the feature.
  • I have included the original changelog fragments for every touched package.
  • My name already exists in CONTRIBUTORS.md.

This PR migrates Isaac Lab's Newton MPM spawners from direct
`ModelBuilder` particle emission to schema-valid USD authoring and
Newton's standard USD import path.

`MPMGridCfg` and `MPMPointsCfg` remain the user-facing convenience APIs.
They now author:

- a real `UsdGeom.Points` prim with positions, velocities, `widths = 2 *
radius`, and explicit `physics:masses`;
- Newton deformable/simulation schemas and a relationship to the owning
MPM scene;
- a physics-purpose bound material carrying `NewtonMPMMaterialAPI`;
- all supported material values, including the new `hardening_rate` and
`softening_rate` fields; and
- solver-global MPM settings, including `critical_fraction`, on
`NewtonMPMSceneAPI`.

Newton imports the authored particles through `ModelBuilder.add_usd()`.
Isaac Lab consumes the returned `path_particle_map` to retain each
`MPMObject` particle range across both homogeneous batched replication
and heterogeneous builder merges.

- Explicit particle masses are retained instead of being reconstructed
from density and particle width.
- Existing particle ordering, initial velocities, and initial transforms
are preserved.
- Grid generation remains deterministic with the existing fixed jitter
seed.
- Isaac Lab's relaxation-time damping is converted to schema viscosity
with `elastic_damping = damping * young_modulus`.
- The existing independently mutable `<MPM asset>/Particles`
visualization prim and synchronization path remain in place for GL,
Newton RTX, and Kit rendering.
- `MPMGridCfg` continues generating explicit points procedurally in
Isaac Lab because the USD schema represents explicit particles rather
than a procedural grid.

The four MPM demos and the Franka Pour and UR10 Particle Push tasks use
the new authoring path. Their manually added MPM ground colliders were
removed in favor of the standard scene ground-plane workflow.

- Uses the Newton `1.6.0rc1` release already pinned on `develop`.
- Requires `newton-usd-schemas >= 0.5.0`.

- Removes the direct `emit_mpm_particles()` helper. Use `MPMGridCfg` or
`MPMPointsCfg` through the standard spawner workflow.
- Grid jitter is authored once in asset-local space and shared by USD
clones. Independent per-environment distributions should use reset
events or domain randomization.

Per-point multi-material authoring through `UsdGeomSubset` remains
intentionally out of scope until Isaac Lab has a user-facing subset
configuration API.

- Breaking change
- Documentation update

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

Not applicable; existing runtime visualization behavior is retained.

- `216 passed` across the focused MPM spawner, MPM object, Newton
cloning, and Newton manager suites.
- CUDA smoke-tested all four MPM demos: granular, two-way coupling,
snowball smash, and teapot fill.
- CUDA smoke-tested `IsaacContrib-UR10-Particle-Push` and
`IsaacContrib-Franka-Pour`.
- Built the complete documentation with warnings treated as errors.
- Ran all formatting and pre-commit checks successfully.

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have updated focused tests for the feature
- [x] I have added changelog fragments for every touched source package
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit af36c79)
@maxkra15 maxkra15 added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Sep 21, 2026
@maxkra15
maxkra15 marked this pull request as ready for review September 21, 2026 19:42
@maxkra15
maxkra15 requested a review from a team September 21, 2026 19:42
@greptile-apps

greptile-apps Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding findings or newly introduced issues since the previous review.

Summary

This backport migrates Newton MPM particle creation to schema-valid USD authoring and Newton’s standard USD import path.

  • Authors explicit particle geometry, masses, velocities, materials, and solver settings in USD.
  • Preserves particle range tracking and transforms through cloning and replication.
  • Updates MPM tasks, demonstrations, documentation, tests, changelogs, and schema dependencies.
  • No changes were made after the previous review.
  • The prior floor-collider finding was correctly retracted and its thread is resolved.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Config[MPM spawner configuration] --> USD[Schema-valid USD points and material]
  USD --> Import[Newton USD import]
  Import --> Clone[Clone and replicate builders]
  Clone --> Ranges[Record per-object particle ranges]
  Ranges --> Solver[Newton MPM solver]
  Solver --> Render[Mutable visualization point cloud]
Loading

Reviews (2) · Last reviewed commit: "Author Newton MPM particles through USD ..."

@maxkra15

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 21, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

The backport coherently migrates Newton MPM particles to schema-valid USD authoring and updates import, replication, documentation, tests, and schema dependencies. One public API compatibility issue remains: emit_mpm_particles is removed immediately despite the repository’s required deprecation cycle.

  • Design and architecture: The USD-based authoring and Newton import path are consistently integrated across flat stage loading and cloned-source replication. No separate architecture finding warrants maintainer action.
  • API: emit_mpm_particles was publicly exported through __all__ and the package stub, but this change removes it outright. Per repository policy, it must remain available through a deprecation period with migration guidance before removal.
  • Implementation: The patch updates particle authoring, imported range bookkeeping, transforms, solver schema configuration, dependency metadata, tests, and documentation consistently. The required implementation fix is to retain a deprecated compatibility entry point for emit_mpm_particles rather than deleting the symbol in this release.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

]

from .mpm import emit_mpm_particles, spawn_mpm_particles
from .mpm import spawn_mpm_particles

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Api — Public emit_mpm_particles removed without deprecation

emit_mpm_particles was exported from this package's __all__ and stub; the diff deletes both the import and the export, so existing imports fail immediately. Repository policy requires a prior deprecation and migration path before removing a public symbol, and a breaking changelog note alone does not provide one. Retain a deprecated alias for one release that warns and directs callers to the MPMGridCfg/MPMPointsCfg spawner workflow.

@ooctipus
ooctipus merged commit 5da679f into isaac-sim:release/3.0.0 Sep 21, 2026
83 of 90 checks passed
@ooctipus
ooctipus deleted the backport/release/3.0.0/pr-7637 branch September 21, 2026 21:49
ooctipus added a commit that referenced this pull request Sep 24, 2026
…ng docs (#7957)

Backports the three changes from the September 20–23 `develop` audit
that are missing from `release/3.0.0`, alongside the existing
cloning-guide backport:

- #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction
instead of silently discarding its configuration. Includes the original
fixture cleanup and regression coverage.
- #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating
its live configuration.
- #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation
version in deployment and local multi-version builds.
- #7129 (`354168560f`): clarify that `replicate_physics=False` skips the
active physics context while other declared replication contexts still
run.

**Compatibility:** repeated `SimulationContext(...)` calls now raise.
Retrieve the live context with `SimulationContext.instance()`, or call
`clear_instance()` before constructing a replacement. The original major
changelog fragment includes this migration.

The runtime and test files match current `develop`. The docs-default
backport adapts the release branch's existing redirect template,
validates the target page, and preserves explicit overrides. The
cloning-guide backport preserves the current release APIs; its obsolete
sections were already removed.

## Release audit

Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18
UTC** through `cff81e8473` (September 23), against release head
`5d3e0b695e`. **32 are already covered; the remaining three are included
here.** Git history, patch equivalence, GitHub's merged PR list, and
remaining file differences were checked. Branch-specific
version/changelog compilation and existing release-only changes are
preserved.

<details>
<summary>Already covered PRs</summary>

26 have an equivalent patch in release: #7919, #7922, #7923, #7924,
#7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929,
#7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961,
#7970, #7958.

Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in
#7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation
differences were checked against the current release tree.

</details>

## Validation

- **276 tests passed**: SimulationContext (51, including CPU/CUDA),
headless context construction (15), nine schema/fragment suites (165),
four manager suites (38), and DelayBuffer (7).
- Both backported regressions reproduce with the original release
implementations.
- Docs redirect recipe: local/deployment EA defaults, explicit override,
and missing-target rejection passed with a stubbed Sphinx builder.
- All 22 changed files match the intended backport scope; `uv run
isaaclab -f` and `git diff --check` passed.
- Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without
warnings, excluding static assets as the HTML builder does. Full HTML
documentation CI is running.

Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim
6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings
occurred; the CI jobs validate the pinned environments.

The previous [docs CI
failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281)
was an external connection reset fetching the Omniverse intersphinx
inventory, producing one warning under `-W`. That URL returned HTTP 200
when rechecked. This update starts a fresh docs build.

---------

Co-authored-by: hujc <[email protected]>
Co-authored-by: Zihan Xu <[email protected]>
@ooctipus ooctipus self-assigned this Sep 25, 2026
@ooctipus ooctipus added this to the Isaac Lab 3.0 GA milestone Sep 25, 2026
@ooctipus ooctipus moved this to Done in Isaac Lab Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants