POV-Ray : Newsgroups : povray.binaries.images : yet another iso Server Time
31 Jul 2024 14:20:44 EDT (-0400)
  yet another iso (Message 1 to 7 of 7)  
From: H  Karsten
Subject: yet another iso
Date: 18 Oct 2009 02:40:01
Message: <web.4adab74e65126807da6353d60@news.povray.org>
nice iso
here the formular:
  2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3
  contained_by{box{-1.2,1.2}}
  threshold -.2

rendered with cm-pov

H.Karsten


Post a reply to this message


Attachments:
Download 'iso.prev.jpg' (17 KB)

Preview of image 'iso.prev.jpg'
iso.prev.jpg


 

From: LightBeam
Subject: Re: yet another iso
Date: 18 Oct 2009 12:38:09
Message: <4adb4471@news.povray.org>
Nice one, I love this render :-)


> nice iso
> here the formular:
>   2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3
>   contained_by{box{-1.2,1.2}}
>   threshold -.2
> 
> rendered with cm-pov
> 
> H.Karsten
> 
> 
> ------------------------------------------------------------------------
>


Post a reply to this message

From: Alain
Subject: Re: yet another iso
Date: 18 Oct 2009 19:39:15
Message: <4adba723$1@news.povray.org>

> nice iso
> here the formular:
>   2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3
>   contained_by{box{-1.2,1.2}}
>   threshold -.2
> 
> rendered with cm-pov
> 
> H.Karsten
> 
> 
> ------------------------------------------------------------------------
> 
Nice little box.

I remenber a tread where it was said that "pow(x,2)" is faster than 
"x*x". It may only be due to the fact that the variable is evaluated 
only once, but it seems to be faster.

So, if you rewrite:
2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3

As:
2*(pow(x,2)*pow((3-4*pow(x,2),2)+pow(y,2)*pow((3-4*pow(y,2),2)+pow(z,2)*pow((3-4*pow(z,2),2)-3

You should get a performance improvement.



Alain


Post a reply to this message

From: William Pokorny
Subject: Re: yet another iso
Date: 18 Oct 2009 21:05:01
Message: <web.4adbba645de7d548331f34c90@news.povray.org>
Cool, I very much like it.

Though I have apparently missed what cm-pov is and could not turn it up in a
quick search ?

Bill

"H. Karsten" <h-karsten()web.de> wrote:
> nice iso
> here the formular:
>   2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3
>   contained_by{box{-1.2,1.2}}
>   threshold -.2
>
> rendered with cm-pov
>
> H.Karsten


Post a reply to this message

From: nemesis
Subject: Re: yet another iso
Date: 19 Oct 2009 00:15:01
Message: <web.4adbe7b15de7d5487cca2a2e0@news.povray.org>
"William Pokorny" <pokorny_epix_net> wrote:
> Cool, I very much like it.
>
> Though I have apparently missed what cm-pov is and could not turn it up in a
> quick search ?

it's a typo for mc-pov, an unbiased extension to povray:

http://pagesperso-orange.fr/fidos/MCPov/MCPov.html


Post a reply to this message

From: clipka
Subject: Re: yet another iso
Date: 19 Oct 2009 01:31:10
Message: <4adbf99e$1@news.povray.org>
Alain schrieb:

> I remenber a tread where it was said that "pow(x,2)" is faster than 
> "x*x". It may only be due to the fact that the variable is evaluated 
> only once, but it seems to be faster.

That may well be indeed. I never thought about it, but it seems 
plausible, as each reference to a variable requires a hashtable lookup, 
as well as checking whether the value is indeed a scalar value. With 
SSE2, a pow() computation may be able to beat that overhead.


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: yet another iso
Date: 19 Oct 2009 13:29:05
Message: <4adca1e1@news.povray.org>
Alain wrote:

>> nice iso
>> here the formular:
>>   2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3

>>   contained_by{box{-1.2,1.2}}
>>   threshold -.2
>>
>> rendered with cm-pov
>>
>> H.Karsten
>>
>>
>> ----------------------------------------------------------------------
--
>>
> Nice little box.
> 
> I remenber a tread where it was said that "pow(x,2)" is faster than 
> "x*x". It may only be due to the fact that the variable is evaluated 
> only once, but it seems to be faster.
> 
> So, if you rewrite:
> 2*(x*x*pow((3-4*x*x),2)+y*y*pow((3-4*y*y),2)+z*z*pow((3-4*z*z),2))-3
> 
> As:
> 2*(pow(x,2)*pow((3-4*pow(x,2),2)+pow(y,2)*pow((3-4*pow(y,2),2)+pow(z,2)
*pow((3-4*pow(z,2),2)-3 
> 
> 
> You should get a performance improvement.
> 
	Plus, you can factor it some more and save three calls to pow:
2*(pow(x*(3-4*pow(x,2)),2)+pow(y*(3-4*pow(y,2)),2)+pow(z*(3-4*pow(z,2)),2
))-3 


		Jerome
-- 
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

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