-
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
SceneTransforms.wgs84ToWindowCoordinates incorrect when tracking entity #3247
Comments
Has there been any progress on this issue? I would love to incorporate into my project. |
Hello All,Pls have a look at this issue.. |
+1 |
+1 |
1 similar comment
+1 |
+1 |
I'm also facing the similar issue in my project.please update the progress on this issue. |
+1 |
+1 |
+1 |
@bagnell can you give @jpremkumar advice for fixing this issue? |
Hi @bagnell, Based on the discussion I'd with @hpinkos, it looks like the problem could be related to "camera transformation". Can you advice on how to proceed further? |
Any progress on this issue or anyone advice for fixing this issue please. |
While I can't say exactly what the problem is, it's going to be related to the I would recommend you see if this works in 2D when tracking and object, if it does, then most likely you need an If it doesn't work in 2D either, then you might need to always apply the transform. There's a chance the problem is something else entirely, but that would be the best place to start. Sorry I can't be more specific (or else I would have fixed it myself already), you'll have to dig into the code and experiment. Thanks. |
Thank you @mramato for the guidance. Let me experiment... |
I've spend good time with #3247. It looks like, tracking is not working in 2D mode as well. I've tried with different transformation on worldToClip (line no 68) and clipToGLWindowCoordinates (271) functions, but no luck :( |
@jpremkumar forgive me if you already know this: HTML measures vertical coordinates starting at the top, increasing as you go down, like text. WebGL, like many graphics systems, places the origin in the lower-left, with vertical coordinates increasing as you go up the screen. From your screen cap, it looks like you just need to flip your Y coordinate. (Also beware that the canvas may be a different vertical resolution from CSS pixels in the DOM). |
@jpremkumar So it turns out we have a bug where the Y coordinate got flipped, written up as #3920. It's very likely the fix for #3920 will involve flipping it back the way it was. |
Thank you @emackey for the update. |
Hi @emackey, I've tested the bug #3247 with the latest Cesium version r1.22. Still facing the same positioning issue. The #3920 is not the fix for #3247. When I flip the Y coordinates in the Source:
Can you assist on this please. |
If it helps, I've updated the original sandcastle code from the forum. It was no longer working. |
this way it alleviate the issue raised by previous method here : CesiumGS/cesium#3247 We will have to make sure this works also with mobile
this way it alleviate the issue raised by previous method here : CesiumGS/cesium#3247 We will have to make sure this works also with mobile
Reported in the forum
https://groups.google.com/forum/#!topic/cesium-dev/XYAGd93UkmA
He included a really good example in the post.
SceneTransforms.wgs84ToWindowCoordinates
returns the wrong window coordinates when the tracked entity has a different position from the one being converted to a window coordinate.The text was updated successfully, but these errors were encountered: