Switch to orthographic camera breaks rendering

Hi all,

I currently work on integrating an orthographic camera mode into our application.

As I encountered some issues I wanted to create a Sandcastle that can explain my problem. But when I started to play around with the Sandcastle I quickly ran into another problem and I think before I can discuss my initial problem this one needs to be addressed as it is quite similar but not the same.

I just added the projectionPicker widget to the 3D Tiles Point Cloud sandcastle. When switching to orthographic mode something in the rendering gets broken (see the screenshot). I can reproduce this with Chrome, Firefox and Edge. Sometimes it seems to just be a black screen, sometimes a distorted portion of the globe is visible. Panning/Rotating doesn’t help but as soon as I zoom in or out the rendering is correct again.

My initial problem was that in our application a point cloud would sometimes disappear after switching to orthographic but it’s hard to reproduce this if I can’t even use the built-in widget to switch to an orthographic frustum :stuck_out_tongue:

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

Sandcastle example (modified 3D Tiles Point Cloud example to include projection picker):

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I think the projection picker should work out of the box with every sandcastle example, shouldn’t it?

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.65 (Sandcastle), Windows 10, Chrome 79/Frefox 65/Edge 44

This is a known issue, I’ve bumped the bug report on GitHub there: https://github.com/AnalyticalGraphicsInc/cesium/issues/8346#issuecomment-579793460

Thanks!
I somehow missed this issue :slight_smile:

This issue has now been fixed as of this PR: https://github.com/CesiumGS/cesium/pull/8850

It’ll be available in CesiumJS 1.71.