Giter VIP home page Giter VIP logo

manim-tutorial's People

Contributors

cuppajoeman avatar dependabot[bot] avatar mahoyen avatar malhotra5 avatar thefibonaccieffect avatar travorlzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

manim-tutorial's Issues

Windows Installation Guide for manim

Need a windows installation guide for Manim ASAP. Assigned to @malhotra5 as I can run windows.

  • Get a guide out for windows
  • Identify any manim functionalities or usage that might differ between Linux, Mac and Windows

Clipping the output value of rate functions

Using code from 06/10, I could not get the following simple wiggle scene to render properly:

class test(Scene):
    def construct(self):
        dot = Dot(color=YELLOW)
        self.add(dot)
        self.play(dot.shift, RIGHT, rate_func=lambda t: wiggle(t,6),run_time=5)
        self.wait(1)

The movement would occur in one direction as expected but not on the other. After digging into the code, I found the following lines in manimlib/animation/animation.py:

  def get_sub_alpha(self, alpha, index, num_submobjects):
        # TODO, make this more understanable, and/or combine
        # its functionality with AnimationGroup's method
        # build_animations_with_timings
        lag_ratio = self.lag_ratio
        full_length = (num_submobjects - 1) * lag_ratio + 1
        value = alpha * full_length
        lower = index * lag_ratio
        return np.clip((value - lower), 0 1) # <---- could this be -1 instead of 0?

Since the wiggle function outputs values in the [-1, 1] interval, I fail to see how it's supposed to work with the above clipping in place. While I understand that it's supposed to be a safety net against wild user-provided rate functions, I believe it's better to extend the clipping to the [-1, 1] interval.

still at the install part

Hi, sorry I'm pretty new to Linux and programming in general, I have a question which Python version do i need to install and where can I find it, after that I got to the part with the SystemReq but I got always an error that there are no SystemReq found.

Display a graph

In the graphing section, can you display the graph that is already played ?

Graph line width

Is it possible to change the line width of graphs?
EDIT: Under manlib/contants.py if I change DEFAULT_STROKE_WIDTH I can change the width. It would be nice if we could pass this variable when making the graph.

Chemistry figures in manim

I was trying to make molecules ,with manim, arraying polygons, lines and letters and it turn out to be a huge pain. Does someone know if it's possible to install a LaTex package (Chemfig) and use LaTex (the same way we use to generate equations) but to generate LaTex figures in manim ?

Some advice to a format README

README created by @malhotra5 explains everything carefully about the tutorial of manim. However I believe there are still methods to let README both look better and be synchronized to manim's update:

  1. Formatting: There are many syntax in markdown to express different types of content, and I suggest that we could adopt those other syntaxes in README
  2. Outdated parts: There is no need to obtain manim's repository now because it is made available to pip interface, so we really should change these.
  3. More information can be added to README: After reading its the source code, I have more understanding in manim's process of creating animations.

By the way, I also request assigning this issue to myself since I have already started working on the solutions in my fork of this repo.

Sound

How to add sound in the rendered videos ?

ImportError: After Running `manim.py` asks for import:

After fulfilling all the requirements I run the python3 manim.py example_scenes.py:
Result:
python3 manim.py example_scenes.py Traceback (most recent call last): File "manim.py", line 2, in <module> import manimlib File "/root/manim/manimlib/__init__.py", line 4, in <module> import manimlib.extract_scene File "/root/manim/manimlib/extract_scene.py", line 9, in <module> from manimlib.scene.scene import Scene File "/root/manim/manimlib/scene/scene.py", line 12, in <module> from manimlib.camera.camera import Camera File "/root/manim/manimlib/camera/camera.py", line 9, in <module> import cairo File "/root/anaconda3/lib/python3.7/site-packages/cairo/__init__.py", line 1, in <module> from ._cairo import * # noqa: F401,F403 ImportError: /root/anaconda3/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cairo_svg_surface_set_document_unit

Please help

How to display python code with manim?

How would you go about displaying python code as a TextMobject or other object so that you can animate the code on the screen. I feel this would be amazing for programming tutorials so I was just wondering.

Shapes tutorial missing NumPy constant definitions

In the shapes tutorial, for the yellow lines, there are several places where constants are not defined as np.<constant>, even though they are inherited from NumPy. The code currently reads:

pointers = []
for i in range(8):
    pointers.append(Line(ORIGIN, np.array([cos(pi/180*360/8*i),sin(pi/180*360/8*i), 0]),color=YELLOW))

But needs to be fixed to:

pointers = []
    for i in range(8):
        pointers.append(Line(ORIGIN, np.array([np.cos(np.pi/180*360/8*i), np.sin(np.pi//180*360/8*i), 0]), color=YELLOW))

Where sin() and cos() have been fixed to np.sin() and np.cos(), and pi has been fixed to np.pi. Without it, the script doesn't compile properly (at least not for me).

Edit: I have posted a pull request. I can't link it to this issue because I don't have edit access, but I forked this repo and created a pull from a branch on my fork.

big_ol_pile_of_manim_imports doesn't exist anymore

use manimlib.imports instead. it has the exact same comment at the top with "I won't pretend like this is best practice..."

there's probably other outdated stuff but yeah this one took forever to figure out

How to run it in Colab?

When I try

!git clone https://github.com/3b1b/manim.git
!pip3 install manimlib
!python3 -m pip install -r requirements.txt

I see a bunch of errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.