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

Error effect when rendering the same ImageMobject #2061

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

floatwoozy
Copy link

Motivation

Triggered when rendering the same texture consecutively.
Mobject default render mode is TRIANGLE_STRIP, which will outputs extra triangles;
Use TRIANGLES mode and add vertices to fix this.

Proposed changes

  • image_mobject.py

Test

Code:

class Test(Scene):
    def construct(self):
        image = ImageMobject("res/bili.png").scale(0.2)
        a = Group(*[image.copy() for _ in range(25)]).arrange_in_grid(5, 5)
        self.add(a)

Result:
Test
Test_f

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

Successfully merging this pull request may close these issues.

None yet

1 participant