Giter VIP home page Giter VIP logo

Comments (2)

davidmtech avatar davidmtech commented on September 22, 2024

Setting z-buffer value is tricky. I do recommend to start with small values. i.e.

    depthOffset : [-0.01,0,0]

more details depthOffset paramater can be found in documentation.

But unfortunately there is no optimal setting which works in all cases (some setting works for small zooms, another setting works big zooms). Another downside of current solution is that it applies correction per object not per pixel. Per pixel solution will have some performance penalty and will need support of WebGL extension (EXT_frag_depth) or WebGL 2. Unfortunately at this moment I am not able to tell when we will have free resources for development of this feature.

Adding some extra height can help in some cases. There are two possible ways. In case you know height, you add some extra height and use 'fix' height mode. In case you do not know height, you use you extra height value as height (instead of zero) and use 'float' height mode. In 'float' height mode is height value interpreted as height above terrain.

from vts-browser-js.

jrjdavidson avatar jrjdavidson commented on September 22, 2024

Starting with small values solved it! thanks

from vts-browser-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.