EllipseNode has a latency when repositioned

classic Classic list List threaded Threaded
3 messages Options
Moishy Moishy
Reply | Threaded
Open this post in threaded view
|

EllipseNode has a latency when repositioned

Hi

I run into a problem, which I think is a bug.
I'm drawing an ellipse (EllipseNode) which is draped to the terrain. and is a child of a GeoTransform.
Under the GeoTransform, I'm placing another Node (some plane model).
But, when I'm changing the position of the GeoTransform the ellipse's position is being changed only a few frames after the model's position.
It is noticeable mainly when I put the camera (EarthManipulator) to track the GeoTransform (viewpoint.setNode(geoTransform)).

Here is the full code to recreate the bug (just add a map to see the movement).
Can anyone tell me Why is it happening?
Is it me that causes it, or is it a bug?

Thanks
Moishy
Moishy Moishy
Reply | Threaded
Open this post in threaded view
|

Re: EllipseNode has a latency when repositioned

The only solution I found to by pass this problem was to change the graph to look like that:
SkyNode ->MapNode -> Group -> DrapeableNode -> GeoTransform -> EllipseNode
                -> GeoTransform -> Node
i.e. the root holds both the DrapeableNode of GeoTransform of the EllipseNode and GeoTransform of the Node (model)



But this doesn't explain why the there is a latency in the first place.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: EllipseNode has a latency when repositioned

Moishy,
Thanks for pointing this out. Indeed, if there is a DrapeableNode under a GeoTransform, it will experience a frame delay. (You can even simplify your example by using one GeoTransform and putting your airplane model directly under it, and then under a DrapeableNode under it as well.)

If you would be so kind as to open a github issue for it, we will take a closer time when time permits. Thanks.
Glenn Waldron / Pelican Mapping