97 votes
Accepted

How to build a bvh (a motion capture file format) player in Mathematica?

TL;DR: A package (Mathematica v10) can be found at the very bottom of this post. UPDATES 6: Tiny update: Import can now use the ".bvh" extension to determine the ...
user avatar
68 votes

How to make this beautiful animation

Edit: Added the reversal and some refinements ...
user avatar
  • 7,694
67 votes
Accepted

How to make this beautiful animation

I'd like to expand on Quantum_Oli's answer to give an intuitive explanation for what's happening, because there's a neat geometric interpretation. At one point in the animation it looks like there is ...
user avatar
  • 68.8k
56 votes

Animation of double pendulum

After correcting the syntax errors in the original code, the actual question can be addressed: How to display the four variables x1[t]...y2[t] as an animation in a ...
user avatar
  • 95.2k
44 votes
Accepted

Random polyhedra walk

Usage Just use this function with any polyhedron in in form: GraphicsComplex[pts_, Polygon[vertices_, ___]]. When I find time and motivation maybe I will add ...
user avatar
  • 133k
44 votes

Face Morphing with Mathematica

MMA version: 12.0 I'll use the following images, found on the internet under open licence (if you know how to share the images themselves, please let me know). I originally had chosen two more but ...
user avatar
  • 13.8k
41 votes
Accepted

May the Fourth be with you

This is not the full answer but I've solved most of the problems. The hardest one, with sound, remains. Embedded version without music bobthechemist's points Quality is not a problem anymore since ...
user avatar
  • 133k
38 votes
Accepted

Animating wave motion in water

...
user avatar
  • 133k
29 votes
Accepted

How can I better mimic the graphics at earth.nullschool.net?

I think you might be better off creating Graphics directly instead of using the StreamPlot style options. In this example I use ...
user avatar
  • 83.4k
28 votes
Accepted

Better way to visualize cylinder puzzle solution

Since you want the animation to have explanatory content, I thought it might be best to incorporate the explanatory 2D diagram into the 3D scene. So I imagine the 2D plot as a "sticker" that can be ...
user avatar
  • 95.2k
28 votes
Accepted

Bouncy Bubbles animation

This is my port of the Processing code that you referenced. It doesn't try to optimize, so I didn't try it either, for example I didn't use Nearest to find ...
user avatar
  • 68.8k
27 votes
Accepted

How should I reproduce this colorful swirling gif?

Embedded cdf with music version. code at the bottom For full period, change max t to 200, my gif is cut in half because for ...
user avatar
  • 133k
27 votes
Accepted

Solving and Animating Three Body Problem

Generally always check Demonstrations site for good code. I cannot not mention an excellent "classic" of planar three body problem by Stephen Wolfram and Michael Trott. Code is short and I verified it ...
user avatar
27 votes
Accepted

Create GIF looping animation

As partly mentioned in this: Add delay to the final frame of a GIF? we can use "AnimationRepetitions" -> ∞ to loop a GIF indefinitely: ...
user avatar
  • 8,538
26 votes
Accepted

Animating transition between all graph representations obtained from curated data

The following is a little involved, but it calculates the "minimum displacement" evolution by choosing the least total displacement alternatives from the permutations generated by the "...
user avatar
26 votes
Accepted

How to plot a bicycle with square wheels

This question is too interesting to resist, so I'll talk about how to analyze the problem. Take a look at sketch above. It describes an arbitrary moment during the rolling. From the kinematics view, $...
user avatar
  • 26k
24 votes

Bouncy Bubbles animation

data generates n balls, here: 10 Note that it might be wise to make the box larger, if ...
user avatar
  • 8,487
23 votes
Accepted

Obtaining a 3D animation as a drop in a liquid surface

Thanks to J.M. ...
user avatar
  • 133k
23 votes

What has changed in Mathematica since version 2 so that Do no longer can be used to make animations?

There was a major overhaul of graphics in 2007 for V6, one aspect of which was that Mathematica switched from displaying graphics as a side-effect, to rendering directly in the notebook. Since ...
user avatar
21 votes
Accepted

Animate point going around a triangle

If you interpret your geometric shape as a NURBS of degree 1 (linear), you can proceed with the following, extremely simple code: ...
user avatar
  • 3,675
21 votes
Accepted

Animate a circle "rolling" along a complicated 3D curve

EDIT As OP wishes (and as Rahul correctly points out) my original answer puts unit circle in TB plane (my error as labels suggest) and what is desired is TN plane. ...
user avatar
  • 55.1k
21 votes
Accepted

How to write a drag-n-drop reorderable gui?

Here is a very crude first implementation (code at the bottom): (note that the updated version is called as `dragDropList[Dynamic@l) Some notes: The black box serves both as insertion marker and as ...
user avatar
  • 23.9k
21 votes
Accepted

How to make this Möbius Torus animation?

Update: I have managed to fix the distortion of the polygons, so now only the glow is missing Update 2: I have added a hacky "glow" to the polygons by adding partially transparent polygons ...
user avatar
  • 23.9k
20 votes

Pulsed NMR animation

Here is a simple modification of the original code in the question that seems to do what's desired: ...
user avatar
  • 95.2k
20 votes
Accepted

Transform sphere into a cube

Slow, but it works: ...
user avatar
  • 35.5k
19 votes
Accepted

Dynamic Epicycles

Here is a slight modernization of old code by Stan Wagon for generating epicycles, based on this paper by Frank Farris: ...
user avatar
19 votes
Accepted

How to add a fading trail effect in Animate?

ColorFunction and Epilog were around in version 7. However, ColorFunction did get an update ...
user avatar
  • 39.4k
19 votes
Accepted

For a better animation of the solution from NDSolve

To prevent shaking, try to add ImagePadding and for the other issue, you can fix the vertical plot range. ...
user avatar
  • 110k
19 votes
Accepted

Generate random walk on a graph

...
user avatar
  • 29.5k
18 votes

Pulsed NMR animation

Below is an animation that tips a proton precessing in the presence of a static B0 magnetic field from the z direction into the x-y plane with a 90 degree ...
user avatar
  • 14.2k

Only top scored, non community-wiki answers of a minimum length are eligible