Add batch cubemap splitter with mask projection and RealityCapture-compatible naming#2
Open
Create-your63 wants to merge 2 commits intomasterfrom
Open
Conversation
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.
Motivation
Description
tools/equirect_to_cubemap_xmp.pywhich supports single-file and folder batch processing, optional mask handling via--with-masks, and RealityCapture-compatible mask naming modes (--output-mask-modewithdot-maskandsuffix).stem + input_mask_suffix(default_mask) andname + .mask.<ext>, projects RGB with bilinear sampling and masks with nearest-neighbor, writes per-face images and.xmpsidecars containing rig and rig-instance UUIDs and a camera-to-world rotation matrix, and emitscubemap_rig_manifest.jsonsummarizing results.IMAGE_EXTENSIONSwhitelist andlist_input_images()to gather input images while skipping mask files, and--base-name/--face-size/--image-format/--jpg-quality/--xmp-namespaceoptions to control outputs.README.mdwith usage examples, mask lookup rules, output naming examples, and workflow notes recommendingpngand explaining mask projection behavior.Testing
python3 -m py_compile tools/equirect_to_cubemap_xmp.pysucceeded (syntax check passed).python3 tools/equirect_to_cubemap_xmp.py --helpfailed at runtime due to a missingnumpydependency in this environment (ModuleNotFoundError).python3 -m pip install --quiet numpy pillowfailed due to network/proxy restrictions (403), preventing runtime verification of processing steps.Codex Task