question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ShowCreation not working for 3d Mobjects

See original GitHub issue

Bug

ShowCreation Animation is not working for three-dimensional mobjects.

Code:

class CubeCreation(Scene):
    def construct(self):
        cube = Cube()
        self.add(cube)
        self.play(ShowCreation(cube))
        self.wait()

class SphereCreation(Scene):
    def construct(self):
        sphere = Sphere()
        self.add(sphere)
        self.play(ShowCreation(sphere))
        self.wait()

Error traceback: For Cube Creation, I am getting this:

“…manim\manimlib\animation\creation.py”, line 30, in interpolate_submobject  start_submob, *self.get_bounds(alpha)

“…manim\manimlib\mobject\types\surface.py”, line 113, in pointwise_become_partial  for arr in smobject.get_surface_points_and_nudged_points()

“…manim\manimlib\mobject\types\surface.py”, line 132, in get_partial_points_array  col = interpolate(points[:, index], points[:, index + 1], residue)

“…manim\manimlib\mobject\types\surface.py”, line 113, in <listcomp>  for arr in smobject.get_surface_points_and_nudged_points()

IndexError: index 0 is out of bounds for axis 1 with size 0

For SphereCreation,

The video is rendered but there is no sphere in the video, it’s just blank background.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
3b1bcommented, Feb 8, 2021

Thanks for pointing this out, I believe it is now fixed. Feel free to reopen if other issues arise.

0reactions
sahilmakhijanicommented, Feb 8, 2021

It working now, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

NameError: name 'ShowCreation' is not defined : r/manim
I recently just installed manim on my M1 mac. I first had some numpy problem but I resolved it and finally installed. Now,...
Read more >
Creation — Manim Feb/03/2019 documentation - GitHub Pages
class ShowCreationExample(Scene): def construct(self): mobjects = VGroup( ... way (e.g. shifting then) in a way that does not work with FadeIn and FadeOut....
Read more >
v0.5.0 - Manim Community
Deprecated ShowCreation in favor of Create across the library with ... A random bug was fixed in OpenGLSurface and OpenGL background color ...
Read more >
Getting Started Animating with manim and Python 3.7
– Create a series of 2D mobjects and use the 3D camera to zoom around the mobjects. 12.0 Working with SVG Files. The...
Read more >
BEYOND 3D Tutorial Chapter 7: Putting it all together - YouTube
http://www.PangolinBEYOND.com Creating 3D objects and spline path for the camera to follow. Creating and animation and saving it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found