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

ESRI i3s Scene Layer Transparency Adjustment #2608

Open
davidfungf opened this issue Aug 30, 2023 · 1 comment
Open

ESRI i3s Scene Layer Transparency Adjustment #2608

davidfungf opened this issue Aug 30, 2023 · 1 comment

Comments

@davidfungf
Copy link

I want to adjust the display transparency of an ESRI i3s scene layer https://tiles.arcgis.com/tiles/6j1KwZfY2fZrfNMR/arcgis/rest/services/Buildings_L1/SceneServer on deck.gl. Currently, we can only modify the color by _getMeshColor deck.gl function. May I know any function to adjust the layer transparency?

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 30, 2023

All deck.gl layers including the Tile3DLayer support an opacity property: https://deck.gl/docs/api-reference/core/layer#opacity

While that lets you turn on transparency, you may not get perfect results. Generally, 3D transparency is a hard problem. Generating visually correct results involves techniques like sorting all meshes in depth order every frame before rendering. deck.gl currently does not provide support for this.

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

No branches or pull requests

2 participants