Orientation issue while tracking entity

Hi,

I am facing an orientation issue while tracking the vehicle. The globe is tilting back and forth. Unable to track vehicle properly. Here, you can view the gif,

track

Please find below the sandcastle link,

1 Like

@11119

Thank you for sharing this with the community! I just tried out your demo and was able to reproduce the error on my machine. Before we begin debugging, what Camera behavior are you looking for? For instance, should the Camera follow the car from above? I am looking forward to learning more about your project!

-Sam

Hi @sam.rothstein

Thank you for looking into the issue.

what Camera behavior are you looking for? For instance, should the Camera follow the car from above?

Yes, I want the camera to follow the car from above. The camera should consistently follow the car without any error as in the Sandcastle example. I know the path is very bad, because of the GPS data.

I am looking forward to learning more about your project!

We are creating a web application to track the movement of cars from the ship to Yard.

1 Like

@11119

Thank you for providing some more information. The Multi-part CZML sandcastle demo is still the correct reference for your application.

It is still unclear to me how the GPS data is causing the erratic Camera movement. Could you please elaborate here? One suggestion would be to create a script that “cleans up” the GPS data. If the GPS data is normalized, it may not disrupt the Camera position in such drastic ways. Another idea would be to edit the way that the Camera variable is being updated. For instance, you could define a separate CZML path for the Camera to follow. The following sandcastle demo will help you get comfortable with Camera controls.

For your reference, here is the Camera documentation.

https://cesium.com/learn/cesiumjs/ref-doc/Camera.html?classFilter=ca

It seems like there are a few solutions to this issue. As always, suggestions from the rest of the community are welcomed!

-Sam

1 Like