(Translated by https://www.hiragana.jp/)
Jagged edges on Tex objects and pyglet Window not filling entire screen · Issue #2158 · 3b1b/manim · GitHub
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

Jagged edges on Tex objects and pyglet Window not filling entire screen #2158

Closed
Octonions opened this issue Aug 14, 2024 · 2 comments
Closed
Labels

Comments

@Octonions
Copy link

Octonions commented Aug 14, 2024

I'm not sure if this is really a bug but it does feel like one to me.

Whenever running manimgl as manimgl main.py MainScene -p -f, I get 30 fps animations, even if I specify high quality on either my flags or custom_config.yml. I could make it 60 fps by changing this line to ...["fps"] = 60.

This is the code main.py consists of:

from manimlib import *

class MainScene(Scene):
	def construct(self):
		eq1 = Tex(
			"1 + \\frac{1}{2} + \\frac{1}{3} + \\frac{1}{4} + \\frac{1}{5} + \\cdots",
		)

		self.play(Write(eq1, 4))
		self.wait()

The issue now is that objects like Circle and Square look fine, but not Tex objects. The edges of equations are usually jagged even though the SVG object has aliased edges.

I first tested this on Windows and, to make sure it wasn't something related to how the OS renders things, I tested it on my Macbook Pro as well. Same thing happens: jagged edges for Tex objects.

I'm not sure if this is a pyglet window bug or if it's truly on how the equations are being displayed.

I wish to use the presentation mode to show animations in a live presentation by advancing with the spacebar. The only issue right now is that the equations look bad and that the pyglet window (even though specifying -f in the flags) does not fill my entire screen, as I can see my taskbar right below it.

image

@Octonions Octonions added the bug label Aug 14, 2024
@Octonions Octonions changed the title Jagged edges on Tex objects and pyglet Window not filling my entire screen Jagged edges on Tex objects and pyglet Window not filling entire screen Aug 14, 2024
@Octonions
Copy link
Author

python_jZBq4QOOfd.mp4

@Octonions
Copy link
Author

Solved on #2160 and #2161.

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

1 participant