POV-Ray : Newsgroups : povray.general : Can anyone shorten this sig? Server Time
6 Aug 2024 02:25:16 EDT (-0400)
  Can anyone shorten this sig? (Message 7 to 16 of 16)  
<<< Previous 6 Messages Goto Initial 10 Messages
From: Tom Melly
Subject: Re: Can anyone shorten this sig?
Date: 18 Jul 2002 17:37:50
Message: <3d37352e@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...

> Parse time is slightly worse, because I removed the short-circuit on the
inner
> (V) loop, but the results are the same...
>
> #local T=-2;#while(T<2)#local U=2;#while(U>-2)#macro
M(X,Y,V,W)#while(V<9)#local
> Z=X;#local X=X*X-Y*Y+U;#local Y=2*Z*Y+T;#if(X*X+Y*Y>4)#local
W=0;#end#local V=V+
> 1;#end#if(W)#macro L(S)box{0,.02 pigment{rgb 9}translate<T+S,U+1,6>}#end
L(-2)L(
> 0)L(1)L(2)#end#end M(-U,-T,0,1)#local U=U-.03;#end#local T=T+.05;#end//Tom
Melly
>

Looking at this in detail, the use of a constant passed to a macro puzzled
me, until I realised it saves on #locals. It makes sense if you can save on
2 or more of 'em.


Post a reply to this message

From: Tom Melly
Subject: Re: Can anyone shorten this sig?
Date: 18 Jul 2002 17:38:54
Message: <3d37356e$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3d36f9a2@news.povray.org...
>
>   Of course you could do it this way. Besides being shorter, it's quite
> faster:

<snip>

cheater....


Post a reply to this message

From: Warp
Subject: Re: Can anyone shorten this sig?
Date: 18 Jul 2002 17:56:16
Message: <3d37397e@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
> cheater....

  Why using a builtin function is cheating?-)

-- 
#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: Tom Melly
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 04:49:30
Message: <3d37d29a$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3d37397e@news.povray.org...
> Tom Melly <tom### [at] tomandlucouk> wrote:
> > cheater....
>
>   Why using a builtin function is cheating?-)
>

It's like using a bottom double.


Post a reply to this message

From: Tom Melly
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 04:53:34
Message: <3d37d38e@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...

> > Ta - btw when are you coming over to the UK again? (v.soon iirc).
>
> Actually, I'm not going to make it.  (and I've never actually been there
> before, either.)

Sorry, that's "again" as in "I forgot, can you tell me again", not "again" as in
"they're letting you back in?"

Shame - what happened?


Post a reply to this message

From: Ron Parker
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 09:56:41
Message: <slrnajg6kr.ui4.ron.parker@fwi.com>
On Fri, 19 Jul 2002 09:53:33 +0100, Tom Melly wrote:
> Shame - what happened?

Mainly we just decided it wasn't in the budget this year due to some somewhat
unexpected expenses (taxes...)

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

From: Warp
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 10:45:09
Message: <3d3825f4@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
>>   Why using a builtin function is cheating?-)

> It's like using a bottom double.

  Why do it yourself when you can make POV-Ray to do it for you?

-- 
#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: Tom Melly
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 12:11:46
Message: <3d383a42@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3d3825f4@news.povray.org...
> Tom Melly <tom### [at] tomandlucouk> wrote:
> >>   Why using a builtin function is cheating?-)
>
> > It's like using a bottom double.
>
>   Why do it yourself when you can make POV-Ray to do it for you?
>

same reason you don't use 3dsmax?


Post a reply to this message

From: Warp
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 16:18:16
Message: <3d387408@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
>>   Why do it yourself when you can make POV-Ray to do it for you?

> same reason you don't use 3dsmax?

  Does 3dsmax have a mandelbrot pattern? And how it is easier to use in
3 lines of code?

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Can anyone shorten this sig?
Date: 19 Jul 2002 21:58:31
Message: <Xns925127DB13968raf256com@204.213.191.226>
"Tom Melly" <tom### [at] tomandlucouk> wrote in news:3d383a42@news.povray.org

>>   Why do it yourself when you can make POV-Ray to do it for you?
> same reason you don't use 3dsmax?

3dsmax is quite expenive ;) and - imho pov engine is better in some 
catogories


-- 

> A jedyne co czytam, ze to terrorysci internetowi z echelonu planuja
> kolejny atak na centrale TPSA
- Expert vel Jacek (obecnie gol### [at] pocztaonetpl)


Post a reply to this message

<<< Previous 6 Messages Goto Initial 10 Messages

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