POV-Ray : Newsgroups : povray.windows : Clock Variable : Re: Clock Variable Server Time
28 Jul 2024 10:23:40 EDT (-0400)
  Re: Clock Variable  
From: Friedemann Schmidt
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

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