ManimCommunity / manim

A community-maintained Python framework for creating mathematical animations.
https://www.manim.community
MIT License
26.57k stars 1.82k forks source link

OpenGl resolution option invalid #4002

Open Shree-bytes opened 2 weeks ago

Shree-bytes commented 2 weeks ago

'Resolution option invalid' while rendering with OpenGL

While rendering a scene using the -renderer opengl command, I get a 'Resolution option is invalid' error.

Just this morning everything was fine until I started encountering this issue. Usually running this command along with -p command opens a small interactive window which played the animation.

I have already tried specifying the quality and resolution, both manually by editing the config file and using the -q and -r commands. I have uninstalled and reinstalled Manim multiple times by using pip and Chocolatey as well to try and get it to work again.

I really like OpenGL as it gives me a faster preview without cluttering my screen too much by opening the media player every time I make any adjustments.

CMD commands ```py manim -renderer opengl -pqm fy.py ```
behackl commented 2 weeks ago

On the CLI the renderer flag needs to be passed with two dashes: manim --renderer opengl ..., otherwise your command is interpreted as passing the option "enderer" to the -r flag, which is the resolution.