POV-Ray : Newsgroups : povray.binaries.images : New sig also Server Time
16 Nov 2024 02:25:18 EST (-0500)
  New sig also (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: James Taylor
Subject: New sig also
Date: 14 Mar 2003 18:38:39
Message: <3e7267ff@news.povray.org>
Creating (and shortening) sigs seems to have come back into fashion so heres
an attempt I cooked up this evening

jim
--
#macro _(j,M)#while(j<M)cylinder{0,y .1translate 5*z rotate 360/M*j*z
pigment{rgb<.6,.6,.8>/sqrt(j)}finish{ambient 1}}#local j=j+1;#end#end
#local i=0;#local N=20;_(1,N)#while(i<N)union{_(1,N) translate 2*y
rotate 360/N*i*z}#local i=i+1;#end//jim


Post a reply to this message


Attachments:
Download 'sig.jpg' (14 KB)

Preview of image 'sig.jpg'
sig.jpg


 

From: Greg Edwards
Subject: Re: New sig also
Date: 14 Mar 2003 22:17:48
Message: <678b8u6fcevn$.tu0ut300hd38$.dlg@40tude.net>
On Fri, 14 Mar 2003 23:36:58 -0000, James Taylor wrote:

> #macro _(j,M)#while(j<M)cylinder{0,y .1translate 5*z rotate 360/M*j*z
> pigment{rgb<.6,.6,.8>/sqrt(j)}finish{ambient 1}}#local j=j+1;#end#end
> #local i=0;#local N=20;_(1,N)#while(i<N)union{_(1,N) translate 2*y
> rotate 360/N*i*z}#local i=i+1;#end//jim

#macro _(j,M)#while(j<M)cylinder{z*5y+5*z.1rotate 360/M*j*z pigment{rgb 2
*(3+z)/sqrt(j)}}#local j=j+1;#end#end#local i=0;#local N=20;_(1N)#while
(i<N)union{_(1N)translate 2*y rotate 360/N*i*z}#local i=i+1;#end//jim

-- 
light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE


Post a reply to this message

From: Aaron
Subject: Re: New sig also
Date: 14 Mar 2003 22:40:51
Message: <3e72a0c3@news.povray.org>
hmmm are these the same?  If its different can you guys post small images to
go along with it to show the difference?

> > #macro _(j,M)#while(j<M)cylinder{0,y .1translate 5*z rotate 360/M*j*z
> > pigment{rgb<.6,.6,.8>/sqrt(j)}finish{ambient 1}}#local j=j+1;#end#end
> > #local i=0;#local N=20;_(1,N)#while(i<N)union{_(1,N) translate 2*y
> > rotate 360/N*i*z}#local i=i+1;#end//jim
>
> #macro _(j,M)#while(j<M)cylinder{z*5y+5*z.1rotate 360/M*j*z pigment{rgb 2
> *(3+z)/sqrt(j)}}#local j=j+1;#end#end#local i=0;#local N=20;_(1N)#while
> (i<N)union{_(1N)translate 2*y rotate 360/N*i*z}#local i=i+1;#end//jim



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.461 / Virus Database: 260 - Release Date: 10/03/03


Post a reply to this message

From: Greg Edwards
Subject: Re: New sig also
Date: 14 Mar 2003 23:48:57
Message: <w39uwh6zotkc$.1whubvwr7b9v7$.dlg@40tude.net>
On Sat, 15 Mar 2003 16:41:02 +1300, Aaron wrote:

> hmmm are these the same?  If its different can you guys post small images to
> go along with it to show the difference?
> 
>>> #macro _(j,M)#while(j<M)cylinder{0,y .1translate 5*z rotate 360/M*j*z
>>> pigment{rgb<.6,.6,.8>/sqrt(j)}finish{ambient 1}}#local j=j+1;#end#end
>>> #local i=0;#local N=20;_(1,N)#while(i<N)union{_(1,N) translate 2*y
>>> rotate 360/N*i*z}#local i=i+1;#end//jim
>>
>> #macro _(j,M)#while(j<M)cylinder{z*5y+5*z.1rotate 360/M*j*z pigment{rgb 2
>> *(3+z)/sqrt(j)}}#local j=j+1;#end#end#local i=0;#local N=20;_(1N)#while
>> (i<N)union{_(1N)translate 2*y rotate 360/N*i*z}#local i=i+1;#end//jim
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.461 / Virus Database: 260 - Release Date: 10/03/03

