Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Using Sharpening in Your App (Beta)

Supported Platforms and Devices

Platform Headset Supported Plugin Version
PC PC Streaming Focus 3/XR Elite/Focus Vision X
Pure PC Vive Cosmos X
Vive Pro series X
AIO Focus 3 V 2.5.0 and above
XR Elite V 2.5.0 and above
Focus Vision V 2.5.0 and above

Specification

This chapter will explore how to enhances the clarity of the final image using the Sharpness feature within the XR_HTC_composition_layer_extra_settings extension.

Environment Settings

Enable Feature

In Edit > Project Settings > XR Plug-in Management > OpenXR, enable VIVE XR Composition Layer (Extra Settings) feature.


Golden Sample

This article shows how to use sharpness in your app.

Checking HMD Support for Sharpening

To verify if sharpening is supported, use the following code:

ViveCompositionLayerExtraSettings feature = UnityEngine.XR.OpenXR.OpenXRSettings.Instance.GetFeature<ViveCompositionLayerExtraSettings>();
bool isSharpeningSupported = feature.supportSharpening;

Enabling and Disabling Sharpening

  1. In the Settings Editor Enable Sharpening and select the desired Sharpening Mode and Sharpening Level.


  2. Using APIs
    Disable Sharpening:

    XR_HTC_composition_layer_extra_settings.Interop.xrViveCompositionLayer_DisableSharpening();
    Enable Sharpening:
    XR_HTC_composition_layer_extra_settings.Interop.xrViveCompositionLayer_EnableSharpening(XrSharpeningModeHTC sharpeningMode, float sharpeningLevel);
    Use this method to enable sharpening with a specific mode and level.