-
Notifications
You must be signed in to change notification settings - Fork 37
POV Ray Result Files
The .pov files written by iDynoMiCS may be rendered into images individually by right-clicking on the file in an explorer window and selecting the Render command. (That this command is available of course requires that POV-Ray was installed correctly.) You may render multiple files sequentially in the same manner simply by selecting more than one command before selecting Render.
However, these files may also be rendered using a few Matlab routines. To use these routines, you must first open the getProgramPath.m file located in the iDynoMiCS\results_analysis_matlab\routines_2d\utilities directory and edit the paths to the Pov-Ray, QuietPOV, and ImageMagick software installations to match your computer’s configuration (where you installed the software). The example locations already in the file should give you an idea what the paths on your system might be.
After editing this Matlab file, you may create images from the .pov files using the createPics command, for example with a call such as:
createPics(‘all’)
Passing in the all argument will render images for all .pov files in the current directory, and if none are present will first unzip the povray.zip file to create the files. This routine will also accept last or a number in order to render the last iterate or a particular iterate, respectively.
To make a movie from the .pov files, use the createMovie routine. For example, use the following command:
createMovie(‘myMovie.gif’)
where myMovie.gif is the name of the output movie file. Running the command like this will first create images from the .pov files (using createPics('all’)), but if you have previously rendered the images you may instead pass in ‘true’ for the second argument to use the already existing files:
createMovie(‘myMovie.gif’, ‘true’)
This routine will produce movie file formats ending in .gif, .avi, and .mpg. To produce a different output format simply change the name passed into the routine, for example:
createMovie(‘myMovie.avi’)
If a simulation has been run and you would like to change the color of one or more species in the POV-Ray files (for example if you mistakenly set two species to be the same color), you may edit the sceneheader.inc file and change the RGB components of the colors declared for each species.