Repository navigation
Start the Quest app on the GDino preset, with a prompt of common room objects - #31
Merged
Merged
Conversation
The app started on the Florence preset, which runs neither GroundingDINO nor SAM2, so out of the box a capture placed no vision server pins and drew no boxes. ControllerMenuUI now starts on GDino. B keeps its order, so from the start it goes GDino, SAM2, Florence, GDino. The wrist HUD did not show the preset the app starts on: the builder makes the HUD in its Start, after the menu was enabled, and the HUD kept the placeholder "Model: All" until B, X or a trigger was pressed. The builder now refreshes the model, display and preview lines once it has made the HUD (RefreshHUD is public), so the HUD reads "Model: DINO" from the start. The status line keeps "Raycast: --" until a button refreshes the HUD, as before. Nothing updates that line when Settings saves the server URL or a capture ends, so filled in at the start it would read "Server: not set (Menu)" on a first run and keep saying so after the URL was saved. With the GDino preset Florence lists nothing, so GroundingDINO got the fallback prompt "furniture . object ." and every pin was labelled furniture or object. SpatialCapturePipeline.DefaultGroundingDinoPrompt lists common room objects, the same list the CI Spatial Companion app uses, so both apps look for the same objects. groundingDinoFallbackPrompt keeps its name and defaults to it, in code and in the scene, and a blank field uses it. SAM2's last fallback is the same prompt. Tests: the menu starts on GDino and applies it on enable and before a capture; the HUD the builder makes reads "Model: DINO", and its status line reads "Raycast: --" until a button fills it in; without Florence labels GroundingDINO and SAM2 get the default prompt, also when the field is blank, and another prompt is sent without its outer spaces; the scene's prompt is the default. The two tests that started on Florence now start on GDino. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: the B row says the app starts on GDino and cycles GDino, SAM2, Florence; the wrist HUD sample reads "Model: DINO"; Display Modes says the app starts on GDino, which looks for common room objects such as chairs, tables and lamps, and that the Florence preset places no pins. In Quick Start, B switches the AI model and the app starts on GDino, instead of "switch model if you only want one AI model active": every capture runs one preset. That list's items are separated by colons instead of dashes. docs/quest-capture-gltf.md: the B row starts on GDino, and the prompt section gives the new fallback prompt instead of "furniture . object .", the prompt GroundingDINO gets on every capture with the GDino preset; a blank field uses it. "Each prompt stage feeds the next." is replaced: in the app each preset runs one model per capture, so GroundingDINO and SAM2 get the fallback prompt. The prompt steps there are separated by colons instead of dashes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
#30 left an owner decision open. The Quest app started on the Florence preset, which runs neither GroundingDINO nor SAM2, and only those steps place vision-server pins or draw 2D boxes. So out of the box, a capture placed no vision-server pins. The owner chose to start on GDino, and this PR does that.
Two problems would have made the GDino start look broken, and this PR fixes both:
furniture . object ., and every pin would have been labelled "furniture", "object" or "furniture object". The fallback is now a list of 26 common room objects, the same list the CI Spatial Companion app uses.This PR is two commits on
main@ae09e37. The vision server is unchanged. Nothing was tried on a headset or against a live vision server.What changed
Start on GDino (
aacaf48)ControllerMenuUIstarts onModelPreset.GDino.ControllerMenuBuildermakes the HUD in itsStart, after the menu was enabled. It filled the HUD with placeholders ("Model: All", "Raycast: --"), which stayed until B, X or a trigger was pressed.RefreshHUD(includeStatus: false)once the HUD exists, so the model, display and preview lines show the real state from the start.RefreshHUDis now public for this.XRControllerInput: the doc comment for B lists the cycle from GDino and says the app starts there.A prompt of common room objects (
aacaf48)The list.
SpatialCapturePipeline.DefaultGroundingDinoPromptlists 26 common room objects:GroundingDINO labels each box with the words of this list that it matched, and the app uses that label for the pin. A label can be part of a name, such as "remote", or two names together, such as "cup mug".
The field.
groundingDinoFallbackPromptkeeps its name and now defaults to this list, in code and in the scene. The scene change is one YAML line.Exported pins. Each pin from the GDino preset records the fallback prompt as its
sourcePrompt, which the export writes asprompt. It is now the list instead offurniture . object .. Pins from the SAM2 preset recordsegment, as before.Privacy texts. The camera notice and the Companion Scan privacy policy describe what the server's models can do across the presets. The policy also says the server receives "the names of the objects to look for". Neither needs to change.
Docs (
f79299b)README.md:docs/quest-capture-gltf.md:Verification
Run with Unity 6000.6.9f1 on Windows, in batch mode, on the final commits.
main@ae09e37was run the same way first, as the baseline.main@ae09e37XrSceneScreenshotTests.QaXrScene_CapturesControllersAndAnchors. The 24 skips are the known ones on both runs: 22 need a live vision server, 1 needs a baseline screenshot, and 1 needs the Meta XR simulator.ControllerMenuUiStateTests.TheMenu_StartsOnGDino_AndAppliesItOnEnableAndBeforeACapture.ControllerMenuHudBindingTests.TheWristHud_ShowsDino_FromTheStart: the HUD the builder makes reads "Model: DINO". Its status line reads "Raycast: --" until a button fills it in. If the builder fills in the whole HUD instead, this test fails, because the line then reads "Raycast: PoseOnly | Fallback: 0 | Server: not set (Menu)".GroundingDinoPromptTests:BuildSceneTests.Pipeline_AsksGroundingDinoForCommonRoomObjects: the scene's prompt is the default list.CycleModel_UpdatesPipelineFlagsandCycleModel_UpdatesHudLabel_WhenLabelsAutoFoundnow start on GDino.TheWristHud_ShowsDino_FromTheStart, without its status line checks. Its first check, "Model: DINO", is unchanged, and that is the check that failed.mainitself, with only the two menu test files added: the four menu tests fail. The menu starts on Florence, and the HUD the builder makes reads "Model: All". The prompt tests do not compile there, because the new constant and property do not exist. This run also used the earlier version ofTheWristHud_ShowsDino_FromTheStart.Not verified
Not changed
web/still starts on Florence (ScanningPipeline.ts,web/README.md). This PR changes only the Quest app.Merge notes
main@ae09e37, which includes Sign release builds in a protected release job #25 and Show pins and 3D labels in the Quest app; fix the display modes, Space Setup capture and glTF export #30.git merge-treewithmainis clean.🤖 Generated with Claude Code