ManimCommunity / ManimCommunity/manim

Curves are slightly thicker when rendering with OpenGL due to anti-aliasing

Open
#1,529 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

opengl
Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

Description of unexpected behavior

Comparing the output of cairo and OpenGL rendering it is noticeable that curves are slightly thicker when rendering with OpenGL:

This is caused by anti-aliasing (and in particular the thickness can be controlled via the value of OpenGLRenderer.anti_alias_width).

We should discuss whether we

  • simply keep the slightly thicker curves,
  • adjust OpenGLRenderer.anti_alias_width,
  • or pursue a different approach to restore the cairo look and feel.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at OpenGLRenderer.anti_alias_width and compare the cairo and OpenGL rendering paths described in the issue. Determine which of the three listed approaches is accepted, then verify that curve thickness matches the intended cairo look; the issue names no file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.