animation

;
•kpovmodeler doesn't support animations but with a few simple workarounds it's possible to create the object in kpovmodeler and not too difficult to render it with povray. for this page i'm using friedrich a. lohmuellers excellent animation tutorial for pov-ray which can be found here, http://www.f-lohmueller.de/pov_tut/animate/anim1e.htm

•you will need to have kpovmodelr installed and povray and the gimp.
• to begin with create a new directory or folder on your hardrive, here you will save the .pov file you create and the .ini file and from here excute the render

• launch kpovmodeler and this time, do not delete the green box :)but scale it to 0.5

•insert three declararions into the scene one for the pigment rgb 1,0,0, one for the skysphere rgb 1, and one for the finish, diffuse 0.5, phong1 (for a more detalied description of how to create declarations please refer to blob.html)

• insert a skysphere

• your object tree should now look like this.
tree_1.jpeg
• take a look at f.lohmuellers script for the sphere1.pov file, you will see that his sphere requires a translation of 1.0,0,0 and a rotation value of 0,360*clock, 0. clicking on our rotate transformation of the sphere we see there is no cell to incorperate the rotate value, we overcome this by deleting the rotate transformation and inserting from the menu a raw povray action, into this we type the rotate value, like so

•note that the translate transformation must be above the rotate script and that the values are 1,0.5,0 for the box (slightly differnt,than the sphere as a quick render revealed the box needed to be a bit higher in the picture than a sphere)

rotate.jpeg
• set the image size of your animation render by clicking on view/render modes, a menu window will open, select add and then edit ans input the values 160 and 120, and click okay

• check that your new render size is selected before closing the window

•save the file as a povray file to the folder you have created by clicking on 'export',save as box1.pov

render2.jpeg
• then we need to create an animation.ini file, a file which contains the information povrays rendering engine needs.

•open a text editor and type in or copy and paste the opposite values:

• save the file to your new folder with the name box1.ini.
;POV-Ray animation ini file
Antialias=Off
Antialias_Threshold=0.1
Antialias_Depth=2
Input_File_Name=box1.pov
Initial_Frame=1
Final_Frame=30
Initial_Clock=0
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off

rendering

• locate your files on the hardrive and open a terminal window

• type in the command;
povray box1.ini
and you'll see the screen fill up quite quickly with the renderd images.
rendered_png.jpeg

making the gif

• launch the gimp and open the first of the renders

• on the image go to file and select 'open as layer'

• selcet the layers by ensuring the top image is highlighted and, holding the shift key down, select the last render, click okay and all images will load as layers into the first picture.
box.jpeg
• select filters/animation/optimise for gif

• and then save as box.gif, be sure to select 'save as animation' in the export file window.
box.gif