Aracılığıyla paylaş


HolographicCameraPose.OverrideViewTransform Method

Definition

Notifies the compositor that the app is rendering with an alternate suboptimal view transform this frame.

void OverrideViewTransform(SpatialCoordinateSystem const& coordinateSystem, HolographicStereoTransform const& coordinateSystemToViewTransform);
public void OverrideViewTransform(SpatialCoordinateSystem coordinateSystem, HolographicStereoTransform coordinateSystemToViewTransform);
function overrideViewTransform(coordinateSystem, coordinateSystemToViewTransform)
Public Sub OverrideViewTransform (coordinateSystem As SpatialCoordinateSystem, coordinateSystemToViewTransform As HolographicStereoTransform)

Parameters

coordinateSystem
SpatialCoordinateSystem

The coordinate system in which the alternate suboptimal view transform will be expressed.

coordinateSystemToViewTransform
HolographicStereoTransform

The alternate suboptimal view transform.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Warning: Rendering a frame with any view transform other than that frame's TryGetViewTransform value will result in increased misprediction and thus reduced visual quality. This quality reduction will be most pronounced if the alternate view transform's position component is changed.

However, if you must render a frame with an alternate view transform, be sure to call this method and provide that transform. Visual quality will be even worse if the compositor does not know the actual transforms used for rendering.

Applies to