HolographicCameraRenderingParameters.DepthReprojectionMethod 属性

定义

获取或设置用于给定全息帧的关联 HolographicCamera重投影方法。 系统将根据设备和/或平台功能选择默认的重新投影方法。

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

属性值

要用于给定 全息帧的关联相机的重新投影方法。

Windows 要求

设备系列
Windows 10, version 2104 (在 10.0.20348.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v12.0 中引入)

示例

从 [TBD SDK 版本] 开始,应用应使用 HolographicCameraRenderingParameters.DepthReprojectionMethod 属性选择 自动平面 模式,以便启用自动平面深度 LSR。 以下示例演示如何设置深度重新投影方法。 应在应用需要启用自动平面深度 LSR 模式的每个 全息帧 上执行此操作:

renderingParameters.DepthReprojectionMethod(HolographicDepthReprojectionMethod::AutoPlanar);

在 [TBD SDK 版本]之前,应用需要调用点值为 的 {0,0,0}SetFocusPoint,以便在HoloLens 2上启用自动平面深度 LSR。 应更新在 [TBD SDK 版本] SDK 或更高版本上编译的应用,以改为设置 DepthReprojectionMethod 属性。

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

注解

使用特定模式的应用可以使用此属性在支持该模式的设备上选择模式。 通过调用 HolographicViewConfiguration.SupportedDepthReprojectionMethods 检查设备上支持的模式。

适用于