3b1b / 3b1b/manim

Distance ignored in ThreeDScene

Aperta
#999 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
93.8k
Fork
7.7k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Hi,

So I'm trying to plot some data in a ThreeDScene, and I am finding that the distance argument is being ignored. So for example, here is a simple class:

```python
class Scene6d_Autometa4(ThreeDScene):
def construct(self):
# Note to keep the coverage looking roughly the same scale as x and y, we are going to
# divide the raw numbers by 100
axes = ThreeDAxes(x_min = -50, x_max = 50, y_min = -50, y_max = 50, z_min = 0, z_max = 70)
circle = Circle()
self.set_camera_orientation(phi=80 * DEGREES,theta=45*DEGREES,distance=12000,gamma=30*DEGREES)
self.play(ShowCreation(circle), ShowCreation(axes))
self.move_camera(phi=30*DEGREES,theta=-45*DEGREES,run_time=3, distance = 200)
self.wait(2)
```

The numbers are a bit extreme because I was trying to see if anything made a difference. Note the axes max/min reflect the data I'm going to plot. Anyway, here is the result of the above:

![Scene6d_Autometa4](https://user-images.githubusercontent.com/6548561/79861927-d5007280-839a-11ea-9176-cd8d2b628d3a.gif)

Note, the distance doesn't change as the camera changes angle, as I expected to happen.

This was run using the official Docker image. I've only just started using manim so I haven't dug that deep into the code. Has distance been implemented?

Thanks,

Jason

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.