user: Show practical ways to work with Interface in a Blender add-on or script – include code.

assistant: Located in the 3D Viewport ‣ Sidebar ‣ VR tab.

[image reference removed]

### VR Session

[image reference removed]

Start VR Session
:   Try to set up a connection to the OpenXR platform to share the viewport with
    an [HMD](../../getting_started/configuration/hardware.xhtml#hardware-head-mounted-displays).

Tracking
:   Positional
    :   Only track rotational changes of the head, do not allow the HMD
        to affect the location of the viewer in virtual space.

    Absolute
    :   Skip eye offsets that are normally added for placing the viewer
        exactly at landmarks. This allows the tracking origin to be defined
        independently of the HMD position.

Use Controller Actions
:   Enable default controller actions for viewport navigation,
    controller tracking, and haptics.

### View

[image reference removed]

Show
:   Floor
    :   Set visibility of the ground plane in the VR view.

    Annotations
    :   Set visibility of annotation strokes in the VR view.

    Selection
    :   Set visibility of selection outlines in the VR view.

    Controllers
    :   Set visibility of VR motion controllers.
        Requires enabling the [Use Controller Actions](#vr-session) option.

    Custom Overlays
    :   Set visibility of custom operator drawing (e.g. default teleport beam).

    Object Extras
    :   Set visibility of object extras, including empties, lights, and cameras.

    Object Type Visibility `👁`
    :   Set visibility of objects by type.

Controller Style
:   Preferred visualization of VR motion controllers.

Clip Start/End
:   Clipping values of the VR view, [as in the 3D Viewport](../../editors/3dview/sidebar.xhtml#bpy-types-spaceview3d-clip-start).

### Landmarks

Landmarks are used to store reusable base poses (position and rotation) for the viewer in the virtual space.
In addition, a base viewer reference scale can be set for landmarks of types Custom Object and Custom Pose.

[image reference removed]

Landmark List
:   A [list view](../../interface/controls/templates/list_view.xhtml#ui-list-view).

    The selected landmark defines which landmark’s settings are shown below the list.
    Changing the selected landmark does not have an influence on the VR view.

    Activate VR Landmark
    :   Activates a landmark, making it change the base pose of the VR view.

Add VR Landmark
:   Create a landmark.

Remove VR Landmark
:   Delete the selected landmark.

Add from Session
:   Create a landmark from the viewer pose of the running VR session.

Landmark Controls
:   Add Camera and VR Landmark from Session
    :   Create a new camera and landmark from the viewer pose of the running VR session.

    Add Landmark from Camera
    :   Add a new landmark from the active camera object.

    Update Custom Landmark
    :   Update the selected landmark from the current VR viewer pose.

    Cursor to Landmark
    :   Move the 3D Cursor to the selected landmark.

    Scene Camera to Landmark
    :   Position the scene camera at the selected landmark.

    Camera from Landmark
    :   Create a new camera from the selected landmark.

Type
:   Scene Camera:
    :   Follow the scene’s [active camera](../../scene_layout/scene/properties.xhtml#bpy-types-scene-camera)
        to define the base pose of the viewer.

    Custom Object:
    :   Set an arbitrary object to define the base pose of the viewer.

    Custom Pose:
    :   Manually define a position and rotation to use as the base pose of the viewer.

### Action Maps

[image reference removed]

Gamepad
:   Use input from a gamepad (Microsoft Xbox Controller) instead of motion controllers for
    VR actions such as viewport navigation.

Extensions
:   Enable additional controller bindings to ensure correct input-to-action mappings.
    Note that a given extension may not be supported by all
    [VR platforms](../../getting_started/configuration/hardware.xhtml#hardware-head-mounted-displays).

    HP Reverb G2
    :   Enable bindings for the HP Reverb G2 controllers.

    HTC Vive Cosmos
    :   Enable bindings for the HTC Vive Cosmos controllers.

    HTC Vive Focus
    :   Enable bindings for the HTC Vive Focus 3 controllers.

    Huawei
    :   Enable bindings for the Huawei controllers.

### Viewport Feedback

[image reference removed]

Show VR Camera
:   Draw an indicator of the current VR viewer pose (location and rotation in the virtual space)
    in the current 3D Viewport.

Show VR Controllers
:   Draw indicators of tracked VR motion controllers in the current 3D viewport.
    Requires enabling the [Use Controller Actions](#vr-session) option.

Show Landmarks
:   Draw [landmark](#landmarks) indicators in the current 3D Viewport.

Mirror VR Session
:   Make the current 3D Viewport follow the perspective of the VR view.