Skip to content
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

Corridor multifrustum issue #1104

Closed
pjcozzi opened this issue Aug 31, 2013 · 3 comments
Closed

Corridor multifrustum issue #1104

pjcozzi opened this issue Aug 31, 2013 · 3 comments

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 31, 2013

Sandcastle code (existing example):

    var positions = ellipsoid.cartographicArrayToCartesianArray([
        Cesium.Cartographic.fromDegrees(-120.0, 45.0),
        Cesium.Cartographic.fromDegrees(-125.0, 50.0),
        Cesium.Cartographic.fromDegrees(-125.0, 55.0)
    ]);
    var width = 100000;
    var corridorFill = new Cesium.GeometryInstance({
        geometry: new Cesium.CorridorGeometry({
            positions : positions,
            width : width,
            vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,
            height: 700000
        }),
        attributes : {
            color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromRandom({alpha : 1.0}))
        }
    });

Depending on the view, the corridor is not shown in the closer frustum:

image

Most likely the bounding sphere is wrong. Use command. debugShowBoundingVolume in the primitive to debug.

This doesn't need to holdup b20.

@bagnell
Copy link
Contributor

bagnell commented Sep 3, 2013

@pjcozzi I think @hpinkos fixed this in #1099. Could you check? I wasn't able to reproduce the issue.

@hpinkos
Copy link
Contributor

hpinkos commented Sep 3, 2013

yeah, the bounding sphere was incorrect before so if that was the cause of the issues it should be fixed now.

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Sep 4, 2013

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants