Skip to content

if three renderer open "logarithmicDepthBuffer" Arc layers have no depth, Hope to support depth #108

Description

@Superhero-king

Describe the bug
If the Three.js renderer opens the 'logarithDepthBuffer': true option, the Arcs Layer will be obscured by any opaque material or will not be obscured by any material containing transparent properties

To Reproduce
Steps to reproduce the behavior:

  1. Create renderer and Three.js basic constructor:
const renderer = new WebGLRenderer({ antialias: true, logarithmicDepthBuffer: false, alpha: true });
const camera = new PerspectiveCamera(50, 1, 0.001, 1000);
const scene = new Scene();
  1. Create ThreeGlobe constructor:
const globe = new ThreeGlobe({ waitForGlobeReady: true, animateIn: true });
  1. Add globe to the scene:
scene.add(globe);
  1. Add light to illuminate the material:
const ambientLight = new AmbientLight(new Color(0xFFFFFF), 1);
scene.add(ambientLight);
  1. Add Globe Layer and Arcs Layer data:
globe.showGlobe(true);
globe.arcsData(flights)
         .arcColor(() => "#00FF00");

Expected behavior
Arcs Layer is not obscured by other materials, calculate its depth

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 136.0.7103.114

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions