Loading js/x3dom_init.js +11 −1 Original line number Diff line number Diff line Loading @@ -117,8 +117,18 @@ X3DOMObject.prototype.resize = function(){ }); //var fov = w/h*self._FOV; // fixed ratio // default vertical FoV is 30 degs, we would like to fit in the window // the model w/h ratio is 2592/1904 var fov = 1.8*self._FOV; var K_model = 2592/1904; var K_window = w/h; // window is really wide - fit the height if (K_window > K_model){ fov = 1.8*self._FOV; }else{ fov = (4.2-1.8*K_window)*self._FOV; } //fov = Math.PI/2; //console.log(fov); Loading Loading
js/x3dom_init.js +11 −1 Original line number Diff line number Diff line Loading @@ -117,8 +117,18 @@ X3DOMObject.prototype.resize = function(){ }); //var fov = w/h*self._FOV; // fixed ratio // default vertical FoV is 30 degs, we would like to fit in the window // the model w/h ratio is 2592/1904 var fov = 1.8*self._FOV; var K_model = 2592/1904; var K_window = w/h; // window is really wide - fit the height if (K_window > K_model){ fov = 1.8*self._FOV; }else{ fov = (4.2-1.8*K_window)*self._FOV; } //fov = Math.PI/2; //console.log(fov); Loading