Bagikan melalui


HolographicCameraRenderingParameters.DepthReprojectionMethod Properti

Definisi

Mendapatkan atau mengatur metode proyeksi ulang yang digunakan untuk HolographicCamera terkait untuk HolographicFrame tertentu. Sistem akan memilih metode reprojeksi default berdasarkan kemampuan perangkat dan/atau platform.

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

Nilai Properti

Metode proyeksi ulang yang akan digunakan untuk kamera terkait untuk HolographicFrame tertentu.

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 2104 (diperkenalkan dalam 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v12.0)

Contoh

Dimulai dengan [versi TBD SDK], aplikasi harus menggunakan properti HolographicCameraRenderingParameters.DepthReprojectionMethod untuk memilih mode AutoPlanar untuk mengaktifkan LSR kedalaman planar otomatis. Contoh berikut menunjukkan cara mengatur metode reprojeksi kedalaman. Ini harus dilakukan pada setiap HolographicFrame di mana aplikasi perlu mengaktifkan mode LSR kedalaman planar otomatis:

renderingParameters.DepthReprojectionMethod(HolographicDepthReprojectionMethod::AutoPlanar);

Sebelum [versi TBD SDK], aplikasi diperlukan untuk memanggil SetFocusPoint dengan nilai {0,0,0} titik untuk mengaktifkan LSR kedalaman planar otomatis pada HoloLens 2. Aplikasi yang dikompilasi pada [versi TBD SDK] SDK atau yang lebih baru harus diperbarui untuk mengatur properti DepthReprojectionMethod sebagai gantinya.

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

Keterangan

Aplikasi yang menggunakan mode tertentu dapat menggunakan properti ini untuk memilih mode pada perangkat yang mendukung mode tersebut. Periksa untuk melihat mode apa yang didukung pada perangkat dengan memanggil HolographicViewConfiguration.SupportedDepthReprojectionMethods.

Berlaku untuk