POV-Ray : Newsgroups : povray.windows : Clock Variable Server Time
24 Nov 2024 14:01:55 EST (-0500)
  Clock Variable (Message 1 to 3 of 3)  
From: David Vincent-Jones
Subject: Clock Variable
Date: 24 Mar 1999 18:46:22
Message: <36f9794e.0@news.povray.org>
Can a 'clock' function be included in a '#declare' line?
The results that I am getting do not appear to be calculating correctly.

Is there a way to look at the output of a POV calculation. For instance, an
easy way to show it on the output screen?


Post a reply to this message

From: Friedemann Schmidt
Subject: Re: Clock Variable
Date: 24 Mar 1999 20:15:51
Message: <MPG.1163ac53a6e5f572989681@news.povray.org>
> Can a 'clock' function be included in a '#declare' line?

Yes...

> Is there a way to look at the output of a POV calculation. For instance, an
> easy way to show it on the output screen?

  #declare i = 1.234;
  #debug concat("i = ", str(i, 0, -1), "\n")

For a vector you could use a macro like this:

  #macro VectorString(P, Precision)
    concat("<",
      str(P.x, 0, Precision),
      ", ",
      str(P.y, 0, Precision),
      ", ",
      str(P.z, 0, Precision),
      ">")
  #end

  ...

  #declare V = <1,2,3>
  #debug concat("V = ", VectorString(V, -1), "\n")

See "String Functions" and "Text Message Streams" of the POV-Ray 
documentation.

Bye,
Friedemann

-- 
Friedemann Schmidt
F.S### [at] fhtw-berlinde
Raytracing-Gallery: http://home.fhtw-berlin.de/~s0049669/
TextureView: http://home.fhtw-berlin.de/~s0049669/software.html


Post a reply to this message

From: Markus Becker
Subject: Re: Clock Variable
Date: 26 Mar 1999 10:53:35
Message: <36FBAE17.E3A5F864@zess.uni-siegen.de>
David Vincent-Jones wrote:
> 
> Can a 'clock' function be included in a '#declare' line?

Yes it can, but...

> The results that I am getting do not appear to be calculating correctly.

It's only calculated when the #declare is parsed.
When you invoke the #declared value, it is not parsed
again. You'ld have to use a #macro for that.

Markus
-- 

 Ich nicht eine Sekunde!!!" H. Heinol in Val Thorens


Post a reply to this message

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