POV-Ray : Newsgroups : povray.newusers : A better scene Server Time
14 Nov 2024 18:19:43 EST (-0500)
  A better scene (Message 1 to 5 of 5)  
From: Dinesh Shah
Subject: A better scene
Date: 19 Feb 1998 08:48:17
Message: <34f13417.0@news.povray.org>
Hi,

It is possible create same object with slightly deferent code. as u can see
from bellow

case 1:
    plane
    {    y, -5
         pigment { checker White, Black }
         scale <5,1,5>
         rotate 45*y
    }

case 2:
    plane
    {    y, -5
         pigment { checker White, Black scale 5 rotate 45*y }
     }

Both code will produce same result. In that case which is better?
Or which renders faster, if faster at all?
--
Dinesh Shah :-)
din### [at] indiamailcom


Post a reply to this message

From: Lance Birch
Subject: Re: A better scene
Date: 23 Feb 1998 16:07:48
Message: <34f1e5a0.0@news.povray.org>
Generally speaking there shouldn't be too much of a speed difference in
rendering although technically I think:

plane
    {    y, -5
         pigment { checker White, Black scale 5 rotate 45*y }
     }

is faster because it's only rotating the texture and not the object.

--
Lance Birch
Remove the smiley to e-mail.
http://www1.tpgi.com.au/users/ambient/lance


Post a reply to this message

From: Dinesh Shah
Subject: Re: A better scene
Date: 24 Feb 1998 03:24:34
Message: <34f3e485.0@news.povray.org>
Hi Birch

Thanks for the answer

I will look at the difference in more complex scenes

thanks

Dinesh Shah :-)
din### [at] indiamailcom

Lance Birch <:-)Lan### [at] tpgicomau> wrote in message
<34f1e5a0.0@news.povray.org>...
>Generally speaking there shouldn't be too much of a speed difference in
>rendering although technically I think:
>
>plane
>    {    y, -5
>         pigment { checker White, Black scale 5 rotate 45*y }
>     }
>
>is faster because it's only rotating the texture and not the object.
>
>--
>Lance Birch
>Remove the smiley to e-mail.
>http://www1.tpgi.com.au/users/ambient/lance
>
>


Post a reply to this message

From: Jan Ludewig
Subject: Re: A better scene
Date: 1 May 1999 06:27:38
Message: <372AC8F0.1C97E900@gmx.net>
Dinesh Shah schrieb:

> case 1:
>     plane
>     {    y, -5
>          pigment { checker White, Black }
>          scale <5,1,5>
>          rotate 45*y
>     }

You scale the object and rotate it WITH the pigment on it

> case 2:
>     plane
>     {    y, -5
>          pigment { checker White, Black scale 5 rotate 45*y }
>      }

You scale the pigment and rotate it WIHTOUT the plane itself, so this should be
faster but:
It only works as a plane is infinite, try this with a box and you'll get
different results.


Post a reply to this message

From: Blake Ranolph
Subject: Re: A better scene
Date: 21 May 1999 05:06:21
Message: <3745158D.21399B40@verio.com>
Dinesh Shah wrote:
> 
> Hi,
> case 2:
>     plane
>     {    y, -5
>          pigment { checker White, Black scale 5 rotate 45*y }
>      }
> Both code will produce same result. In that case which is better?
> Or which renders faster, if faster at all?

Case 2 will parse faster.  But not to a significant ammount that you
will notice anything.
(BTW, case 1 says scale <5,1,5> and scale 5 is the same as <5,5,5>)

oo o  o   (   (  ( (=-- inf### [at] veriocom --=) )  )   )   o  o oo


Post a reply to this message

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