|
|
how can I flush #debug stream, so i.e.
#debug "."
will NOT wait until next "\n" ?
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
|
|
|
In article <Xns### [at] 204213191226>, "Rafal 'Raf256' Maj"
<raf### [at] raf256com> wrote:
> how can I flush #debug stream, so i.e.
> #debug "."
> will NOT wait until next "\n" ?
POV-Ray will always flush the output to a file. It will never flush the
output to the screen.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
|
|
Rafal 'Raf256' Maj wrote:
> how can I flush #debug stream, so i.e.
> #debug "."
> will NOT wait until next "\n" ?
>
It sounds as if you want to do some kind of mock "progress bar"
type thing in your #debug stream? That is, something like:
Calculating........
Where the number of dots increases as the calculation progresses?
If so, it's possible the '\r' escape sequence will help. I've used
it to return to the beginning of a line w/o line feed for some
projects, so what you would do is #declare a string (let's call
it "dMessage") containing the string "Calculating.." Each pass
through concat a ".", then do...
#debug concat("\r",dMessage)
--
@C[$F];
The Silver Tome :: http://www.silvertome.com
"You may sing to my cat if you like..."
Post a reply to this message
|
|