News for hackers. Stuff that matters.
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @04:26AM (#19717368)
I’ve recently moved back into academia. Inspired by 3b1b and horrified by the awful state of the (PowerPoint) notes that were given to the students of the modules I now coordinate, I’ve taken to rewriting them using Jupyter and copious amounts of Blender animations.

I don’t see myself using these tools as I know blender very well and I’ve got a workflow. Equations can be exported from LaTeXit as SVG and imported into blender for manipulation and animation. The new eevee real time renderer in 2.8 makes rendering high quality graphics really fast. Then, when appropriate, I try to recreate the concept in simple Python and animate it so the students can play with it.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by bsenftner on Monday April 22, 2019 @09:06AM (#19718583)
Checkout mathbox. Mathbox is pure and simply genius. https://github.com/unconed/mathbox
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @10:11AM (#19719051)
Yes please!
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by O_H_E on Monday April 22, 2019 @06:37AM (#19717814)
I have a passion of explaining concepts to younger humans. Combining programming, animation, and teaching: this kinda hits home.
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @06:46AM (#19717837)
I learned blender out of a necessity to explain concepts to older executive humans (and blender is awesome!).

During my undergrad we learned Matlab in year one and subsequent modules in core subjects like solid mechanics, fluid mechanics etc ignored anything to do with code. This was mainly because (as I learned later) the lecturers frequently couldn’t code themselves.

This was frustrating because coding is essential to engineering and efficient problem solving. Fast forward to today and I see the same problems. Students are terrified of coding. It’s complicated enough to have to learn all this new maths but also all this computer science stuff?!

So the notebooks often deal with fundamental stuff that don’t really need need code but then the code can be super simple and intuitive and hopefully inviting.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by wodenokoto on Monday April 22, 2019 @05:40AM (#19717606)
Sounds awesome, can you show off some examples?
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @06:34AM (#19717805)
I will once I have a few complete sections. I plan on putting them on GitHub so you can run them via Google Colab.

The topic is introductory fluid mechanics BTW.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by viKunar on Monday April 22, 2019 @06:36PM (#19723737)
Hey, I’d love to help out with that. I’ve been making my own attempt at writing literate code in fluid dynamics and I’d love any examples of it in the wild.

In short, don’t mind a repo with half finished code :) send me a message at @grokkingStuff

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Tuesday April 23, 2019 @09:00AM (#19728133)
I’ll be in touch!
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by osrec on Monday April 22, 2019 @05:44AM (#19717615)
Would you mind explaining how you work with SVGs in blender? Genuinely interested, as I've been using blender for years, but have not had much success manipulating 2d graphics in there. I'm hoping your workflow can expand my knowledge! Thanks!
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @06:38AM (#19717817)
First you need to install pdf2svg for LaTeXit to export SVG.

Now, once you’re in blender if you import SVG art it’ll typically come in at a very small scale and each object will be separate, but it’ll also be selected. I usually scale it up shift select the first character of my equation and then ctrl j to join it.

Then it’ll just be a regular curve object in blender. You can add modifiers like solidify, bevel objects, convert to mesh etc.

There’s also a 2D/3D toggle in the curve properties.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by osrec on Monday April 22, 2019 @01:48PM (#19720973)
That's great info! Thank you :)
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Monday April 22, 2019 @02:55PM (#19721706)
Let me know if you need more info. 2.8 brings s lot of grease pencil and 2D curve changes that are very powerful.

Happy blendering.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by mitrettavrednik on Monday April 22, 2019 @08:20PM (#19724456)
Just recently I've been fiddling around with Blender in the hopes of creating some scientific animations with it. I've gotten the hang of the basics, but I'm struggling a bit with moving beyond toy examples.

Would you mind sharing your workflow? It might help me to have a mental model of the full process of a typical animation.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Tuesday April 23, 2019 @08:50AM (#19728047)
What type of stuff? I could record a video of a specific example for you.
Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by mitrettavrednik on Tuesday April 23, 2019 @10:15AM (#19728780)
If you have the time, I'd appreciate that a lot! I'm an EE with a focus in electromagnetics, so I'd be most interested in animating time-varying vector fields, and also wave phenomena.

I saw in one of your other comments that you plan to put some of your other work on GitHub at some point. I'll make sure to check that out too.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Tuesday April 23, 2019 @06:19PM (#19733550)
Here are two quick and dirty videos. Apologies for the mumbling and the fan noise.

https://youtu.be/uISK1RTTj84

https://youtu.be/ICLtxpTJBKg

There's a lot more you can do with Python scripting and addons. You can plot math functions as surfaces etc. There are probably a lot of possibilities with procedural textures and displacement maps.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by mitrettavrednik on Tuesday April 23, 2019 @09:01PM (#19734621)
Thanks a bunch, those were helpful. You're clearly pretty fluent with Blender, how long ago did you start learning? Were there any resources you found helpful, especially for scientific applications? Most tutorials I've found are aimed more at artists, video game/movie animators, etc.

I've been looking into the Python API and the animation nodes addon too, both seem pretty powerful.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by knolan on Wednesday April 24, 2019 @02:51AM (#19736151)
About six years now. I remember initially using some official tutorials that weren’t great. These new ones are much better:

https://cloud.blender.org/p/blender-inside-out/560414b7044a2...

The various Andrew Price videos were very helpful and once I had an idea of what feature I needed to use it made searching for tutorials easier.

For specific scientific applications, I can’t say. I’ve used various Adobe tools and CAD packages over the years for making artwork for papers and presentations as well as being inspired by animation from video games, documentaries, 3b1b etc.

One of my initial uses was rendering lambda_2 isosurfaces of turbulent structures from Direct Numerical Simulations.

I’ve used the Python API to script some topology generation for 3D printing which is great. I’ve yet to use animation nodes because for the current series I’m working on I want to give the students blend files of the animations in vanilla 2.8 should they want to explore behind the curtain.

Re:Manim – 3Blue1Brown's animation engine for explanatory ma... by mitrettavrednik on Wednesday April 24, 2019 @04:23PM (#19742234)
Awesome, thanks again for taking the time to answer all my questions!