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.

Text not rendering when logarithmicDepthBuffer is enabled

See original GitHub issue

Creating a scene with just a <a-text> entity in but then using logarithmicDepthBuffer set to true in the renderer settings works fine so like:

<a-scene renderer="logarithmicDepthBuffer: true;"> <a-text value="Some text please" color="black" position="0 0 -5"></a-text> </a-scene>

However adding a plane behind the text whilst logarithmicDepthBuffer set to true causes text to not render over the plane.

<a-scene renderer="logarithmicDepthBuffer: true;"> <a-plane height="1" width="3" color="red" position="0 0 -5.2"></a-plane> <a-text value="Some text please" color="black" position="0 0 -5"></a-text> </a-scene>

Switching to logarithmicDepthBuffer: false; then works as expected. I have a scene which really needs this set to true for lots of other entities to render correctly and to reduce z-fighting but also need some generated text in there so I’m kinda stuck. I’m guessing the text shader isn’t aware of how to handle this correctly?

  • A-Frame Version: 0.9.2
  • Platform / Device: Chrome/Macbook

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dzoechcommented, Sep 29, 2020

Thank you @arpu, works like a charm

0reactions
arpucommented, Sep 29, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

AFrame Text component does not render with ... - Stack Overflow
When I set logarithmicDepthBuffer: true; in the AFrame renderer component, all instances of the text component no longer render at all.
Read more >
WebGLRenderer#logarithmicDepthBuffer – three.js docs
If the shader does not compile and link - it will not work and associated material will not render. Default is true ....
Read more >
AR-js/help-and-support - Gitter
I have a feeling that logarithmicdepthbuffer is the solution to my problem, but it completely breaks the rendering of any text and videos....
Read more >
text editor not rendering anything - Visual Studio Feedback
Just opened a VS2019 project, told it not to upgrade the toolset, and now no text files will open. Visual Studiowindows 10.0Setupsolutionvisual studiovisual ......
Read more >
Scene - Cesium Documentation
Whether or not to use a logarithmic depth buffer. Enabling this option will allow for less frustums in the multi-frustum, increasing performance.
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