-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Double (mirrored) ephemeris lines in perspective/orthographic projections #811
Comments
Same problem for planetary trails! |
This is an attempt to fix the bug #811. Line clipping cannot be done using only two dimension coordinates, because of cases where one point is in front of us, and the other one is behind us. In fact we should actually be using 4 dimensions to properly handle all the clipping cases, but this is not supported by the projection class. Not tested much.
I just pushed a fix attempt in a branch: fix-ephemeris-lines-perspective. |
This is an attempt to fix the bug #811. Line clipping cannot be done using only two dimension coordinates, because of cases where one point is in front of us, and the other one is behind us. In fact we should actually be using 4 dimensions to properly handle all the clipping cases, but this is not supported by the projection class. Not tested much.
I've tested it and apparently it solve the bug, because I don't see rendering issue now. |
Oops... drawing in orthographic projection still have problem |
I push a fix for the orthographic projection. This is not a perfect solution: it might still shows some errors at the border, but I think it should be enough for the moment. |
This should fix bug #811. The problem is that with the ortho projection the points that are 'behind' the sphere should be hidden using culling, but at the moment we don't really support that. Here I add a clipping test at the projection, even though this is not optimal (two clipped points could still be linked by a partially visible line). Hopefully this is enough to fix the bug. I only activate this with the ortho projection.
This is an attempt to fix the bug #811. Line clipping cannot be done using only two dimension coordinates, because of cases where one point is in front of us, and the other one is behind us. In fact we should actually be using 4 dimensions to properly handle all the clipping cases, but this is not supported by the projection class. Not tested much.
This should fix bug #811. The problem is that with the ortho projection the points that are 'behind' the sphere should be hidden using culling, but at the moment we don't really support that. Here I add a clipping test at the projection, even though this is not optimal (two clipped points could still be linked by a partially visible line). Hopefully this is enough to fix the bug. I only activate this with the ortho projection.
Expected Behaviour
Ephemeris lines display as normal, even when using perspective and orthographic projections.
Actual Behaviour
Lines show up in doubles, or "mirrored". That is, a mirrored version of the line is displayed in the opposite direction of the real line. It's not attached to the sky and floats around when panning. See this screenshot:
The mirrored line (note that it has neither markers nor lables) is located between Jupiter and Venus. This screenshot uses perspective projection, and the same result is seen when using orthographic projection. The rest of them are fine.
Steps to reproduce
System
The text was updated successfully, but these errors were encountered: