-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Billboard jitters when modifying imageSubRegion #11569
Comments
Thanks for the report @syzdev. I'm seeing some flickering at a size of 512, although it's less apparent than the flickering at larger sizes.
Would you mind explaining your use case? There may be a better way to achieve a similar end result. |
@ggetz Thank you for your attention! I want to add dynamic images to the scene (such as .gif), and there are currently two implementation methods that I can think of:
In the example provided by @mramato, due to the smaller image size and fewer frames, the Canvas size ultimately handed over to |
Note: This may be a precision loss issue due to compression of texture coordinates. |
I want to use
CallbackProperty
to modifyimageSubRegion
to implement dynamicBillboard
, but I find that when the width and height ofBillboard.image
are large enough,Billboard
will jitter after modifyingimageSubRegion
. And the larger the width and height ofBillboard.image
, the more violent the jitter.I implemented a simple case to reproduce this problem, in this case I repeatedly drew a 128*128 image whiteShapes.png on the Canvas, and then used the

CallbackProperty
to modify theimageSubRegion
to get aBoundingRectangle
at different positions (Although differentBoundingRectangle
will get the same image content).In the picture below, the width and height of Canvas are 6400. The picture has been drawn for a total of 2500 times, and you can see that the jitter is very obvious.

In the picture below, the width and height of Canvas are 512. The picture has been drawn for a total of 16 times, and you can see that it is very calm.

You can modify
NumberOfRepeats
in the sample code to see different situations. Jitter starts whenNumberOfRepeats >= 5
inmy computer.
Sandcastle example: Cesium Sandcastle
Browser: Latest versions of Chrome
Operating System: Windows 11
The text was updated successfully, but these errors were encountered: