Udostępnij za pośrednictwem


HolographicCameraRenderingParameters.DepthReprojectionMethod Property

Definition

Gets or sets the reprojection method used for the associated HolographicCamera for a given HolographicFrame. The system will select a default reprojection method based on the device and/or platform capabilities.

public:
 property HolographicDepthReprojectionMethod DepthReprojectionMethod { HolographicDepthReprojectionMethod get(); void set(HolographicDepthReprojectionMethod value); };
HolographicDepthReprojectionMethod DepthReprojectionMethod();

void DepthReprojectionMethod(HolographicDepthReprojectionMethod value);
public HolographicDepthReprojectionMethod DepthReprojectionMethod { get; set; }
var holographicDepthReprojectionMethod = holographicCameraRenderingParameters.depthReprojectionMethod;
holographicCameraRenderingParameters.depthReprojectionMethod = holographicDepthReprojectionMethod;
Public Property DepthReprojectionMethod As HolographicDepthReprojectionMethod

Property Value

The reprojection method to be used for the associated camera for a given HolographicFrame.

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v12.0)

Examples

Starting with [TBD SDK version], apps should use the HolographicCameraRenderingParameters.DepthReprojectionMethod property to select AutoPlanar mode in order to enable auto-planar depth LSR. The following example demonstrates how set the depth reprojection method. This should be done on every HolographicFrame where the app needs to enable the auto-planar depth LSR mode:

renderingParameters.DepthReprojectionMethod(HolographicDepthReprojectionMethod::AutoPlanar);

Prior to [TBD SDK version], apps were instead required to call SetFocusPoint with a point value of {0,0,0} in order to enable auto-planar depth LSR on HoloLens 2. Apps that are compiled on the [TBD SDK version] SDK or later should be updated to set the DepthReprojectionMethod property instead.

renderingParameters.SetFocusPoint(m_stationaryReferenceFrame.CoordinateSystem(), { 0,0,0 });

Remarks

Apps that use a particular mode can use this property to select the mode on devices which support that mode. Check to see what modes are supported on a device by calling HolographicViewConfiguration.SupportedDepthReprojectionMethods.

Applies to