You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without this bug, it should look like this instead (I rendered this video on an earlier version of Manim):
ImageScene.mp4
Additional comments
This bug is recent. I switched to the branch for my PR #3742, last updated in July, and the error was not present. I haven't yet found the cause of this. I looked at the fading.py, transform.py, animation.py and image_mobject.py, but I didn't find any relevant change: most of them were added typehints.
NOTE: I had to change a np.float_ to np.float64 in manim.utils.iterables and convert the config.frame_rate float to a Fraction in manim.scene.scene_file_writer in order to be able to render the scene in that older branch.
The text was updated successfully, but these errors were encountered:
Description of bug / unexpected behavior
After adding an
ImageMobject
:.animate.set_opacity(0.1)
, the opacity goes up from 0.0 to 0.1 instead of going down from 1.0 to 0.1..animate.set_opacity(0.5)
works as expected.FadeOut
, the opacity of the image goes to 1.0 instead of 0.0.FadeIn
works as it should: it starts with an opacity of 0.0, and it goes up to 0.5: the last opacity we set before.Expected behavior
.animate.set_opacity(0.1)
, the opacity should have gone down from 1.0 to 0.1.FadeOut
, the opacity of the image should have gone down to 0.0.How to reproduce the issue
Additional media files
Current version (with bug):
ImageScene.mp4
Without this bug, it should look like this instead (I rendered this video on an earlier version of Manim):
ImageScene.mp4
Additional comments
This bug is recent. I switched to the branch for my PR #3742, last updated in July, and the error was not present. I haven't yet found the cause of this. I looked at the
fading.py
,transform.py
,animation.py
andimage_mobject.py
, but I didn't find any relevant change: most of them were added typehints.NOTE: I had to change a
np.float_
tonp.float64
inmanim.utils.iterables
and convert theconfig.frame_rate
float to aFraction
inmanim.scene.scene_file_writer
in order to be able to render the scene in that older branch.The text was updated successfully, but these errors were encountered: