POV-Ray : Newsgroups : povray.newusers : Need help with a povray command... : Need help with a povray command... Server Time
29 Jul 2024 20:18:08 EDT (-0400)
  Need help with a povray command...  
From: Stuart
Date: 26 Feb 2005 14:30:01
Message: <web.4220cd21b888af1ba604cfa70@news.povray.org>
#!/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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.