Issue in Cesium using relative reference frame

Hi Cesium community!

I am currently working on Cesium.js 1.96 and trying to visualize a space mission scenario including 2 satellites. And im tring to draw the path of a satellite while the orbit’s reference frame is the other’s local orbit frame. As the visiualization in STK showing below:


However, i have never successed in visualizing this scenario, neither using referenceFrame: #id in CZML nor loading the czml exported from stk works. They all end up with this in Cesium:

And i have read some posts in github and cesium community about this, it seems that the discussion about relative reference frame in cesium started in 2013, and the reference frame branch had been merged into ‘main’ in 2017? But i still can’t make it work :smiling_face_with_tear:


Well, this explains why STK CZML Export Plugin can’t export orbits in my defined reference frames. But still, is it available for Cesium or CZML to load a orbit graphic that its reference frame is another entity?

It seems that the only way to get a relative trajectory is to calculate the position by yourself :smiling_face_with_tear:

Hi paopao99,

I am facing a similar problem.
I would like to know how to calculate to get a relative trajectory.

Thanks,

Leo

Sorry for the late reply.
Im more familiar with Orekit compared to CesiumJS, so that the implementation was in Java. But still, the idea was to propagate and transform the trajectory sampling points, shown below.
image

Im sure this can be done with coordinate transform methods in Cesium and propagate method in SatelliteJS too.
Again, sry for my super late reply :face_holding_back_tears: