ManimCommunity / ManimCommunity/manim

[BUG] Z-coordinate does not bring the Mobject to the front when rendering with OpenGL.

Open
#3,983 0 comments 1 reaction 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

Description of bug / unexpected behavior

I conducted tests and found that even with the z-coordinate set, rendering with OpenGL still follows the order in which the Mobjects are added.

https://github.com/user-attachments/assets/b98b4ba6-7a5c-4cf7-9087-3fc877611acb

System specifications

System Details
  • OS Windows 11
  • RAM: 64GB
  • Python version : Python 3.10
LaTeX details
  • LaTeX distribution: TeX Live 2024

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 reproducing the reported behavior on Windows 11 with Python 3.10 using an OpenGL scene containing Mobjects with different z-coordinates. Trace the OpenGL rendering path and verify that the Mobject with the greater z-coordinate is rendered in front regardless of insertion order.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.