How Can I Fix Animation Jumps in Mathematica and Create a Smooth Movie Clip?

  • Context: Mathematica 
  • Thread starter Thread starter n00dle0
  • Start date Start date
  • Tags Tags
    Animation Mathematica
Click For Summary
SUMMARY

The discussion focuses on resolving animation jumps in Mathematica 7 when creating a smooth movie clip of a 3D sphere plot. The solution involves setting the option SphericalRegion -> True in the Show function to ensure a consistent viewpoint during animation. Additionally, using DisplayAllSteps -> True enhances the smoothness of the animation. These adjustments effectively eliminate frame jumps and facilitate the creation of a seamless movie clip.

PREREQUISITES
  • Familiarity with Mathematica 7 syntax and functions
  • Understanding of 3D plotting concepts in Mathematica
  • Knowledge of animation techniques in Mathematica
  • Basic grasp of color functions and region plotting
NEXT STEPS
  • Explore the Animate function in Mathematica for advanced animation techniques
  • Learn about DisplayAllSteps and its impact on animation smoothness
  • Investigate additional options for 3D visualization in Mathematica
  • Research best practices for exporting animations as movie clips in Mathematica
USEFUL FOR

This discussion is beneficial for Mathematica users, particularly those involved in 3D visualization and animation, including educators, researchers, and developers looking to create smooth animated graphics.

n00dle0
Messages
5
Reaction score
0
Hi!

Here is the code in Mathematica 7.

Code:
sphere = RegionPlot3D[(x^2 + y^2 + z^2  <= 1) && (x < 0 || y < 0 || 
     z < 0), {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> False, 
  Boxed -> False, Axes -> True, AxesOrigin -> {0, 0, 0}, 
  AxesLabel -> {X, y, Z}, PlotPoints -> 50, 
  ColorFunctionScaling -> False, 
  ColorFunction -> 
   Function[{x, y, z}, ColorData["Rainbow"][1 - (x^2 + y^2 + z^2 )]], 
  ViewPoint -> {1, 1, 1}, ViewVertical -> {1, 0, 0}, 
  ViewCenter -> {0, 0, 0}]


Animate[Show[sphere, ViewVertical -> {Cos[v], Sin[v], 0}, 
  ViewCenter -> {1, 1, 1}], {v, 0, 2 Pi, Pi/20}]

This plots a sphere with one of the quadrants cut out. I wish to animate this plot by rotating about the body diagonal of the bounding box. With the above Animate, I get te subsequent frames to jump around. How can that be fixed.

Ultimately, I would like to make a movie clip out of it, what would be the best way to go about doing that.

Thanks in advance.
- N
 
Physics news on Phys.org
Solved! SphericalRegion->True does the job. I think I did try it set to true in the sphere before I posted here, but maybe I was messing things elsewhere.

- N


Code:
Animate[Show[sphere, Axes -> False, SphericalRegion -> True, 
  ViewVertical -> {Sin[v], Cos[v], 0}], {v, 0, 2 Pi, Pi/36}]
 
Also, to make it smoother you can use the option:
DisplayAllSteps -> True
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K