manim-rubikscube icon indicating copy to clipboard operation
manim-rubikscube copied to clipboard

Rendering problem

Open Ackeraa opened this issue 2 years ago • 5 comments

During the rotation, there's a rendering problem as show in the video and picture.

https://user-images.githubusercontent.com/47852787/169686307-a4bece59-d991-424a-8b9f-f1e8e595a0e9.mp4

Ackeraa avatar May 22 '22 08:05 Ackeraa

Do you have the code? Did you install Manim Rubikscube from PyPI? What version of Manim?

I have seen various rendering bugs in the past, but typically it's a problem of the way Manim's animations work, not a fault of the plugin. I haven't been keeping up with the stuff too much as of late, but I'm assuming that is still the case.

WampyCakes avatar May 22 '22 16:05 WampyCakes

Do you have the code? Did you install Manim Rubikscube from PyPI? What version of Manim?

I have seen various rendering bugs in the past, but typically it's a problem of the way Manim's animations work, not a fault of the plugin. I haven't been keeping up with the stuff too much as of late, but I'm assuming that is still the case.

It's the same code as shown in the https://manim-rubikscube.readthedocs.io/en/stable/ AllTogetherExample. It seems your example also has this bug.

Ackeraa avatar May 23 '22 01:05 Ackeraa

Yeahh, I'm pretty sure that has to do with how Manim handles animations. When a mobject is animated, it gives it a higher precedence on the z-index for some annoying reason. There's a work around that I have had to use before when running into such issues (occasionally with far more pronounced rendering problems with Manim Rubikscube due to this). Try doing your animation, but simultaneously in the same .play() call doing a blank Animation() on the slices of the cube that you are not rotating.

WampyCakes avatar May 24 '22 21:05 WampyCakes

Thanks for your response. Have you tried that? It seems did not work for me.

Ackeraa avatar May 30 '22 14:05 Ackeraa

I have not for this exact thing, but I have for other Manim Rubikscube animations.

WampyCakes avatar May 30 '22 16:05 WampyCakes