-
Notifications
You must be signed in to change notification settings - Fork 319
Proof of concept for multiple views #1652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I've updated this branch to support orthographic Editor viewports, too, using the cesium-native change in CesiumGS/cesium-native#1135. Unreal orthographic views seem really inflexible, though. It doesn't support arbitrary orthographic views, only top, bottom, left, right, front, and back. The "top" view is useful, but all the other directions are pretty unnatural for viewing geospatial scenes, especially because there doesn't seem to be control over the near and far distances. |
If you try the orthographic views, note that they default to "Wireframe" and that the "Lit" mode doesn't work, seemingly due to a lack of HDR support in the orthographic view. Setting the viewport to "Unlit" is a good choice. |
This is some extremely hacky code that demonstrates how the new multiple view support in CesiumGS/cesium-native#1125 can be used in Unreal. Don't even think about merging it, but it might be fun to play with.
In this branch, you can create multiple editor viewports, and each will select and render its own set of tiles:

Notice that some of the viewports are near the city center, so they have high detail, and yet the zoomed out view in the lower-left doesn't show excessive detail. Each view is selecting its own level-of-detail.
To set this up, press the button in the top-right corner of the viewport to show four viewports:

Then switch one or more viewports to perspective:

And turn on real-time mode in that viewport:

If you click on the CesiumCameraManager Actor, you'll see a View Groups property. It's automatically populated from all the Editor viewports, and you can set the "Weight" of each, which controls how much tile loading that view gets to do compared to the others.
Play-in-Editor mode won't work at all in this branch, so just stick to Editor viewports.