Skip to content
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

Rendering problem #8

Open
Ackeraa opened this issue May 22, 2022 · 5 comments
Open

Rendering problem #8

Ackeraa opened this issue May 22, 2022 · 5 comments

Comments

@Ackeraa
Copy link

Ackeraa commented May 22, 2022

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

Main.mp4

@WampyCakes
Copy link
Owner

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.

@Ackeraa
Copy link
Author

Ackeraa commented May 23, 2022

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.

@WampyCakes
Copy link
Owner

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.

@Ackeraa
Copy link
Author

Ackeraa commented May 30, 2022

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

@WampyCakes
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants