Skip to content

feat: add debug-renderer - #41

Merged
sebcrozet merged 7 commits into
mainfrom
contact-debug-render
Oct 3, 2026
Merged

sebcrozet merged 7 commits into
mainfrom
contact-debug-render

Conversation

@sebcrozet

@sebcrozet sebcrozet commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

This PR adds a debug-renderer for both solvers currently supported by Nexus (RBD, MPM).

  • For the rigid-body solver, we render the same information as rapier’s debug-renderer (shapes, contacts, body frames, joint anchors/axes, etc.) There is also an option to render the LBVH nodes.
  • For the MPM solver, the debug-renderer shows the particles, the grid chunks, grid nodes, grid and particle velocity fields, per-particle contact normals.

The debug-lines can either be rendered alongside the main rendering, or it can replace it (selectable from the debug-render tab of the testbed UI). See the online demos. Some screenshots are shown below.

Note that the debug-renderer is mainly for debugging. So it is not optimized for speed and keeping it enabled will have a noticeable performance impact.

Screenshot 2026-10-03 at 16 26 05 Screenshot 2026-10-03 at 16 35 55 Screenshot 2026-10-03 at 16 30 28 Screenshot 2026-10-03 at 16 33 26

@sebcrozet
sebcrozet force-pushed the contact-debug-render branch from 2e70fc7 to 6d587a9 Compare October 3, 2026 14:44
@sebcrozet
sebcrozet merged commit 6e09d80 into main Oct 3, 2026
5 checks passed
@sebcrozet
sebcrozet deleted the contact-debug-render branch October 3, 2026 15:00
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