-
Notifications
You must be signed in to change notification settings - Fork 38
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
Issue with overlap and opacity #99
Comments
After some digging, I think this is an "open problem", I put some references here.
On a dark background AdditiveBlending can give this result // for dark backgrounds
depthTest: false,
blending: THREE.CustomBlending,
//blendEquation: THREE.AddEquation, // default
//blendSrc: THREE.SrcAlphaFactor, // default
blendDst: THREE.OneFactor, For a (default) white background the blending parameters needs to be // for light backgrounds
depthTest: false,
blending: THREE.CustomBlending,
//blendEquation: THREE.AddEquation, // default
blendSrc: THREE.OneMinusSrcAlphaFactor,
blendDst: THREE.SrcAlphaFactor, It might become a feature (an option to use this rendering but I think the issue can be close). |
twitwi@ea01bc8 |
Viewing https://pair-code.github.io/scatter-gl/ with 3D disabled and label-based color, it seems that some (non-opaque) points do not let the points behind them be shown.
Here is a zoom of an region of the demo, where, e.g., the yellow-ish point in the middle blends with one of the red circle but not with the other.
Same thing with lower opacity
It looks like the transparency gets kind of premultiplied with the background color.
This behavior makes one of my use case very unusable, where some points have very low opacity points that hide more opaque ones.
Any idea, suggestion of where to start to hack for a fix, or a workaround is welcome.
The text was updated successfully, but these errors were encountered: