|
![](/i/fill.gif) |
Le 2012/04/13 02:33, Le_Forgeron a écrit :
> Le 13/04/2012 07:44, logic nous fit lire :
>> hi
>>
>> $renderFile = 'test.pov';
>> $width = 640;
>> $height = 480;
>>
>> passthru("/usr/pov/povray-3.6/povray {$renderFile} +A2 +W{$width} +H{$height}
>> +UA +B1024 -FN", $content);
>>
>> i am not able to get output result, when executing code in a php page.
>>
>
> I do not know about 3.6, but in 3.7RC4 at least, -FN disables out to
> file. +FN provides a png file.
>
I think that it would be beter to place the flags in a master ini file,
like in the default: povray.ini
Remove +A2 +UA +B1024 -FN from the command line and add to your ini file:
; use antialias method 2, adaptive
+a2
; set antialias recursion depth to 3
+r3
; set output file to PNG
+fn
Unless you want or need your image to have transparency for the
background, you don't need +ua (use alpha).
As of version 3.6 onward, +bxxx (Output File Buffer) is useless and
silently ignored.
-fn suppress file output and set next render to PNG.
Alain
Post a reply to this message
|
![](/i/fill.gif) |