35 float distortion_k[5];
39 uint32_t w_pixels, h_pixels;
40 float w_meters, h_meters;
void u_distortion_cardboard_calculate(const struct u_cardboard_distortion_arguments *args, struct xrt_hmd_parts *parts, struct u_cardboard_distortion *out_dist)
Take cardboard arguments to turn them into a u_cardboard_distortion and fill out a xrt_hmd_parts stru...
Definition: u_distortion.c:21
Helper struct to make code easier to read.
Definition: render_distortion.c:183
These are the values that you need to supply to the distortion code to setup a u_cardboard_distortion...
Definition: u_distortion.h:34
float screen_to_lens_distance_meters
The distance to the lens from the screen, used to calculate calculate tanangle of various distances o...
Definition: u_distortion.h:50
float tray_to_lens_distance_meters
The distance from the tray (the bottom of the screen) to the lens center on the Y axis.
Definition: u_distortion.h:55
struct xrt_fov fov
Fov values that the cardboard configuration has given us.
Definition: u_distortion.h:58
float inter_lens_distance_meters
Distances between the lenses in meters.
Definition: u_distortion.h:44
Values to create a distortion mesh from cardboard values.
Definition: u_distortion.h:72
struct xrt_vec2 size
Used to transform to and from tanangle space.
Definition: u_distortion.h:79
float distortion_k[5]
Cardboard distortion k values.
Definition: u_distortion.h:74
struct xrt_vec2 offset
Used to transform to and from tanangle space.
Definition: u_distortion.h:81
Both given and derived values needed for cardboard distortion.
Definition: u_distortion.h:91
struct u_cardboard_distortion_arguments args
Arguments this distortion was created from.
Definition: u_distortion.h:93
struct u_cardboard_distortion_values values[XRT_MAX_VIEWS]
Distortion parameters, some derived from args.
Definition: u_distortion.h:96
Describes a projection matrix fov.
Definition: xrt_defines.h:486
All of the device components that deals with interfacing to a users head.
Definition: xrt_device.h:92
A 2 element vector with single floats.
Definition: xrt_defines.h:250
Common defines and enums for XRT.