3b1b / manim

Animation engine for explanatory math videos
MIT License
60.28k stars 5.7k forks source link

What's the best way to run the scenes that need Pi creatures? #18

Closed Glidos closed 5 years ago

Glidos commented 7 years ago

Yet to experiment in this area yet, but I'm wondering, will any replacement SVG file do? Or are certain "keys" needed for the animations? I know little about SVG.

I'm hoping someone else has found a work around. No need for the scenes to look good. I just want to use them as a way to understand the system.

julien-blanchon commented 7 years ago

Yes same issues, I got a svg error when the svg is missing (normal ^^). And when I download a new svg (like http://www.clker.com/cliparts/6/J/p/U/f/h/animated-pi.svg), I got a index error. For some scene we can just delete all Pi creatures command but it's very long.

mirefek commented 7 years ago

This interests me too. I have no idea what are the requirements on the SVG file so that I can use it as a pi creature. I just know that a general SVG does not work. At least one example would be appreciated.

mirefek commented 7 years ago

Hi, I understand it better now. 3b1b has lots of different pi creatures: angry, confused, dance_kick, erm, guilty, happy, hesitant, hooray, maybe, plain, pleading, pondering, raise_left_hand, raise_righthand, sassy, show, shruggie, speaking, surprised, thinking, well but he probably do not intend to publish them. Pi creatures are in the directory files/images/PiCreature/ and they are named `PiCreatures.svg` Every pi creature image is supposed to contain 6 paths. In order: left eye, right eye, left pupil, right pupil, body, mouth. I have made an example pi creature

Update: Originally mentioned fixes considering file mobject/svg_mobject.py have been merged into the master repository. So following example should just work after downloading the example image..

class PiCreatureExampleScene(PiCreatureScene):
    def construct(self):
        mortimer = self.create_pi_creature()
        self.dither()

For more sophisticated examples, copy the original one to other names and try to make minor changes in them.

3b1b commented 7 years ago

I have added the simple plain expression and made it so that scenes with pi creatures should fall back on this svg, so those scenes should run now. Let me know if they don't. The full palette of expressions is somewhat 3b1b specific, so I'd prefer to keep it out of the public repo.

rajdakin commented 7 years ago

@3b1b, as suggested in #24, you could just licence the pictures so that we can have these...

fpf3 commented 7 years ago

@3b1b Scanning through some of this code, it looks pretty dense and impenetrable, and I think it's probably going to remain that way the fewer assets you share with the community.

eulertour commented 5 years ago

Closing, as this issue is old and seems to be resolved.

CaftBotti commented 1 year ago

If you want to make pi creature scenes like in 3b1b's videos, here is a good choice. Follow the steps in README.md and make a video that shows different emotions of pi creatures which were not released by 3b1b. An example video is given in README.md.

https://user-images.githubusercontent.com/111475301/209333597-63a97dca-75e8-4f96-9927-fa2bc4b925ff.mp4

3b1b commented 1 year ago

Just FYI, a trademark protects the use of this particular design in the settings of online video, and certain kinds of merchandise. I'm delighted if people find manim code useful in creating new math animations, but at the same time would not encourage using designs specific to the 3blue1brown channel. I'd much rather encourage others to find their own voice/look/feel.

I see why you made this repo, and I suppose if someone wants to rerun a scene locally that involves pi creatures and it's unsatisfying for the modes to all default to "plain", that seems fine. But as long as people know that the IP around those designs is distinct from the licensing behind manim.

CaftBotti commented 1 year ago

Just FYI, a trademark protects the use of this particular design in the settings of online video, and certain kinds of merchandise. I'm delighted if people find manim code useful in creating new math animations, but at the same time would not encourage using designs specific to the 3blue1brown channel. I'd much rather encourage others to find their own voice/look/feel.

I see why you made this repo, and I suppose if someone wants to rerun a scene locally that involves pi creatures and it's unsatisfying for the modes to all default to "plain", that seems fine. But as long as people know that the IP around those designs is distinct from the licensing behind manim.

It's good to protect the use of lovely pi's, because you really need them as a eye-catching character image to become your symbol, and we should all respect you. But many people saw them appeared in your videos, and in addition that you use manim to render videos about math, they will certainly wonder how to make pi creature scenes. If you tend to share your popular symbol to manim, I believe manim will be more and more satisfying and useful for its users. However, if you suppose to keep your intellectual property, you have no need to that and you can keep those design secret until forever.

Wish manim have a better future!