Skip to content

Start the Quest app on the GDino preset, with a prompt of common room objects - #31

Merged
mrhegemon merged 2 commits into
mainfrom
fix/scan-default-gdino
Nov 14, 2026
Merged

mrhegemon merged 2 commits into
mainfrom
fix/scan-default-gdino

Conversation

@mrhegemon

Copy link
Copy Markdown
Member

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:

  • The prompt. With the GDino preset, Florence lists nothing. So GroundingDINO got the fallback prompt 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.
  • The wrist HUD. It showed the placeholder "Model: All" until B, X or a trigger was pressed. It now shows "Model: DINO" from the start.

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)

  • The start preset. ControllerMenuUI starts on ModelPreset.GDino.
    • As before, it applies the preset when the menu is enabled and before every capture: GroundingDINO on, Florence and SAM2 off.
    • B keeps its order, so from the start it goes GDino → SAM2 → Florence → GDino.
    • The choice is still not saved, so every launch starts on GDino.
  • The wrist HUD. ControllerMenuBuilder makes the HUD in its Start, after the menu was enabled. It filled the HUD with placeholders ("Model: All", "Raycast: --"), which stayed until B, X or a trigger was pressed.
    • It now calls RefreshHUD(includeStatus: false) once the HUD exists, so the model, display and preview lines show the real state from the start. RefreshHUD is now public for this.
    • The status line keeps "Raycast: --" until a button refreshes the HUD, as before. Nothing updates that line when Settings saves the server URL or when a capture ends. Filled in at the start, it would have read "Server: not set (Menu)" on a first run and kept saying so after the URL was saved.
  • 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.DefaultGroundingDinoPrompt lists 26 common room objects:

    • chair, table, sofa, bed, lamp;
    • cup, mug, bottle, bowl, book;
    • laptop, monitor, keyboard, phone, remote control;
    • plant, vase, clock, picture frame, shelf;
    • cabinet, door, window, box, bag and pillow.

    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. groundingDinoFallbackPrompt keeps its name and now defaults to this list, in code and in the scene. The scene change is one YAML line.

    • A blank field uses the default list, and the field is trimmed.
    • GroundingDINO gets this prompt whenever Florence has not listed the snapshot's objects. With the GDino preset, that is every capture.
    • It is also SAM2's last fallback.
    • Florence's labels still build the prompt when Florence runs in the same capture, but none of the menu's presets does that.
  • Exported pins. Each pin from the GDino preset records the fallback prompt as its sourcePrompt, which the export writes as prompt. It is now the list instead of furniture . object .. Pins from the SAM2 preset record segment, 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:
    • the B row;
    • the wrist HUD sample, which now reads "Model: DINO";
    • Display Modes: the app starts on GDino, which looks for common room objects, and the Florence preset places no pins;
    • Quick Start's B item. Its list now uses colons instead of dashes.
  • docs/quest-capture-gltf.md:
    • the B row;
    • the prompt section, which gives the new fallback prompt and says that each preset runs one model per capture, so GroundingDINO and SAM2 get the fallback prompt.

Verification

Run with Unity 6000.6.9f1 on Windows, in batch mode, on the final commits. main @ ae09e37 was run the same way first, as the baseline.

main @ ae09e37 This branch
EditMode 196 of 196 passed 197 of 197 passed
PlayMode 67 tests: 42 passed, 1 failed, 24 skipped 74 tests: 49 passed, 1 failed, 24 skipped
  • Known results. The PlayMode failure is the known batch-mode one, XrSceneScreenshotTests.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.
  • New tests (1 EditMode test and 7 PlayMode cases):
    • 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:
      • without Florence labels, GroundingDINO and SAM2 get the default prompt;
      • a blank field (empty, spaces or null) uses it;
      • another prompt is sent without its outer spaces.
    • BuildSceneTests.Pipeline_AsksGroundingDinoForCommonRoomObjects: the scene's prompt is the default list.
    • Updated: CycleModel_UpdatesPipelineFlags and CycleModel_UpdatesHudLabel_WhenLabelsAutoFound now start on GDino.
  • The tests catch the old behaviour.
    • Old behaviour on the branch: with the Florence start, the old prompt and no HUD refresh put back on top of the branch, all 10 new and updated tests failed, each for the expected reason. That run used an earlier version of TheWristHud_ShowsDino_FromTheStart, without its status line checks. Its first check, "Model: DINO", is unchanged, and that is the check that failed.
    • On main itself, 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 of TheWristHud_ShowsDino_FromTheStart.

Not verified

Not changed

  • The wrist status line can go stale. This predates this PR. After B, X or a trigger is pressed, the line shows the server state at that moment ("Server: not set (Menu)" before a URL is saved) and keeps it until the next press. A saved URL or a capture does not refresh it. Keeping it current is a separate change.
  • The WebXR client under web/ still starts on Florence (ScanningPipeline.ts, web/README.md). This PR changes only the Quest app.
  • Pins can still pile up. This is Show pins and 3D labels in the Quest app; fix the display modes, Space Setup capture and glTF export #30's other open decision: nothing in the app clears pins.

Merge notes

🤖 Generated with Claude Code

mrhegemon and others added 2 commits November 14, 2026 03:17
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>
@mrhegemon
mrhegemon merged commit d1de584 into main Nov 14, 2026
1 check failed
@mrhegemon
mrhegemon deleted the fix/scan-default-gdino branch November 14, 2026 21:13
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