Skip to content

gl-surface3d > Implement surface opacityscale & correct display of transparent surfaces - #16

Merged
archmoj merged 1 commit into
masterfrom
opacityscale
Mar 10, 2020
Merged

archmoj merged 1 commit into
masterfrom
opacityscale

Conversation

@archmoj

@archmoj archmoj commented Jan 10, 2020

Copy link
Copy Markdown
Contributor

Please refer to plotly/plotly.js#4480 for more info.

@etpinard
@alexcjohnson

Comment thread surface.js
this.pickId = id
}

function getOpacityFromScale(ratio, opacityscale) { // copied form gl-mesh3d

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It would be nice to start a helper module in gl-vis to reuse logic like this in both gl-mesh3d and gl-surface3d.

Comment thread surface.js
var N_COLORS = 256

function genColormap (name) {
function genColormap (name, opacityscale) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It would be nice to start a helper module in gl-vis to reuse logic like this in both gl-mesh3d and gl-surface3d.

@etpinard

Copy link
Copy Markdown
Member

@archmoj where exactly is the "correct display of transparent surfaces" part of this PR? Splitting this up into two commits would have been nice.

@archmoj

archmoj commented Jan 27, 2020

Copy link
Copy Markdown
Contributor Author

@archmoj where exactly is the "correct display of transparent surfaces" part of this PR? Splitting this up into two commits would have been nice.

I did try to split that into two commits. But strangely it didn't work.

@archmoj
archmoj merged commit a46fff4 into master Mar 10, 2020
@archmoj
archmoj deleted the opacityscale branch March 10, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants