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.

Labels/billboards on terrain and depthTestAgainstTerrain

See original GitHub issue

When labels/billboards are clamped to terrain, they require depthTestAgainstTerrain to be false so they do not sink into terrain. However, this allows 3D models and extruded geometries, for example, to come through terrain.

@bagnell and I have brainstormed a few ideas like using an extra depth buffer or stenciling. We’re hoping for something simpler though.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:32 (23 by maintainers)

github_iconTop GitHub Comments

3reactions
emackeycommented, Oct 24, 2017

I like the “whole entity” idea. I’ve encountered more than one project where they want an all-or-nothing test for visibility of the entity (point, billboard, and label, together). If the entity’s single location is exposed to the camera, then the point+billboard+label graphics should be visible in their entirety, unfettered by depth-buffering. But if the entity is obscured, even just hidden behind a small hill, then the point+billboard+label graphics are turned off completely. At no time is a partial label or partial marker symbol (billboard) ever shown to the user, nor a marker without a label or vice-versa. Essentially, the 2D elements don’t need to participate in the 3D scene at all, beyond yes-or-no knowledge of whether the object they represent is visible within the scene, and its screen-space location.

Points, billboards, and labels in such a system could even be moved to a separate render pass where FXAA was not applied to them, which would be an added win.

1reaction
gooincommented, Aug 9, 2018

@thw0rted Awesome!Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Labels/billboards on terrain and depthTestAgainstTerrain #2694
When labels/billboards are clamped to terrain, they require depthTestAgainstTerrain to be false so they do not sink into terrain.
Read more >
Labels/billboards on terrain and depthTestAgainstTerrain
When labels/billboards are clamped to terrain, they require depthTestAgainstTerrain to be false so they do not sink into terrain.
Read more >
"Weak" Depth Test Against Terrain - Google Groups
I am running into some issues using depthTestAgainstTerrain. ... That is to say: I only want to depth test against terrain that is...
Read more >
Cesium - Placing Billboards/Map Pins On Polygons With ... - ADocLib
When labels/billboards are clamped to terrain they require depthTestAgainstTerrain to be false so they do not sink into terrain. No hot answers found....
Read more >
Labels getting inside of the terrain when ...
Hello there. I was having some trouble trying to prevent my labels from getting inside the terrain when I found this topic.
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