ManimCommunity / ManimCommunity/manim

Incorrect Positioning of Fixed Orientation Mobjects in OpenGL

Open
#2,952 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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(ThreeDScene):
def construct(self):
self.camera.set_phi(TAU/6)
self.begin_ambient_camera_rotation(rate=0.5)
u = Vector(2*RIGHT, color = RED)
u_label = MathTex("1.0 \\vec u")
u_label.next_to(u.get_end(), RIGHT, buff = 0)
v = Vector(2*LEFT, color = YELLOW)
v_label = MathTex("1.0 \\vec v")
v_label.next_to(v.get_end(), LEFT, buff = 0)
self.add(u, v)
self.add_fixed_orientation_mobjects(u_label, v_label)
self.wait(TAU*2)
```

Here is the result of rendering with the opengl renderer:

![TestGL](https://user-images.githubusercontent.com/20936595/190829708-55072702-729c-4e56-b823-c40197cb5efd.gif)

As you can see, the label's position changes over time when it shouldn't. With cairo, the problem isn't there:

![TestCairo](https://user-images.githubusercontent.com/20936595/190829763-f9135e4f-042f-40f4-a202-14d0f33a5d4f.gif)

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 by running the provided ThreeDScene example with the OpenGL renderer and compare it with the Cairo result. Trace the handling of fixed-orientation mobjects during the ambient camera rotation; done means the u_label and v_label positions remain stable in OpenGL as they do with Cairo.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.