Objects out of fustrum when using arraycamera

Normally, when I use a PerspectiveCamera, the objects are rendered normally.

However, when I wrap the PerspectiveCamera in an ArrayCamera, objects outside of 1 units from 0 disappear. Why is this?

When using ArrayCamera, it’s required to configure the viewport property for all sub cameras. This is also described in the documentation. Check out the following example to see how this is done.

1 Like

I’m sorry I didn’t include this detail, but I used a viewport of Vector4(0, 0, window.innerWidth, window.innerHeight). Is this the problem?

Can you please show with a live example what you are doing? A video is hard to debug.

This is my code for adding in the subcamera. Engine.Render is just an object that contains the arrayCamera and scene used when rendering.

var camera = new THREE.PerspectiveCamera();
camera.viewport = new THREE.Vector4(0, 0, window.innerWidth, window.innerHeight);
camera.position.set(0, 10, 40)

With Camera: https://repl.it/@cloud9c/threejs2#index.html
With ArrayCamera: https://repl.it/@cloud9c/threejs#index.html

I’ve answered your question at stackoverflow: