question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DepthTest disabled Billboard still blends with (alpha textured) background primitive

See original GitHub issue

We are using SVG images as image on a Billboard. To always render the Billboards on front we have set disableDepthTestDistance = Number.POSITIVE_INFINITY. It renders OK, except when a primitive with an alpha enabled material is positioned behind the Billboard. Then strange things happen where it seems white colors from the texture are made transparent, but other colors are not.

bug

The given example is with Order Independent Transparency disabled, but also occurs with it enabled. In the example I have also reduced the number of frustums to 1, in order to eliminate causes related to multiple frustums, so this seems to not be the cause either.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hpinkoscommented, Jan 17, 2018

Thanks for the workaround @SelimAbidin! I bet there’s still a bug somewhere on our end if that fixes the problem though.

0reactions
laurensdijkstracommented, Jan 18, 2018

@SelimAbidin that seems to be a nice workaround that works for us. Still some artifacts in some cases but it’s considerably better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DepthTest disabled Billboard still blends with (alpha ... - GitHub
It renders OK, except when a primitive with an alpha enabled material is positioned behind the Billboard. Then strange things happen where ...
Read more >
Blending - LearnOpenGL
This alpha value tells us exactly which parts of the texture have transparency and by ... the image shows the page's background color...
Read more >
Scene - Cesium Documentation - Agi
Create scene without anisotropic texture filtering var scene = new Cesium. ... at which to disable the depth test of billboards, labels and...
Read more >
Point as texture with depth test enabled - bugs, errors
I need alpha blending and depth test enalbed to place background ... is disabled) I get this error (texture is a png with...
Read more >
Implementing depth testing for semi-transparent objects
The common solution here is alpha testing. Render the leaves as an opaque (not blended) quad (with a normal depth test and write),...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found