videojs / videojs-vr

A plugin to add 360 and VR video support to video.js.
https://videojs-vr.netlify.com/
MIT License
543 stars 145 forks source link

Option to control detail level of used Geometry #233

Open Tharit opened 3 years ago

Tharit commented 3 years ago

Description

The current version has the geometry settings hardcoded; e.g. for spherical 360 it's:

this.movieGeometry = new THREE.SphereBufferGeometry(256, 32, 32);

We have a couple of videos that have important content at the bottom of the sphere; e.g. a screen. With the default settings of 32, 32 we get significant distortion of straight lines: 32

Bumping up the detail level of the sphere to 64, 64 makes everything appear much smoother: 64

Would it be possible to include an option for controlling these values?