Skip to content

replace mesh generator with xdev->compute_distortion()

Christoph Haag requested to merge haagch/monado:compute_distortion into master
  • compositor generates mesh on startup in xrt_gfx_provider_create_native(). It can be easily moved elsewhere.
  • We had two different panotools usages: ohmd uses meters for viewport size and lens center for panotools shader, psvr uses pixels for viewport size and lens center for mesh distortion and after that u_device_setup_split_side_by_side() set them to meters. I assume psvr used a completely different warp_scale: using the lens center calculation from ohmd with a magic factor of 2.4 looks not too bad, but @pblack should look into what is the right thing to do here.
  • northstar is untested.

Merge request reports