ManimCommunity / ManimCommunity/manim

OpenGL scaling a `Vector` causes the line to get thinner

Open
#2,159 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Consider the following scene:

```python
class Test(Scene):
def construct(self):
v = Vector()
self.add(v)
self.wait()
self.play(v.animate.scale(2))
self.wait()
```

This is what happens when it is rendered with OpenGL:

https://user-images.githubusercontent.com/20936595/136078419-df31a01d-b8b8-42cf-9ebb-93836a04d0b2.mp4

Notice that while transforming, the line in the vector gets smaller and then grows again. This looks a little strange (I don't want it in any of my videos), and with Cairo, it doesn't do this.

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

Reproduce the provided Test scene with the OpenGL renderer and compare its Vector scaling animation with the Cairo result. Trace the Vector transformation and line rendering behavior involved in the animation; done means scaling no longer makes the line visibly thin and then grow again under OpenGL.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.