-
Notifications
You must be signed in to change notification settings - Fork 2.2k
next_section(skip_animation = True) doesn't work with opengl renderer #4240
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
Comments
I managed to narrow it down a little bit more. In the code provided in the original post, one object is animated in using Write, and the other using Create, in case when both objects using Create, everything works as expected. Based on that I did some tests, and apparently when using OpenGL renderer, if you pass a really small run_time parameter into Write(), you will get the same crash. And thus what actually is wrong is not necessary next_section() but Write class when animation is very short or skipped altogether. (only when using opengl renderer) Code for reproducing the problem
LogsTerminal output
|
Description of bug / unexpected behavior
When attempted to use self.next_section(skip_animation = True) with opengl renderer the opengl window just froze up. At this point the code was quite large, so I reduced it to a basic test with two shapes each animated in. (see attached code). After doing that I ran the program with cairo renderer - perfect result, first animation skipped, second is being played. When switching to opengl renderer, the program broke down.
Expected behavior
First animation skipped, second played.
How to reproduce the issue
Code for reproducing the problem
Additional media files
Images/GIFs
Logs
Terminal output
System specifications
System Details
pip list
):Additional comments
Terminal commands used
manim -pqm 'path_to_file' MyScenemanim -p --renderer=opengl 'path_to_file' MyScene
The text was updated successfully, but these errors were encountered: