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

Rotating a Circle about UP axis breaks the rendering #2130

Open
Batres3 opened this issue May 2, 2024 · 5 comments
Open

Rotating a Circle about UP axis breaks the rendering #2130

Batres3 opened this issue May 2, 2024 · 5 comments
Labels

Comments

@Batres3
Copy link

Batres3 commented May 2, 2024

Describe the bug

When a circle is rotated about the UP axis it breaks the rendering, it seems to end up displaying the triangles where the line is usually rendered, but it colors the whole triangle instead of just the circle (this happens at around -45 degrees)
Code:

from manimlib import *

class Test(Scene):
    def construct(self):
        circle = Circle()
        self.add(circle)
        self.play(Rotate(circle, -45*DEGREES, UP))
        self.wait(5)

test = Test()
test.construct()

Wrong display or Error traceback:

image
Ignore the grey tint.

Additional context

@Batres3 Batres3 added the bug label May 2, 2024
@sundebug
Copy link

sundebug commented May 6, 2024

Yes, I have the same issue.

@TSxSAHIL
Copy link

Hello @Batres3,

I have executed the same code on my system without encountering any errors. This discrepancy might be due to the difference in the libraries we are using—you're using manimlib, whereas I am using manim.

from manim import *

class Test(Scene):
def construct(self):
circle = Circle()
self.add(circle)
self.play(Rotate(circle, -45*DEGREES, DOWN))
self.wait(5)

test = Test()
test.construct()
test.render(preview=True)

If you continue to experience issues, please let me know in this thread so we can troubleshoot further.

Best regards,
Sahil

@Batres3
Copy link
Author

Batres3 commented May 29, 2024

Hello @TSxSAHIL,

Sorry for the late reply. I'm using manimGL directly cloned from this github repository, not the pip version of manim, could you mabye try running it with the cloned code instead and see if that affects anything?

@sundebug
Copy link

sundebug commented Jun 3, 2024

Hello @Batres3,

I have noticed that the first line of your code is from manim import * . It is different from the Manimgl. It may be the communicate version of manim . thanks

@Batres3
Copy link
Author

Batres3 commented Jun 3, 2024

Hi @sundebug,

As I said in my previous comment, I'm using manimgl directly pulled from GitHub, the folder name for manimgl, in GitHub, is manimlib, that's why my import says manimlib.

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

No branches or pull requests

3 participants