i'm experimenting with changing the perspective of the camera and wanted to switch to an orthographic projection. When i create the scene i get the camera and try to change the default frustum. I found this example code:
var maxRadii = ellipsoid.maximumRadius;
var frustum = new Cesium.OrthographicFrustum();
frustum.right = maxRadii * Cesium.Math.PI;
frustum.left = -c.frustum.right;
frustum.top = c.frustum.right * (canvas.clientHeight / canvas.clientWidth);
frustum.bottom = -c.frustum.top;
frustum.near = 0.01 * maxRadii;
frustum.far = 50.0 * maxRadii;
I'm not sure what i need to do to change the frustum, how are the bounds calculated? What is "c" in the example code? Is there something else i need to consider?
I tried some random values for now and something is displayed without errors but it is just a not recognizable line of sorts, i think i need to understand how the bounds are calculated, could someone lend me a hand?
Thanks for the help in advance,