Navigation
API > API/Plugins > API/Plugins/CameraCalibrationCore
Lens distortion handler for a Brown-Conrady U-D lens model that implements the Brown-Conrady polynomial model
| Name | UBrownConradyUDLensDistortionModelHandler |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/BrownConradyUDLensDistortionModelHandler.h |
| Include Path | #include "BrownConradyUDLensDistortionModelHandler.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UBrownConradyUDLensDistortionModelHandler : public ULensDistortionModelHandlerBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → ULensDistortionModelHandlerBase → UBrownConradyUDLensDistortionModelHandler
Derived Classes
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BrownConradyUDParameters | FBrownConradyUDDistortionParameters | Brown-Conrady U-D lens distortion parameters (k1, k2, k3, k4, k5, k6, p1, p2) | BrownConradyUDLensDistortionModelHandler.h |
Functions
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitDistortionMaterials() |
BrownConradyUDLensDistortionModelHandler.h | ||
virtual void InitializeHandler() |
BrownConradyUDLensDistortionModelHandler.h | ||
virtual void InterpretDistortionParameters() |
BrownConradyUDLensDistortionModelHandler.h | ||
virtual void UpdateMaterialParameters() |
BrownConradyUDLensDistortionModelHandler.h |
Overridden from ULensDistortionModelHandlerBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDistortedUV
(
const FVector2D& InScreenUV |
Initialize the handler. | BrownConradyUDLensDistortionModelHandler.h | |
virtual FVector2D ComputeUndistortedUV
(
const FVector2D& InScreenUV |
Use the current distortion state to compute the undistortion position of an input UV coordinate | BrownConradyUDLensDistortionModelHandler.h | |
virtual void ExecuteDistortionShader
(
FRDGBuilder& GraphBuilder, |
Execute the distortion shader with the specified parameters, which enables a modular SVE that doesn't need to know lens model specifics. | BrownConradyUDLensDistortionModelHandler.h | |
virtual FString GetDistortionShaderPath() |
Create the distortion MIDs Set the material parameters for the displacement map and distortion post-process materials Convert the generic distortion parameter array into the specific structure of parameters used by the supported lens model Return the shader path for this model's distortion compute shader, promoting a modular shader architecture | BrownConradyUDLensDistortionModelHandler.h |