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

SimplePolylineGeometry fails crossing IDL if colors specified #1894

Open
hpinkos opened this issue Jul 7, 2014 · 1 comment
Open

SimplePolylineGeometry fails crossing IDL if colors specified #1894

hpinkos opened this issue Jul 7, 2014 · 1 comment

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Jul 7, 2014

DeveloperError: All attribute lists must have the same number of attributes.
Error in GeometryPipeline.wrapLongitude. It doesn't add to the color attribute of the SimplePolylineGeometry when it adds to the position attribute.

Sandcastle example:

var positions = [Cesium.Cartesian3.fromDegrees(-74.0, 40.0), Cesium.Cartesian3.fromDegrees(179, 30)];

viewer.scene.primitives.add(new Cesium.Primitive({
    geometryInstances : new Cesium.GeometryInstance({
        geometry : new Cesium.SimplePolylineGeometry({
            colors: [Cesium.Color.RED], // this line causes the problem
            positions : positions
        })
    }),
    appearance : new Cesium.PerInstanceColorAppearance({
        flat : true,
        renderState : {
            depthTest : {
                enabled : true
            },
            lineWidth : Math.min(2.0, viewer.scene.maximumAliasedLineWidth)
        }
    })
}));
@hpinkos hpinkos added the bug label Jul 7, 2014
@hpinkos
Copy link
Contributor Author

hpinkos commented Jul 28, 2014

related error: PolylineGeometry fails also if a model matrix is used to move the line across the IDL. prevPosition, nextPositoin, and expandAndWidth attributes are not divided. The function needs to use some sort of loop on the attributes instead of only looking for normals, binormals, tangents and texture coordinates.

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