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 屬性來選取 AutoPlanar 模式,以啟用自動平面深度 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,檢查裝置上支援哪些模式。

適用於