I'm struggling to create an interactive video progress bar using three.js and haven't been able to find any examples of it being done before.
While I can successfully draw the progress of the video (using a plane with a canvas texture), I'm having difficulty figuring out how to select a new progress point with a raycast. I've attempted checking world coordinates (intersects[0].point) on clicks, but the bar ranges from -3x to 2x and I'm unsure how to translate that into a percentage (my math skills are lacking). Additionally, this method seems impractical as it relies on keeping the controls fixed.
Am I approaching this task incorrectly?