Nope, the results are identical. I just shortened the code for ya!

Shaved off another byte:
#macro _(j,M)#while(j<M)cylinder{z*5y+5*z.1rotate 360/M*j*z pigment{rgb 2
*(3+z)/sqrt(j)}}#local j=j+1;#end#end#local i=0;#local N=20;_(1N)#while
(i<N)union{_(1N)translate y*2rotate 360/N*i*z}#local i=i+1;#end//jim

-- 
light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE


Post a reply to this message

From: Mark Weyer
Subject: Re: New sig also
Date: 17 Mar 2003 06:27:52
Message: <3E75B450.5060609@informatik.uni-freiburg.de>
> #macro _(j,M)#while(j<M)cylinder{0,y .1translate 5*z rotate 360/M*j*z
> pigment{rgb<.6,.6,.8>/sqrt(j)}finish{ambient 1}}#local j=j+1;#end#end
> #local i=0;#local N=20;_(1,N)#while(i<N)union{_(1,N) translate 2*y
> rotate 360/N*i*z}#local i=i+1;#end//jim

#macro _(j,i,m)#while(j)cylinder{z*5y+5*z.1rotate j*z*18translate
m*2rotate i*z*18pigment{rgb<.6.6.8>/sqrt(j)}finish{ambient 1}}#local
j=j-1;#end#if(i)_(19i-1m)#end#end _(19,0,0)_(19,19y)//jim

I tried to convert both loops to recursion, but pov's limits are
reached easily.

-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message

From: ABX
Subject: Re: New sig also
Date: 17 Mar 2003 07:00:10
Message: <a2eb7v48cuffbo36qia1u0eljpp012mqg3@4ax.com>
On Mon, 17 Mar 2003 12:41:04 +0100, Mark Weyer
<wey### [at] informatikuni-freiburgde> wrote:

> <.6.6.8>

.6+z/5

ABX


Post a reply to this message

From: Andrew Coppin
Subject: Re: New sig also
Date: 17 Mar 2003 12:13:02
Message: <3e76021e@news.povray.org>
> > <.6.6.8>
>
> .6+z/5
>
> ABX

Genuis! 8-0


Post a reply to this message

From: ABX
Subject: Re: New sig also
Date: 17 Mar 2003 12:25:22
Message: <151c7vgmh5i8io5h7a1tc3qn8539s5tnpa@4ax.com>
On Mon, 17 Mar 2003 17:12:02 -0000, "Andrew Coppin" <orp### [at] btinternetcom>
wrote:
> > > <.6.6.8>
> > .6+z/5
> > ABX
> Genuis! 8-0

Have to trust you, no such entry in my dictionary ;-)

ABX


Post a reply to this message

From: Mark Weyer
Subject: Re: New sig also
Date: 18 Mar 2003 04:43:12
Message: <3E76ED49.2030907@informatik.uni-freiburg.de>
>><.6.6.8>
> 
> .6+z/5

But that was <.6.6.8>/sqrt(j), so shouldn't it be (.6+z/5)/sqrt(j),
saving no chars?

-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message

From: ABX
Subject: Re: New sig also
Date: 18 Mar 2003 04:50:03
Message: <4lqd7vo3s2gc7ksmvn05a5u5leapdbkclq@4ax.com>
On Tue, 18 Mar 2003 10:56:25 +0100, Mark Weyer
<wey### [at] informatikuni-freiburgde> wrote:

> (.6+z/5)/sqrt(j)

(3+z)/5/sqrt(j)

:-)

ABX


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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