Hi Duncan, Thanks a lot for your response, that was very helpful. I've managed to get my head around the javascript code produced by the writeWebGL function: I now have a 4d interactive animation that can be played in a web browser. Let me know if you're interested in seeing it and I'll send it to you by email.
Thanks again for your kind help. Regards, Xavier Hoenner ________________________________________ From: Duncan Murdoch [murdoch.dun...@gmail.com] Sent: Thursday, 16 May 2013 11:52 PM To: Xavier Hoenner Cc: r-help@r-project.org Subject: Re: [R] 3d interactive video using the rgl package On 16/05/2013 4:06 AM, Xavier Hoenner wrote: > Hi all, > > I've been using the 'rgl' package to visualise in 3d the water temperature > recorded by a glider deployed off the coast of Australia (see snapshot > attached). Using the writeWebGL function, I'm able to produce an html file of > the scene with which I can then interact (e.g. zoom in/out, rotate) in my web > browser. > > In R, I have created another scene that includes a loop plotting the > movements of the glider with the time. Is it possible to export that whole > animation with the writeWebGL function? I've only managed to export the scene > once all the points of my loop have been plotted, and the movie3d() function > is not really a good option for me as I would like to be able to interact > with my 3d animation in my web browser. > > Thanks in anticipation for your help. No, that's not currently supported. You could probably do it using Javascript in the web page produced by writeWebGL. I'm not sure whether it could be done entirely using the template argument, or whether you'd need to manually edit the writeWebGL output. If you put together something like this, please let me know. I'd like to see it. Duncan Murdoch > > Xavier > > ######################################################################################## > > Dr. Xavier Hoenner > > eMII Project Officer, Integrated Marine Observing System (IMOS) > > University of Tasmania, Sandy Bay campus, Maths Building, room 355, Private > Bag 21, Hobart, TAS 7001 > > Tel: +61 3 6226 1752<tel:%2B61%203%206226%201752>; Mob: +61 411 271 > 462<tel:%2B61%20411%20271%20462>; Fax: +61 3 6226 > 8575<tel:%2B61%203%206226%208575> > > Email: xavier.hoen...@utas.edu.au<mailto:xavier.hoen...@utas.edu.au>, URL: > http://imos.org.au/emii.html > > ######################################################################################## > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.