|
|
#!/bin/perl
$width=1024;
$height=768;
$slice=192;
$k=$height/$slice; # Must be an integer, no check done
for ($i = 0 ; $i < $k; $i++ ) {
$start = $i * $slice+1;
$end = ($i +1 ) * $slice;
$text = sprintf ("/Users/myuser/desktop/test/linux.pov +Linclude/ +FP
+H$height +W$width -D +SR%d +ER%d +0linux_%0.4d.ppm",$start,$end,$i) ;
print `echo "$text" > $i.ini`;
}
*************************
This little script should split a povray file into a bunch of little pieces
(ppm's), but I'm having problems with this line right here:
("/Users/myuser/desktop/test/linux.pov +Linclude/ +FP +H$height +W$width -D
+SR%d +ER%d +0linux_%0.4d.ppm",$start,$end,$i) ;
It first converts my pov file into a series of 4 ini files. Each of these
ini files will create a ppm file from a certain point in the image to
another point. I recieve this error on trying to render:
Scene File Parser Initialization Error: Reading from
'/Users/Optio/Desktop/testi
ng/linux.pov' is not permitted. Check the configuration in
'/Users/optio/.povra
y/3.6/povray.conf'.
Any ideas???
Post a reply to this message
|
|