Skip to content

Add room capture, fixations and remote variables support - #21

Open
000x999 wants to merge 2 commits into
developmentfrom
feature/roomcapture-fixations-remotevariables
Open

000x999 wants to merge 2 commits into
developmentfrom
feature/roomcapture-fixations-remotevariables

Conversation

@000x999

@000x999 000x999 commented Aug 28, 2026

Copy link
Copy Markdown
  • New editor props for room capture, fixations and remote variables, mapped to SDK config keys.
  • Remote variables API on Cognitive3DContext: getRemoteVariable, listRemoteVariables, fetchRemoteVariables, onRemoteVariablesAvailable.
  • Requests plane-detection and mesh-detection when room capture is on.
  • Logs granted geometry features on session start.

Copilot AI lite review requested due to automatic review settings August 28, 2026 09:11
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 17 minor

Results:
17 new issues

Category Results
CodeStyle 17 minor

View in Codacy

🟢 Metrics 7 complexity · 0 duplication

Metric Results
Complexity 7
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@000x999 000x999 assigned 000x999 and unassigned 000x999 Aug 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the MatterCraft Cognitive3D integration to support room capture, fixations, and remote variables by exposing new editor properties, wiring them into the Cognitive3D SDK config, and adding runtime hooks for WebXR geometry features and remote-variable availability.

Changes:

  • Added room capture / fixations / remote variables-related editor props and mapped them into the SDK config.
  • Added remote variables helpers and an availability event on Cognitive3DContext.
  • Patched navigator.xr.requestSession to request plane-detection / mesh-detection when room capture is enabled, and logged granted geometry features at session start.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Cognitive3DContext.ts Adds context flags plus remote variable access helpers and an availability event.
src/Cognitive3D.ts Adds new construction props, maps them to SDK config, installs geometry-feature request patching, and wires remote-variable availability on session start/dispose.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Cognitive3D.ts
Comment on lines +120 to +123
roomDataLimit: this.constructorProps.roomDataLimit || 64,
enableFixation: this.constructorProps.enableFixations !== false,
allowFixationWithoutEyeTracking: this.constructorProps.allowFixationWithoutEyeTracking === true,
fixationDataLimit: this.constructorProps.fixationDataLimit || 256,
Comment thread src/Cognitive3D.ts
Comment on lines +177 to +181
private installGeometryFeatures() {
const xr = (navigator as any).xr;
if (!xr || typeof xr.requestSession !== "function" || this._originalRequestSession) {
return;
}
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.

2 participants