kevinwolz / hisafer

An R toolbox for the Hi-sAFe biophysical agroforestry model
6 stars 4 forks source link

Create root structure animation #115

Open kevinwolz opened 5 years ago

kevinwolz commented 5 years ago

Create a wrapper for hisafe_root3D() to export daily images that can be strung together as a video - analagous to hisafe_snapshot() for hisafe_slice(). The major hurdle for creating this function is that the rgl window that hisafe_root3D() produces does not have a great default view of the root system, and the ideal view angle is totally dependent on the root system itself.

Perhaps, this function can be interactive?? It could create one image, have you adjust the viewing angle/size on the screen, and then create all the remaining images in this fashion. Alternatively, the function could just have viewport parameters as an input, and the user would have to use trial-and-error on just 1-2days. Once they got it write, they could apply it to the whole sequence. However, this trial-and-error would probably have to be done on the largest root system of the sequence.

OR, perhaps there is an rgl function specifically for creating videos, where Date can be provided as a tie variable?