|
|
> 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
|
|
|
|
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
|
|