3b1b / 3b1b/manim

AnimationGroup height visual issue

Aberta
#1,498 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
93.9k
Forks
7.7k
Merge médio
2d 13h
PRs com merge (30d)
4

Descrição

I am trying to create a cool effect where the text is getting written and zoom in at the same time.
I tried to use the `AnimationGroup` object for that but this is how it renders :

https://user-images.githubusercontent.com/2827383/115975871-e9a4b700-a568-11eb-8194-fed4927fcfd2.mp4

First, the letters appear really distant from each other, small and also the height animation is being cut off, the letters come back to the original size.

The code is very simple :

```python
class KoreanWord(Scene):
def construct(self):
t = Text('실망')
group = []
group.append(Write(t))
group.append(t.animate.set_height(2))

self.play(AnimationGroup(*group, run_time=10))
```

Am I doing something wrong, or is it an issue?

Thanks in advance for your help.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

The issue is in the AnimationGroup behavior when combining Write and scaling animations. Look at the AnimationGroup class in manim/animation/composition.py and the Write animation in manim/animation/creation.py. Test the provided code snippet to reproduce the visual bug, then examine how AnimationGroup handles concurrent animations affecting the same object's properties.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Domínio
computer-graphics
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.