npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

com.phantomsxr.questmodule

v1.0.4

Published

XRMOD QuestModule is a specialized support module for the Meta Quest space operating system. It enables XRMOD Engine to run smoothly on Meta Quest.

Downloads

327

Readme

XR-MOD Quest Module

Overview

The XR-MOD Quest Module provides dedicated support for Meta Quest devices within the XR-MOD ecosystem. It integrates Meta's OpenXR features—such as Passthrough, Scene Capture, Meshing, and Occlusion—directly into the XR-MOD architecture to enable rich Mixed Reality experiences.

This module is designed to "plug and play": it automatically registers itself when running on a Quest device and manages the lifecycle of Quest-specific features based on your runtime experience configuration.

Key Features

  • Mixed Reality (Passthrough)

    • Seamlessly toggle local context passthrough to blend virtual content with the real world.
    • Controls camera background and clear flags automatically.
  • Scene Understanding & Meshing

    • Meshing: Generate physics meshes from the environment for collisions and navigation.
    • Scene Capture: Integration with Meta's Scene Capture (Spatial Setup) to let users define their room layout.
    • Bounding Boxes: Access and visualize semantic scene data (walls, tables, couches).
  • Advanced Occlusion

    • Support for Environment Depth.
    • Dynamic Hand Removal from the depth map.
    • Temporal Smoothing for stable occlusion edges.
    • Configurable alignment with Human Segmentation.
  • Input & Interaction

    • Smart Switching: Automatically switches visualizers and interactors between Controllers and Hand Tracking based on user activity.
    • Locomotion: Integrated support for Teleportation, Continuous Turn, and Joystick Movement.
    • Visualizers: Automatic management of controller and hand meshes.
  • Passthrough Camera Access (Requires Horizon OS v74+)

    • Low-level access to passthrough camera frames via WebCamTexture.
    • Utilities to query camera intrinsics, poses, and capabilities.

Usage & Configuration

The module is driven by the XR-MOD Runtime Experience Config. You do not typically need to write code to enable standard features; instead, you configure them in your project settings or incoming data stream.

Configuration Model (XRConfiguresModel)

The module attempts to resolve XRConfiguresModel from the global RuntimeExperienceConfig. Key properties include:

| Property | Description | | :--- | :--- | | UseOcclusion | Master switch to enable/disable occlusion. | | EnableHandRemoval | If true, hands are masked out of the occlusion buffer (prevents self-occlusion artifacts). | | TemporalSmoothing | Enables time-based smoothing for depth data. | | EnvironmentDepthMode | Sets the precision (e.g., Medium, High) of environment depth. | | CustomMeshVisualizerName | Name of a prefab in your package to use for visualizing the environment mesh. |

Scene Capture

To trigger the Scene Capture (Room Setup) flow on the device, send a notification:

ActionNotificationCenter.DefaultCenter.PostNotification("CaptureEnvironment", null);

Architecture

The module follows the Interceptor/Decorator pattern common in XR-MOD:

  1. Registry: AutoRegisterModule.cs detects the Quest platform at startup and registers MetaQuestModule into the IoC container.
  2. Module: MetaQuestModule acts as the controller. It listens for configuration updates and builds/activates specific Feature Decorators.
  3. Decorators: Small, focused classes (e.g., MetaQuestMeshingDecorator, MetaQuestLocomotionFeatureDecorator) that wrap specific subsystems (like ARMeshManager or AROcclusionManager) and manage their lifecycle.
  4. Components Model: ArchitectureComponentsModel is a singleton that caches references to the specific XR hardware, such as the XRRig, ARCamera, and LocomotionSystem, to ensure features can easily find what they need to manipulate.

API Overview

Core

  • MetaQuestModule: The main entry point. Manages dependencies and orchestration.
  • XRRuntimeContextDataModel: Holds volatile runtime state, such as AR Session status, frame textures, and recognized markers.

Passthrough Camera (Advanced)

Located in Phantom.XRMOD.QuestModule.Runtime.PassthroughCamera:

  • PassthroughCameraUtils: Helpers for retrieving camera intrinsics and world poses.
  • WebCamTextureManager: A component to manage the lifecycle of a WebCamTexture for a specific eye (Left/Right).
  • PassthroughCameraPermissions: Handles the Android permission requests (android.permission.CAMERA and horizonos.permission.HEADSET_CAMERA).

Pitfalls & Best Practices

  • Platform Checks: This module is wrapped in #if QUEST_INSTALL. Ensure your code calling it also respects platform defines or uses the provided Abstractions/Interfaces to avoid build errors on other platforms.
  • Permissions: Passthrough Camera access requires explicit user permission. The PassthroughCameraPermissions script handles this, but your app must gracefully handle cases where permission is denied.
  • OS Version: Raw Passthrough Camera access is only available on Quest devices running Horizon OS v74 or later.
  • Occlusion Performance: Enabling High-Res Depth and Temporal Smoothing can be expensive. Profile your application performance when these are enabled.

Dependencies

  • Phantom.XRMOD.Core
  • Phantom.XRMOD.ActionNotification
  • Unity ARFoundation
  • Unity OneXR / Meta OpenXR Feature group