abhishekvp / cesium-lg

Liquid Galaxy GSoC 2016 Project: Enabling Cesium for Liquid Galaxy
5 stars 3 forks source link

slave: fix up yaw offset for vertical fov. #20

Closed alfski closed 8 years ago

alfski commented 8 years ago

add this to slaves to account for vertical fov. this is my shortcut for 16:9 galaxy screens, but really the browser document width and height should be queried and used for this.

  var displayAspectRatio = 16/9; // height/width - query dom for this
  viewer.camera.frustum.fov = toRadians(CONFIG.slaveHorizFOV * displayAspectRatio);

this will also need to be reset on browser window size change.