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

WallGeometry has incorrect texture coordinates #2872

Closed
hpinkos opened this issue Jul 7, 2015 · 0 comments
Closed

WallGeometry has incorrect texture coordinates #2872

hpinkos opened this issue Jul 7, 2015 · 0 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Jul 7, 2015

Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/lUUFr2-LvGc

var viewer = new Cesium.Viewer('cesiumContainer');

var material = new Cesium.ImageMaterialProperty({
    image: '../images/Cesium_Logo_overlay.png',
    repeat: new Cesium.Cartesian2(1.0, 1.0)
});

var wall_1 = viewer.entities.add({
    id: 'wall_1',
    name: 'Two-position wall',
    wall: {
        positions: Cesium.Cartesian3.fromDegreesArray([
            -110.0, 38.0,
            -109.0, 38.0]),
        maximumHeights: [ 10000.0, 10000.0 ],
        minimumHeights: [     0.0,     0.0 ],
        material: material
    }
});

var wall_2 = viewer.entities.add({
    id: 'wall_2',
    name: 'Three-position wall',
    wall: {
        positions: Cesium.Cartesian3.fromDegreesArray([
            -110.0, 39.0,
            -109.5, 39.0,
            -109.0, 39.0]),
        maximumHeights: [ 10000.0, 10000.0, 10000.0 ],
        minimumHeights: [     0.0,     0.0,     0.0 ],
        material: material
    }
});

viewer.zoomTo(wall_2);
@hpinkos hpinkos closed this as completed in 3b8b2ae Jul 7, 2015
bagnell added a commit that referenced this issue Jul 7, 2015
Fix #2872: Incorrect WallGeometry texture coordinates
hpinkos pushed a commit that referenced this issue Jul 13, 2015
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

1 participant