Skip to content
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

Polyline not hidden when below earth's surface #2218

Closed
GatorScott opened this issue Oct 23, 2014 · 2 comments
Closed

Polyline not hidden when below earth's surface #2218

GatorScott opened this issue Oct 23, 2014 · 2 comments

Comments

@GatorScott
Copy link

Duplicate by modifying the longitude of the "blue" line's first coordinate in the Polyline Sandcastle example to be 170.0. Reference documentation doesn't specify expected behavior.

@mramato
Copy link
Contributor

mramato commented Oct 24, 2014

Because we do not yet support vector data on terrain, we default scene.globe.depthTestAgainstTerrain to false; which causes all primitives to get drawn on top of the terrain even if they are under the surface of the earth. This is so items that are are on the earth (lines, billboards, polygons) look good and do not suffer from z-fighting. Settings scene.globe.depthTestAgainstTerrain to true will cause primitives to be depth tested and hidden when under terrain, but polygons and lines on the surface will have really bad visual artifacts (and billboards/labels can be partially buried in terrain).

When we have terrain draping support for all primitives; we'll be able toggle the flag without loss of visual quality.

@pjcozzi or @kring can hopefully chime in here if I got anything wrong here.

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 24, 2014

@mramato is right. Keep an eye on #2172.

@pjcozzi pjcozzi closed this as completed Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants