title: ThreeJS orthographic camera: Adjusting size of scene to window
body: <p>In ThreeJS, I'm using the OrthographicCamera because I have several objects which should be shown from the front, without any perspective distortion. This works fine with one issue: the bunch of objects I created should always roughly fill the screen, but not be much smaller or larger. Using e.g.</p>
  
  <pre><code>var factor = 4.5;
  this.camera = new THREE.OrthographicCamera(-window.innerWidth / factor, window.innerWidth / factor, window.innerHeight / factor, -window.innerHeight / factor, 1, 1000);
  </code></pre>
  
  <p>... I can get it to run fine on 1920x1080 pixel resolution, but when I then resize the window to something smaller and reload the page, the objects will start to be too large, as they act as if they were fixed. (When using the CombinedCamera with perspective, the resizing is dynamic and works well.) How to fix this using the OrthographicCamera? Or is there a trick where I can turn off perspective in the CombinedCamera?</p>
  
  <p>Thanks!</p>