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

Unexpected Shape Transparency #82

Open
JBatUN opened this issue Aug 9, 2019 · 1 comment
Open

Unexpected Shape Transparency #82

JBatUN opened this issue Aug 9, 2019 · 1 comment

Comments

@JBatUN
Copy link

JBatUN commented Aug 9, 2019

Great work! Exploring the potential to use zdog for data visualization applications. But experiencing an unexpected effect of transparency with the shapes rendered as shown in the screenshot.

let box = new Zdog.Box({
        addTo: pointGrp,
        translate: { x: long, y: lat, z: size },
        rotate: { z: Math.PI / 8 },
        width: 15,
        height: 15,
        depth: size*3,
        stroke: false,
        color: '#C25',
        leftFace: color_left,
        rightFace: color_left,
        rearFace: '#ED0',
        topFace: color_left,
        bottomFace: color,
    });

zdog-map

Any ideas why this may be happening?

Thanks!

@desandro
Copy link
Member

It could be how you're combining the Zdog objects with the other imagery. Are you setting the global composite for canvas?

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

No branches or pull requests

2 participants