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:20
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:53
struct xrt_fov fov
Fov values that the cardboard configuration has given us.
Definition: u_distortion.h:56
float lens_y_center_on_screen_meters
Where on the y axis the center of the lens is on the screen.
Definition: u_distortion.h:47
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:70
struct xrt_vec2 size
Used to transform to and from tanangle space.
Definition: u_distortion.h:77
float distortion_k[5]
Cardboard distortion k values.
Definition: u_distortion.h:72
struct xrt_vec2 offset
Used to transform to and from tanangle space.
Definition: u_distortion.h:79
Both given and derived values needed for cardboard distortion.
Definition: u_distortion.h:89
struct u_cardboard_distortion_arguments args
Arguments this distortion was created from.
Definition: u_distortion.h:91
struct u_cardboard_distortion_values values[XRT_MAX_VIEWS]
Distortion parameters, some derived from args.
Definition: u_distortion.h:94
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:90
A 2 element vector with single floats.
Definition: xrt_defines.h:250
Common defines and enums for XRT.