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
When I do a move animation on the the frame_center in a ThreeDScene, an ImageMobject is shifted a different amount from the rest of the mobjects in the scene.
NeuralNetworkScene.mp4
Expected behavior
Both the Square and the ImageMobject should move the same amount.
How to reproduce the issue
frommanimimport*fromPILimportImageimportnumpyasnpclassNeuralNetworkScene(ThreeDScene):
"""Test Scene for the Neural Network"""defconstruct(self):
# Make the Layer objectimage=Image.open("../assets/mnist/digit.jpeg")
numpy_image=np.asarray(image)
square=Square().shift([0.0, 2.5, 0.0])
self.add(square)
image_mobject=ImageMobject(
numpy_image,
image_mode="RGB"
).scale(10)
self.add(image_mobject)
self.play(
self.camera._frame_center.animate.shift(
np.array([3.0, 0.0, 0])
)
)
The text was updated successfully, but these errors were encountered:
Description of bug / unexpected behavior
When I do a move animation on the the frame_center in a ThreeDScene, an ImageMobject is shifted a different amount from the rest of the mobjects in the scene.
NeuralNetworkScene.mp4
Expected behavior
Both the Square and the ImageMobject should move the same amount.
How to reproduce the issue
The text was updated successfully, but these errors were encountered: