Skip to content

examples: live SDF deformation + zero-copy texture demos - #14

Merged
transfix merged 1 commit into
mainfrom
feat/live-deform-texture-examples
Jul 26, 2026
Merged

transfix merged 1 commit into
mainfrom
feat/live-deform-texture-examples

Conversation

@transfix

Copy link
Copy Markdown
Contributor

Two volrover3 Jobs-tab example scripts exercising the native mesh/image + zero-copy interop work (roadmap §C).

volrover_live_sdf_deform.py

Stanford bunny → pycvc.sdf → volume, then each frame mutates the voxel field in place through the zero-copy numpy view (volume.grid()) and re-uploads — the SDF surface ripples and erodes live and fast. Runs on the currently shipped bindings.

volrover_live_texture.py

A UV'd quad textured with a pycvc.image; each frame edits the texture pixels in place via the zero-copy numpy view (image.numpy()) + node.texture_modified() — the mapped texture updates live with no per-frame copies. This is the acceptance demo for the Phase-5 pycvc.image/set_texture bindings (libcvc PR #156); it imports cleanly and raises a clear message on builds without those bindings.

Both are pure additions under examples/ — no code changes.

Add two volrover3 Jobs-tab example scripts exercising the native
mesh/image + zero-copy interop work:

- volrover_live_sdf_deform.py: Stanford bunny -> pycvc.sdf -> volume,
  then mutate the voxel field in place each frame via the zero-copy
  numpy view (volume.grid()) and re-upload, so the SDF surface ripples
  and erodes live.
- volrover_live_texture.py: a UV'd quad textured with a pycvc.image,
  whose pixels are edited in place each frame via the zero-copy numpy
  view (image.numpy()) + node.texture_modified(), so the mapped
  texture updates live with no per-frame copies. Guards for the
  Phase-5 pycvc.image/set_texture bindings and raises a clear message
  on older builds.
@transfix
transfix force-pushed the feat/live-deform-texture-examples branch from 799b265 to 557b9c1 Compare July 26, 2026 09:25
@transfix
transfix merged commit bb923d2 into main Jul 26, 2026
3 checks passed
transfix added a commit that referenced this pull request Jul 26, 2026
These two Jobs-tab demos (volrover_live_sdf_deform.py, volrover_live_texture.py)
exercise general volrover3 embedded-Python capabilities (pycvc.sdf, pycvc.image,
zero-copy interop), not GRL-SNAM lab functionality, so they belong with the other
volrover example scripts under volrover3/scripts/examples/ (transfix/volrover#24)
rather than here. Added in #14; relocating.
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