Necker's cube camera view

Hi,
I am wondering if there is a way to achieve this effect:

I already created a cube with cylinder edges and I use OrthographicCamera, but I can’t get the parallel view like in the image.

Any ideas?

Skew your orthographic camera to make something called “cavalier perspective”.

I am new to three js. Can you give me an example of skewing a camera?

Apart from changing the camera projection (as @dubois suggests), you may also shear the cube matrix:

cube.matrixAutoUpdate = false;
cube.matrix.makeShear(0,0,0,0,0.5,0.3);

https://codepen.io/boytchev/full/rNXXJad

image

4 Likes

Thank you for the response!