![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Andrew the Orchid nous apporta ses lumieres ainsi en ce 2004-11-08
17:22... :
>
>
> Andrew.
>
> PS. Annoying that I have to put the underscores on those variable
> names... grrr!
Use Upercase then you don't need those underscores.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <418fe747$1@news.povray.org>,
Tor Olav Kristensen <tor### [at] TOBEREMOVEDgmail com> wrote:
> Inverse trigonometric operations are slow.
In POV, the difference between an inverse trig operation and any other
operation is likely to be overwhelmed by the overhead of parsing the
script. Code that is simpler to parse is likely to be faster.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Christopher James Huff wrote:
> In article <418fe747$1@news.povray.org>,
> Tor Olav Kristensen <tor### [at] TOBEREMOVEDgmail com> wrote:
>
>
>>Inverse trigonometric operations are slow.
>
>
> In POV, the difference between an inverse trig operation and any other
> operation is likely to be overwhelmed by the overhead of parsing the
> script. Code that is simpler to parse is likely to be faster.
Yes, I know.
I thought it was a general mathematic question.
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> PS. Annoying that I have to put the underscores on those variable
>> names... grrr!
>
>
> Use Upercase then you don't need those underscores.
The idea is to use upercase for vectors and lowercase for scalars...
But yes, that would also work of course.
Andrew.
(I understand not being able to use "x", "y" and "z", but "t"? That's
not even *valid* as a token by itself...)
Also vaguely irritating is the need to wrap Boolean assignments with
brackets, but still...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 09 Nov 2004 20:14:17 +0000, Andrew the Orchid <voi### [at] dev null> wrote:
> (I understand not being able to use "x", "y" and "z", but "t"? That's
> not even *valid* as a token by itself...)
http://www.povray.org/documentation/view/3.6.1/229/
VECTOR_BUILT-IN_IDENT:
x | y | z | t | u | v
and later
2.2.1.4.3 Operators
and then try
#declare V=<1,2,3,4>;
#declare Vt=V.t;
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>>(I understand not being able to use "x", "y" and "z", but "t"? That's
>>not even *valid* as a token by itself...)
>
>
> http://www.povray.org/documentation/view/3.6.1/229/
>
> VECTOR_BUILT-IN_IDENT:
> x | y | z | t | u | v
>
> and later
>
> 2.2.1.4.3 Operators
>
> and then try
>
> #declare V=<1,2,3,4>;
> #declare Vt=V.t;
Oh, sure... V.t is a perfectly valid expression. But - unlike "x" / "y"
/ "z", "t" by itself isn't a valid expression.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 09 Nov 2004 20:22:17 +0000, Andrew the Orchid <voi### [at] dev null> wrote:
> Oh, sure... V.t is a perfectly valid expression. But - unlike "x" / "y"
> / "z", "t" by itself isn't a valid expression.
Look later into "2.2.1.4.6 Built-in Constants"
All built-in vector identifiers never change value. They are defined as though
the following lines were at the start of every scene.
#declare x = <1, 0, 0>;
#declare y = <0, 1, 0>;
#declare z = <0, 0, 1>;
#declare t = <0, 0, 0, 1>;
#declare u = <1, 0>;
#declare v = <0, 1>;
ABX
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> #declare t = <0, 0, 0, 1>;
> #declare u = <1, 0>;
> #declare v = <0, 1>;
Well... you learn something every day... I never knew you could do that...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |