-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Points not appearing at certain angles #2885
Comments
Correct. The points have a thin "transparent" outline due to anti-aliasing built into the fragment shader. In the screenshot below I've made the points bigger and turned off When the points get close together, the transparent-to-background outlines stack up so densely that you can't see the core point color anymore. |
Can you guys think of any temporary workaround for this? I am showing tracks of a ship's position and there are a lots of areas where the points can make closely packed lines similar to the data above. If there is a patch I can make to get around this even at cost of some performance it will good enough for me. Thanks!
|
You can trade this problem for other problem(s), and see if the other ones are more subtle or more acceptable than this. Try turning off "depth masking" and see if it helps, by adding the following code to the above demo. This may introduce a different problem where points fail to obscure background objects of certain types.
|
Thanks! That seems to work fine for me. I don't see any performance hit either. I am only showing points with a label on mouse over. I see that the label is showing on top of the points which is what I want anyways. I think this is a good work around for us for now. Thanks!! |
Looks like scene.context.createRenderState is no longer available in 1.13 version. Is there any other work around I can use for this issue? Thanks, |
The code has changed a bit for this. Try this:
|
That worked. Thanks! |
Problem is way more visible in this code sample: var viewer = new Cesium.Viewer('cesiumContainer');
for (var i=0; i<35000; i++) {
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-122.431297 +i/10, 37.773972+i/10),
point : {
pixelSize : 10,
color : Cesium.Color.fromRandom({
alpha : 1.0,
minimumRed : 0.5,
minimumGreen : 0.5,
minimumBlue : 0.5
})
}
});
} |
Strange idea: If the point's fragment shader can write a depth value, maybe we write "sane" (normal) depth values for high alpha fragments, but tweak the written depth to be further away for low alpha values. The point written would become sort of a view of the pointy end of a cone, and the points would stick out in front of the fringes. |
Looks like this user has a similar problem: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/5qv7Q_qudt8 |
Closing as duplicate with #2130 (comment) |
As reported on the forum, the below code creates a view where the line of points are not visible until move the view to a different angle (middle-mouse move does it). Even if you add an altitude to
fromDegrees
to raise the points off the ground, the problem still occurs. I'm not sure what is going on but it happens in all browsers.CC @emackey
The text was updated successfully, but these errors were encountered: