unreal.LensDistortionLibrary
¶
- class unreal.LensDistortionLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Lens Distortion Blueprint Library
C++ Source:
Plugin: LensDistortion
Module: LensDistortion
File: LensDistortionBlueprintLibrary.h
- classmethod draw_uv_displacement_to_render_target(world_context_object, camera_model, distorted_horizontal_fov, distorted_aspect_ratio, undistort_overscan_factor, output_render_target, output_multiply=0.500000, output_add=0.500000) None ¶
Draws UV displacement map within the output render target. - Red & green channels hold the distortion displacement; - Blue & alpha channels hold the undistortion displacement. deprecated: The LensDistortion plugin is deprecated. Please update your project to use the features of the CameraCalibration plugin.
- Parameters:
world_context_object (Object) –
camera_model (LensDistortionCameraModel) –
distorted_horizontal_fov (float) – The desired horizontal FOV in the distorted render.
distorted_aspect_ratio (float) – The desired aspect ratio of the distorted render.
undistort_overscan_factor (float) – The factor of the overscan for the undistorted render.
output_render_target (TextureRenderTarget2D) – The render target to draw to. Don’t necessarily need to have same resolution or aspect ratio as distorted render.
output_multiply (float) – The multiplication factor applied on the displacement.
output_add (float) – Value added to the multiplied displacement before storing into the output render target.
- classmethod equal_equal_compare_lens_distortion_models(a, b) bool ¶
Returns true if A is equal to B (A == B) deprecated: The LensDistortion plugin is deprecated. Please update your project to use the features of the CameraCalibration plugin.
- Parameters:
- Return type:
- classmethod get_undistort_overscan_factor(camera_model, distorted_horizontal_fov, distorted_aspect_ratio) float ¶
Returns the overscan factor required for the undistort rendering to avoid unrendered distorted pixels. deprecated: The LensDistortion plugin is deprecated. Please update your project to use the features of the CameraCalibration plugin.
- Parameters:
camera_model (LensDistortionCameraModel) –
distorted_horizontal_fov (float) –
distorted_aspect_ratio (float) –
- Returns:
undistort_overscan_factor (float):
- Return type: