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

Implement surface opacityscale & correct display of transparent surfaces #4480

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jan 10, 2020

Resolves #4331 | demo
and
fixes #4478 | before vs after

This PR adds a new attribute titled opacityscale to surface trace.
Using that it is possible to make certain parts of the surface plot more transparent.
Also this PR removes extra transparency displayed by surface plots which would match surface.opacity and mesh3d.opacity.

@plotly/plotly_js

- new gl-surface3d that supports opacityscale
- move opacityscale logic from volume to surface in plotly.js
- add new image tests for surface with opacityscale and opacity
- update old surface baselines i.e. remove extra transparency issue 4478
package.json Outdated
@@ -88,7 +88,7 @@
"gl-select-box": "^1.0.3",
"gl-spikes2d": "^1.0.2",
"gl-streamtube3d": "^1.4.0",
"gl-surface3d": "^1.4.6",
"gl-surface3d": "git://github.com/gl-vis/gl-surface3d.git#f42163793d1ef167358363f2264c5318bac8ceaa",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etpinard
Copy link
Contributor

💃 - after bumping gl-surface3d

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

Successfully merging this pull request may close these issues.

Surface with half opacity displayed too transparent Per-element opacity on Surface plots (opacityscale)
3 participants