POV-Ray : Newsgroups : povray.general : POV-Ray Quiz Server Time
4 Aug 2024 16:08:21 EDT (-0400)
  POV-Ray Quiz (Message 12 to 21 of 31)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Gena
Subject: POV-Ray Quiz for Intermediate Users
Date: 3 Jun 2003 20:49:26
Message: <3EDD4217.83B3A431@mail.com>
Parsing time will be shorter if you use:

a. separate trasnformation operations - scale, rotate and translate
b. one transformation block - transform{scale x*n rotate y*m translate z*k}

c. matrix


Post a reply to this message

From: Warp
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 4 Jun 2003 19:45:02
Message: <3ede847e@news.povray.org>
Gena <obu### [at] mailcom> wrote:
> Parsing time will be shorter if you use:

> a. separate trasnformation operations - scale, rotate and translate
> b. one transformation block - transform{scale x*n rotate y*m translate z*k}
> c. matrix

  Have you actually measured which of those is fastest?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 4 Jun 2003 21:27:56
Message: <cjameshuff-461A81.20204204062003@netplex.aussie.org>
In article <3EDD4217.83B3A431@mail.com>, Gena <obu### [at] mailcom> wrote:

> Parsing time will be shorter if you use:
> 
> a. separate trasnformation operations - scale, rotate and translate
> b. one transformation block - transform{scale x*n rotate y*m translate z*k}
> c. matrix

The answers are vaguely worded, so it is unclear what exactly they mean, 
and the topic...there won't be enough of a difference to matter.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Gena Obukhov
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 4 Jun 2003 22:04:44
Message: <3EDEA360.7AC555F3@mail.com>
> Well, I don't want to post answers here :) I only measured difference between a
> and b.
> For b and c I rely on documentation - 6.3.4 Transform Identifiers (see bottom
> part).

In case of c) it would be more correct to say:
c. separate matrix for scale, rotate and translate.

Because I think one combined transformation matrix should have the same
performance as 'transform'. Please correct me if I'm wrong :)

Gena.


Post a reply to this message

From: Gena Obukhov
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 4 Jun 2003 22:07:27
Message: <3EDEA404.2DAF4784@mail.com>
Christopher James Huff wrote:

> The answers are vaguely worded, so it is unclear what exactly they mean,

Feel free to correct, add and modify everything :)

> and the topic...there won't be enough of a difference to matter.

Do you mean that just one category will be enough?

Gena.


Post a reply to this message

From: Warp
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 4 Jun 2003 22:41:47
Message: <3edeadeb@news.povray.org>
Gena Obukhov <obu### [at] mailcom> wrote:
>> and the topic...there won't be enough of a difference to matter.

> Do you mean that just one category will be enough?

  I think that he meant that the difference in parsing time between the
given transformation syntaxes are so minimal that in practice it isn't
a big deal. (And as we know, the difference in rendering time, which is
usually the most important issue, is non-existent.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Gena Obukhov
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 5 Jun 2003 01:20:02
Message: <3EDED126.4A26D823@mail.com>
Warp wrote:

>   I think that he meant that the difference in parsing time between the
> given transformation syntaxes are so minimal that in practice it isn't
> a big deal. (And as we know, the difference in rendering time, which is
> usually the most important issue, is non-existent.)

I posted some sources to p.b.s.-f. newsgroup (transform test). Try to
render that scene with two different macros: 'tomtree.inc' and 'tomtreet.inc'
The only difference between these two macros is 'transform'. The scene which
uses macro with 'transform' (tomtreet.inc) renders 6-7 times faster.

Gena.


Post a reply to this message

From: ABX
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 5 Jun 2003 04:16:38
Message: <ajutdv0ubie5k07cuc6gcglcjmajgend6h@4ax.com>
On Wed, 04 Jun 2003 18:56:49 -0700, Gena Obukhov <obu### [at] mailcom> wrote:

>> Well, I don't want to post answers here :) I only measured difference between a
>> and b.
>> For b and c I rely on documentation - 6.3.4 Transform Identifiers (see bottom
>> part).
>
>In case of c) it would be more correct to say:
>c. separate matrix for scale, rotate and translate.
>
> Because I think one combined transformation matrix should have the same
> performance as 'transform'. Please correct me if I'm wrong :)

Simple transformation written directly in modifiers, as

  scale 2
  translate x

means 4 tokens to be parsed, while enclosed by transform

  transform{
    scale 2
    translate x
  }

means 7 tokens to be parsed, while written as matrix

  matrix <2,0,0,0,2,0,0,0,2,1,0,0>

means 26 tokens to be parsed. So all together difference might be not that
simple as it may look. They are rather other benefits from using one method or
another.

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 5 Jun 2003 09:58:30
Message: <3edf4c86$1@news.povray.org>
In article <3ede847e@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>> a. separate trasnformation operations - scale, rotate and translate
>> b. one transformation block - transform{scale x*n rotate y*m translate z*k}
>> c. matrix
>
>   Have you actually measured which of those is fastest?

Does it matter? ;-)  If you want, I can make any of these the fastest! ;-)

    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

From: Warp
Subject: Re: POV-Ray Quiz for Intermediate Users
Date: 5 Jun 2003 10:21:53
Message: <3edf5201@news.povray.org>
Gena Obukhov <obu### [at] mailcom> wrote:
> The scene which
> uses macro with 'transform' (tomtreet.inc) renders 6-7 times faster.

  You don't mean it parses 6-7 times faster?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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