XR

XR Overview

XR is a general term used to describe the concept of Extended Reality, which includes Virtual Reality (VR), Augmented Reality (AR), and Mixed Reality (MR).

Architecture

Galacean has designed XR to be clean and flexible:

  • Clean: When XR capabilities are not needed, the package does not contain any XR logic, and the size does not increase at all.
  • Flexible: Pluggable functionality makes development easier.
  • Future-oriented: Multi-backend design allows for adaptation to different platforms and interfaces in the future.
image.png

Module Management

PackageDescriptionRelated Documentation
@galacean/engine-xrCore architecture logicAPI
@galacean/engine-web-xrBackend packageDoc
@galacean/engine-toolkit-xrAdvanced tool componentsDoc

@galacean/engine-xr and @galacean/engine-web-xr are dependencies that must be introduced to implement WebXR. Compared to these two packages, @galacean/engine-toolkit-xr is not mandatory, but its presence can make XR development in the editor much simpler.

The dependency rules between XR packages follow the version dependency rules, meaning that the versions of @galacean/engine-xr and @galacean/engine-web-xr must be consistent with @galacean/engine, and the major version of @galacean/engine-toolkit-xr must be consistent with @galacean/engine.

Quick Start

In this section, you can:

Last updated on July 17, 2024

Was this page helpful?