Repository navigation
examples: live SDF deformation + zero-copy texture demos - #24
Merged
Merged
Conversation
Two embedded-Python Jobs-tab examples exercising the native mesh/image + zero-copy interop work (libcvc Phases 1/2/4/5): - 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/erodes live. Runs on the currently shipped pycvc bindings. - 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. Acceptance demo for the Phase-5 pycvc.image/set_texture bindings; guards for them and raises a clear message on builds without them. Install to <prefix>/share/volrover3/examples/ via the existing install(DIRECTORY scripts/examples/ ...) rule; run from the Jobs tab.
transfix
added a commit
to CVC-Lab/GRL-SNAM
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two embedded-Python (Jobs-tab) example scripts demonstrating the native mesh/image + zero-copy interop work (libcvc Phases 1/2/4/5). They belong here rather than in a downstream lab because they exercise general
pycvc/vrhostcapabilities.volrover_live_sdf_deform.pyStanford 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 pycvc bindings.volrover_live_texture.pyA 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. Acceptance demo for the Phase-5pycvc.image/set_texturebindings (libcvc #156); imports cleanly and raises a clear message on builds without them.Both install to
<prefix>/share/volrover3/examples/via the existinginstall(DIRECTORY scripts/examples/ ...)rule — no CMake change. Pure additions.