Deprecated
This function is deprecated, use the standard materials from ARUtilities plugin for passthrough rendering.
Module |
|
Header |
/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Public/GoogleARCoreFunctionLibrary.h |
Include |
#include "GoogleARCoreFunctionLibrary.h" |
Source |
/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreFunctionLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintPure, Category="GoogleARCore|PassthroughCamera",
Meta=(Keywords="googlear arcore passthrough camera uv", DeprecatedFunction, DeprecationMessage="This function is deprecated, use the standard materials from ARUtilities plugin for passthrough rendering."))
static void TransformARCoordinates2D
(
EGoogleARCoreCoordinates2DType InputCoordinatesType,
const TArray< FVector2D > & InputCoordinates,
EGoogleARCoreCoordinates2DType OutputCoordinatesType,
TArray< FVector2D > & OutputCoordinates
)
Transforms an array of 2D coordinates into a different 2D coordinate system. This will account for the display rotation, and any additional required adjustment.
Some examples of useful conversions: To transform screen space UVs for texture space UVs to rendering pass-through camera texture: Viewport -> Texture; To transform a point found by a computer vision algorithm in the pass-through camera image into a point on the viewport: Image -> Viewport;
Parameter |
Description |
---|---|
InputCoordinatesType |
The coordinate system used by InputCoordinates. |
InputCoordinates |
The input 2d coordinates. |
OutputCoordinatesType |
The coordinate system to transform to. |
OutputCoordinates |
The output 2d coordinates. |