Commit c60e568a authored by Moses Turner's avatar Moses Turner
Browse files

saving unimportant VIPD undistortion work

parent 1b2b0813
Pipeline #253771 failed with stages
in 1 minute and 25 seconds
......@@ -328,25 +328,16 @@ ns_v2_mesh_calc(struct xrt_device *xdev,
struct ns_hmd *ns = ns_hmd(xdev);
//struct ns_mesh *mesh = ns_mesh(gen);
float x_ray = ns_v2_polyval2d(
u, v, ns->eye_configs_v2[view].x_coefficients);
float y_ray = ns_v2_polyval2d(
u, v, ns->eye_configs_v2[view].y_coefficients);
float left_ray_bound = tan(ns->eye_configs_v2[view].fov.angle_left );
float right_ray_bound = tan(ns->eye_configs_v2[view].fov.angle_right);
float up_ray_bound = tan(ns->eye_configs_v2[view].fov.angle_up );
float down_ray_bound = tan(ns->eye_configs_v2[view].fov.angle_down );
int u_index = (int)(u*64);
int v_index = (int)(v*64);
//printf("%d %d\n", u_index, v_index);
x_ray = -grid_for_use.grid[view][v_index][u_index][1];
y_ray = grid_for_use.grid[view][v_index][u_index][0];
float x_ray = grid_for_use.grid[view][v_index][u_index][1];
float y_ray = grid_for_use.grid[view][v_index][u_index][0];
//printf("ray %f %f", x_ray,y_ray);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment