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

[FEATURE SUGGESTION] Consider setting alphaDepthMask to false by default for transparent objects #1419

Open
xeolabs opened this issue Mar 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@xeolabs
Copy link
Member

xeolabs commented Mar 18, 2024

Consider setting alphaDepthMask to false by default for transparent objects.

When alphaDepthMask is true, we see the transparent windows in the foreground preventing the windows in the background from rendering, because the close windows happen to render before the far windows in the display list, and Z-reject prevents the latter from being drawn.

    const viewer = new Viewer({
        canvasId: "myCanvas",
        transparent: false,
        alphaDepthMask: true
    });

Screenshot from 2024-03-18 04-41-11

With alphaDepthMask false, we see both the windows in forgeround and background, because this prevents Z-reject between them, and they both blend with each other into the color buffer.

const viewer = new Viewer({
        canvasId: "myCanvas",
        transparent: false,
        alphaDepthMask: false
    });

Screenshot from 2024-03-18 04-39-26

Also consider setting the Viewer's transparent configuration to false by default. This refers to indicating that the HTML Canvas element is transparent. Transparent object blending looks washed out when 'transparent' is true, and users may never realize that transparent object blending looks much better when 'transparent' configuration is `false'.

@xeolabs xeolabs changed the title Consider setting alphaDepthMask to false by default for transparent objects [FEATURE SUGGESTION] Consider setting alphaDepthMask to false by default for transparent objects Apr 20, 2024
@paireks paireks added the enhancement New feature or request label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants