POV-Ray : Newsgroups : povray.advanced-users : povray output is not showing on php page : Re: povray output is not showing on php page Server Time
26 Jun 2024 08:38:48 EDT (-0400)
  Re: povray output is not showing on php page  
From: Alain
Date: 13 Apr 2012 18:11:44
Message: <4f88a4a0@news.povray.org>
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

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