|
Hello group,
I am trying to create a movie of how a 2D-function gets sampled
at various random points and then save this movie to a file that
can be played with a software movie player.
My best attempt so far is at
http://www.cs.kuleuven.be/~bartv/stuff/create_sampling_movie.m
but there are still some issues:
1) The rotation of the plotted surface looks weird and unnatural.
How can I make it look more natural? I am currently moving the
camera around the surface. Could it be better to fix the camera
and rotate the surface? If 'yes', how do I do that?
2) There are some issues with the creation of the .avi file.
Sometimes it looks OK, sometimes it doesn't and the movie is
corrupted. I think it has something to do with the getframe
commands I am using (changing 'getframe(gcf)' to 'getframe'
sometimes helped) but I could not isolate the problem and make it
reproducible. Does anybody see what I'm doing wrong?
Thanks,
Bart
--
"Share what you know. Learn what you don't."
|