I've been thinking about working on basic 3D animations for Sage; I haven't yet found an open ticket either. On AskSage, I gave an example showing how to hack the current animation functionality to animate 3D plots:
http://ask.sagemath.org/question/1275/interact-3d-plotpolyhedron?answer=1999#1999 The idea is to make a dummy animation, with the same number of frames that you want, and then *replace* the dummy animation frames with the ones you want to use. When you call ".show()", your dummy animation object will then work out the necessary command for convert and produce a gif animation for you. Marshall: Perhaps you and I (and other interested parties) should discuss how to best implement 3D animations either on sage-devel or on the appropriate ticket. My thinking has been that "animate()" should work for any iterator of objects which can save to an image format. Currently "animate(w)" tries to call "plot()" on the items in w, and I was thinking of just replacing this with a try/except block that would call something like "save(tmp_%08d.png)" instead, and fall back on plot if that fails. Maybe you have more developed ideas though? -Niles On Thursday, May 6, 2010 8:14:06 AM UTC-4, Marshall Hampton wrote: > > I just noticed that saving 3d objects to a file has finally been > fixed: http://trac.sagemath.org/sage_trac/ticket/2872 > That means we are one step closer to handling 3d animations. I can't > find a trac ticket that explicitly targets that but maybe I'm just > missing it. > > -M. Hampton > > On May 6, 7:10 am, Marshall Hampton <hampto...@gmail.com> wrote: > > If you search this group for "animate" or "animation" you can see a > > lot of other responses. One approach is to using ffmpeg to make a > > movie out of a sequence of frames you save somewhere (e.g. the DATA > > directory). Another is to use Jmol, but that requires learning a bit > > more about Jmol since the functionality isn't wrapped in Sage well > > yet. There has also been some recent progress in including the Theora > > codec in Sage, which can be used with html5 (seehttp:// > trac.sagemath.org/sage_trac/ticket/7298). Eventually the > > animate command should be able to use that last option for 3d objects > > but I'm not sure how long that's going to take. > > > > -M. Hampton > > > > On May 6, 5:34 am, isurug <isurugod...@gmail.com> wrote: > > > > > > > > > Hello there, > > > First of all, a very big thank you for this piece of gold: sagemath. > > > Im loving it! > > > I could get it to do all i wanted so far without much less fuss! I > > > have now tried to make an animation or movie with it of some 3d plot i > > > have. I want to capture the changes occur in the plot with one > > > variable. I used animate() but it failed. I'd really appreciate if > > > anyone can shine some light regarding how this is possible in > > > Sagemath? > > > > > Thank you, > > > Isuru > > > > > -- > > > To post to this group, send email to sage-support@googlegroups.com > > > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > > > For more options, visit this group athttp:// > groups.google.com/group/sage-support > > > URL:http://www.sagemath.org > > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group athttp:// > groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org