Hi,
I am working with VTKVisualizer to visualize the behavior of the system. I am wondering if there is a way to save it as a movie. (I ask this, since I want to compare the behavior of the two systems qualitatively.)
Thank you in advance for your time and help.
Regards
VTKVisualizer
- Michael Sherman
- Posts: 807
- Joined: Fri Apr 01, 2005 6:05 pm
RE: VTKVisualizer
Hi, Mohammad.
The VTKVisualizer doesn't have a built-in movie making ability. (I think VTK does, though, so it would be great if you or someone else wants to add one!)
However, I have successfully made movies with VTKVisualizer two ways: (1) save the State values as they are generated (in and std::vector<State>, for example). Then at the end of your simulation play them back through the VTKVisualizer's report(State) method. (2) Use a screen capture program like Camtasia to grab the movie as it is playing on your screen.
Option (1) is very easy if it is sufficient but requires your program to be running to play the movie. Option (2) is a little more involved but gives you a movie file at the end. Best would be option (0), add movie making to the visualizer -- any interest in doing that?
Regards,
Sherm
The VTKVisualizer doesn't have a built-in movie making ability. (I think VTK does, though, so it would be great if you or someone else wants to add one!)
However, I have successfully made movies with VTKVisualizer two ways: (1) save the State values as they are generated (in and std::vector<State>, for example). Then at the end of your simulation play them back through the VTKVisualizer's report(State) method. (2) Use a screen capture program like Camtasia to grab the movie as it is playing on your screen.
Option (1) is very easy if it is sufficient but requires your program to be running to play the movie. Option (2) is a little more involved but gives you a movie file at the end. Best would be option (0), add movie making to the visualizer -- any interest in doing that?
Regards,
Sherm
- M Ali Poursina
- Posts: 23
- Joined: Tue Jan 27, 2009 9:00 am
RE: VTKVisualizer
Hi Sherm,
Thanks for your response. For the time being, we are using display.report(state) to provide the movie. But at some point, I may work on option (0), since we dont want to compare two diffrent case and running their simulations simoltanously.
Thanks again.
Thanks for your response. For the time being, we are using display.report(state) to provide the movie. But at some point, I may work on option (0), since we dont want to compare two diffrent case and running their simulations simoltanously.
Thanks again.