42struct ns_3d_optical_system;
51 float ellipse_minor_axis;
52 float ellipse_major_axis;
65 struct ns_optical_system *optical_system;
73enum ns_distortion_type
75 NS_DISTORTION_TYPE_INVALID,
76 NS_DISTORTION_TYPE_GEOMETRIC_3D,
77 NS_DISTORTION_TYPE_POLYNOMIAL_2D,
78 NS_DISTORTION_TYPE_MOSHI_MESHGRID,
90 enum ns_distortion_type distortion_type;
110 const cJSON *config_json;
127static inline struct ns_hmd *
130 return (
struct ns_hmd *)xdev;
143struct ns_optical_system *
144ns_3d_create_optical_system(
struct ns_3d_eye *eye);
147ns_3d_free_optical_system(
struct ns_optical_system **system);
u_logging_level
Logging level enum.
Definition: u_logging.h:43
void ns_3d_display_uv_to_render_uv(struct xrt_vec2 in, struct xrt_vec2 *out, struct ns_3d_eye *eye)
Convert the display UV to the render UV using the distortion mesh.
Definition: deformation_northstar.cpp:279
static struct ns_hmd * ns_hmd(struct xrt_device *xdev)
Get the North Star HMD information from a xrt_device.
Definition: ns_hmd.h:128
C interface to math library.
Wrapper around OS threading native functions.
Distortion information about an eye parsed from the configuration file.
Definition: ns_hmd.h:50
Information about the whole North Star headset.
Definition: ns_hmd.h:107
Definition: u_distortion_mesh.h:141
Definition: u_distortion_mesh.h:118
A single HMD or input device.
Definition: xrt_device.h:241
Describes a projection matrix fov.
Definition: xrt_defines.h:486
A tightly packed 4x4 matrix of floats.
Definition: xrt_defines.h:560
A pose composed of a position and orientation.
Definition: xrt_defines.h:465
A quaternion with single floats.
Definition: xrt_defines.h:216
A relation with two spaces, includes velocity and acceleration.
Definition: xrt_defines.h:657
A 2 element vector with single floats.
Definition: xrt_defines.h:250
A 3 element vector with single floats.
Definition: xrt_defines.h:271
Code to generate disortion meshes.
Tiny JSON wrapper around cJSON header.
Basic logging functionality.
Common defines and enums for XRT.
Header defining an xrt display or controller device.