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

2D points visibility problem #87

Closed
tomasjohn opened this issue Nov 8, 2017 · 1 comment
Closed

2D points visibility problem #87

tomasjohn opened this issue Nov 8, 2017 · 1 comment

Comments

@tomasjohn
Copy link

Hi! After rewriting to the vts.browser I'm struggeling with 2D points, they are not beeing hidden.

Can I check point's visibility? It was able to set a parameter to switch off the check of a visibility before, but I am unable to find it now.

Attaching a video preview of the problem.
2D Points Melown VTS - Google Chrome 31.10.2017 17_08_23.zip

@davidmtech
Copy link
Member

I do not know which method was used for rendering points. In case that it was:

renderer.drawImage(params);

You have to set set following parameters to enable visibility test:

        depthTest : true,
        depthOffset : [-0.01,0,0]

more details depthOffset paramater can be found in documentation.

I have modified demo example to demonstrate these chages.

In case you are rendering vector features which are static (no animations needed) then you should consider geodata for rendering these features.

You can find geodata examples here and documentation can be found here.

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

2 participants