glTF icon indicating copy to clipboard operation
glTF copied to clipboard

KHR_physics_rigid_bodies Draft Proposal

Open eoineoineoin opened this issue 1 year ago • 7 comments

Obsoletes https://github.com/KhronosGroup/glTF/pull/2257 - lot of iteration and discussion since initial pull request.

Known Implementations

Blender importer/exporter Babylon.js importer Godot importer

Sample Assets

https://github.com/eoineoineoin/glTF_Physics/tree/master/samples

eoineoineoin avatar Jul 10 '24 13:07 eoineoineoin

Hey @eoineoineoin! I was trying to reference the KHR_implicit_shapes extension schema, but it looks like it's not included in this PR (despite this commit message). Did you shift the changes to a separate PR that I missed?

j9liu avatar Oct 25 '24 17:10 j9liu

@j9liu https://github.com/KhronosGroup/glTF/pull/2370

aaronfranke avatar Oct 25 '24 19:10 aaronfranke

Is this extension going to be ratified this year? I see there is similar OMI proposal. Do we have a consensus on the specs? What do we need to move forward?

Igor-dvr avatar Aug 24 '25 11:08 Igor-dvr

Is this extension going to be ratified this year? I see there is similar OMI proposal. Do we have a consensus on the specs? What do we need to move forward?

Yes, the plan is to ratify this extension. I can't speak for the OMI group directly, but the OMI physics spec started life as a very Godot-specific extension; over time, they've taken concepts from this extension and incorporated them so the two now have significant overlap. I believe they're maintaining their extension to perform some experiments, though don't know any details.

In terms of moving forward, any assistance you might provide reviewing the documentation, clarifying wording, etc. would be helpful. Even better, if you were to make an implementation importer/exporter, that would help validate any tricky parts with specific software.

eoineoineoin avatar Sep 02 '25 10:09 eoineoineoin

I've been using this extension for well over a year now to export from blender into my own engine. It works really well for my needs!

Shinmera avatar Sep 02 '25 10:09 Shinmera

The extension should support global gravity? Or support can be added as a separate extension.

It would be nice to see deformable body extension too.

Igor-dvr avatar Sep 03 '25 10:09 Igor-dvr

@Igor-dvr For gravity, take a look at this extension: https://github.com/omigroup/gltf-extensions/tree/main/extensions/2.0/OMI_physics_gravity (may be "rebased" on top of KHR physics later).

For OMI_physics_body vs KHR_physics_rigid_bodies, the OMI extension continues to exist for 2 reasons:

  • It contains the currently preferred structure as determined by the consensus of OMI group, which is similar to this extension, but different in a few important ways (I can elaborate if needed) including things we'd like to see change in KHR physics. OMI can point to our extension and say "we think it should be done this way".

  • It provides a stable base for us to build on for other extensions such as vehicles, which will likely end up being "rebased" onto KHR physics in the future, after the spec becomes frozen and ratified. Both OMI and KHR physics have evolved with breaking changes, even over the last year, so for now it's beneficial to keep this as an "internal dependency".

aaronfranke avatar Sep 03 '25 16:09 aaronfranke