-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Large missing section of primitive when switching from 3D to Columbus View #3748
Comments
@pjcozzi would you consider this a show stopper? |
I can confirm this was introduced in 1.17. It can also be reproduced by running the following example and switching to CV: var viewer = new Cesium.Viewer('cesiumContainer');
viewer.entities.add({
rectangle : {
coordinates : Cesium.Rectangle.fromDegrees(-170.0, -80.0, 170.0, 90.0),
material : Cesium.Color.YELLOW.withAlpha(0.5),
}
}); @bagnell and I are working on too many other pressing things to look at this in detail right now. |
Hi, so i really wanted to have a solution for this so i went hunting a little bit. The issue was introduced in commit 62c63bc |
The problem arises again:sandcastle |
Based on testing, this issue was reintroduced from 1.80 |
I found that the problem was solved by modifying file // line 79
if (0.0 <= uv.x && uv.x <= 1.0 && 0.0 <= uv.y && uv.y <= 1.0 || logDepthOrDepth != 0.0) {
// change to
if (0.0 <= uv.x && uv.x <= 1.0 && 0.0 <= uv.y && uv.y <= 1.0 || (logDepthOrDepth != 0.0 && czm_sceneMode != czm_sceneMode2D)) {
// line 92
if (uv.x <= 0.0 || 1.0 <= uv.x || uv.y <= 0.0 || 1.0 <= uv.y || logDepthOrDepth == 0.0) {
// chang to
if (uv.x <= 0.0 || 1.0 <= uv.x || uv.y <= 0.0 || 1.0 <= uv.y || (logDepthOrDepth == 0.0 && czm_sceneMode != czm_sceneMode2D)) { @pjcozzi Is this a correct solution? |
Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/5A1-br_4iu4
The first example is 3D -> CV
The second example is 2D -> 3D -> CV
As far as I can tell, this was introduced in 1.17
Run this example, and change the scene mode to 3D and then to CV. Then tilt the map to see the artifact.
The text was updated successfully, but these errors were encountered: