 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Anton Sherwood wrote:
> Because tau is irrational (in a sense the most irrational number)
Forgive my ignorance, but in what sense? And does your computer know that? (As far as
my computer is concerned, it usually hates when I talk about irrational numbers, it
makes it feel kinda inferior... ;)
> In the first image it's a bit turbled.
Nice pics :)
--
#local j=text{ttf"arial""JRG".2,0}#local J=0;#while(J<10)#local R=0;#while
(R<2)#local G=0;#while(G<1)#if(inside(j<R,G.1>))object{j scale.025translate
<R-1G-J/20J/-40+2>pigment{rgb<9J>}}#debug"O"#else#debug" "#end#local G=G+
.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG
Home: http://digilander.iol.it/jrgpov //New: Kitchen scene WIP
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
(That was quick! I thought I'd have to wait weeks for my cue.)
> Anton Sherwood wrote:
> > ... tau is irrational (in a sense the most irrational number) ...
JRG wrote:
> Forgive my ignorance, but in what sense?
In the sense that the rational approximations to it
converge most slowly.
Every real number can be expressed as a continued fraction:
x = a0 + 1/(a1 + 1/(a2 + 1/(a3 + 1/(a4 + 1/( ... )))))
where each a is a positive integer (except that a0 may be zero or
negative). If x is rational, the sequence {a} is finite; conversely,
if you truncate the sequence, you get a rational number.
Now, it's obvious that the residue 1/(ai + ...) is somewhere
between 1/ai and 1/(ai+1), right? Which implies that if ai is
high, the error in cutting off the sequence before ai is small.
Example. The sequence for pi begins 3,7,15,1,292 ...
So the rational approximations to pi are:
(3) 3/1 3.0
(7) 22/7 3.143
(15) 333/106 3.14151
(1) 355/113 3.1415929 : pretty good!
(292) 103993/33102 3.141592653
...
(Which is why the knot you just saw is a union of 355 spheres.)
To make the error at each step as big as it can be, you pick the
smallest possible integers for {a}, i.e. all 1. What does that give?
x = 1 + 1/(1+ 1/(1+ 1/(1+ 1/(1+ 1/(1+ ...))))
x = 1 + 1/x
x^2 = x + 1
This quadratic has one positive root: (1+sqrt(5))/2, called tau,
the golden ratio. (Also called phi, but I use phi for angles.)
--
Anton Sherwood -- http://www.ogre.nu/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Aah, the golden ratio. I always thought of it just as the number to which the ratio
between two consequential numbers of Fibonacci's series converges... Ok I simply
never thought about it at all ;) And I usually use tau to indicate time (esp. in
relativistic contexts). Thanks for your explanation.
--
#local j=text{ttf"arial""JRG".2,0}#local J=0;#while(J<10)#local R=0;#while
(R<2)#local G=0;#while(G<1)#if(inside(j<R,G.1>))object{j scale.025translate
<R-1G-J/20J/-40+2>pigment{rgb<9J>}}#debug"O"#else#debug" "#end#local G=G+
.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG
Home: http://digilander.iol.it/jrgpov //New: Kitchen scene WIP
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Of course you could vary the effect by replacing marble with wood, etc.
For an interesting woodcut effect, you could render a scene once
normally, and then again with no lights, giving each object a gray
marbled (or wood) pigment; and threshold one against the other.
(Does that make sense?)
Any GIMP mavens here? Is there a way to threshold one image against
another?
--
Anton Sherwood -- http://www.ogre.nu/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Unfortunately, any computer program rounds irrational numbers to rational
ones, but... whatever =)
- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 17 Jan 2002 12:43:59 -0800, Anton Sherwood <bro### [at] pobox com> wrote:
> #declare tau = (1+sqrt(5))/2;
> #declare F0 = function {
> pigment { marble color_map { [0 rgb 0] [1 rgb 1] } }
> }
> #declare F1 = function {
> pigment {
> marble color_map { [0 rgb 0] [1 rgb 1] }
> scale tau-1
> }
> }
> #declare taumarble = function { (F0+F1)/2 }
BTW: you did it probably with megapov, right ? I think this becouse you not
attached (x,y,z) after F0 anf F1. For others playing with this on 3.5. Below
version afaik gives in 3.5 the same result as above:
#declare tau = (1+sqrt(5))/2;
#declare F0 = function{pattern{marble}}
#declare F1 = function{pattern{marble scale tau-1}}
#declare taumarble = function{(F0(x,y,z)+F1(x,y,z))/2 }
ABX
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Anton Sherwood schrieb:
> Any GIMP mavens here? Is there a way to threshold one image against
> another?
>
Er... what is a "maven"? I tried to look it up in my Oxford Advanced
Learner's Dictionary of Current English, but it's not listed there.
Is it something like a geek, or a nerd?
See you in Khyberspace -
http://www.geocities.com/electricafghan/index-e.html
Afghanistan Chronicle: http://www.ndh.net/home/bleimann/index-e.htm
Now playing: Solid Space (Jon Anderson)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Yadgar wrote:
>
> Anton Sherwood schrieb:
>
> > Any GIMP mavens here? Is there a way to threshold one image against
> > another?
> >
>
> Er... what is a "maven"? I tried to look it up in my Oxford Advanced
> Learner's Dictionary of Current English, but it's not listed there.
>
> Is it something like a geek, or a nerd?
I didn't wonder about it, because I thought I knew what it meant (expert
or specialist), but you are right, it isn't in the English dictionaries.
However, I found this on the Net (at www.thefoodmaven.com): "Maven is a
Yiddish word that means connoisseur; in other words, a person who can
discern quality."
Obviously, we need a Yiddish dictionary, to follow this group :-)
/Ib
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> Below version afaik gives in 3.5 the same result as above:
>
> #declare tau = (1+sqrt(5))/2;
> #declare F0 = function{pattern{marble}}
> #declare F1 = function{pattern{marble scale tau-1}}
> #declare taumarble = function{(F0(x,y,z)+F1(x,y,z))/2 }
In 3.1, "marble" without a color_map gave something strange.
--
Anton Sherwood -- http://www.ogre.nu/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
JRG wrote:
> Aah, the golden ratio. I always thought of it just as
> the number to which the ratio between two consequential
> numbers of Fibonacci's series converges...
It all ties together.
How do you find the Fibonacci limit ratio?
You assume that the sequence approaches
... ax^(n-2), ax^(n-1), ax^n ...
and the definition of the sequence gives
ax^n = ax^(n-1) + ax^(n-2) ;
divide through by the last term:
x^2 = x + 1
which is the same quadratic as before.
Or: given a continued fraction form
a[0] + 1/( a[1] + 1/( a[2] + 1/( a[3] + ...)))
you want to find rational approximations. Here's the procedure:
start with num[-2] / den[-2] = 0/1
num[-1] / den[-1] = 1/0
then num[i] = a[i]*num[i-1] + num[i-2]
den[i] = a[i]*den[i-1] + den[i-2]
For tau, 1 + 1/1+(1/1+(1/1+(1/1+(1/1+(...))))),
guess what that gives:
0/1, 1/0, 1/1, 2/1, 3/2, 5/3, 8/5, 13/8 ...
The golden ratio turns up so often, that I was a bit startled one time
when a limit proved to be 6/pi^2 instead!
--
-- Anton Sherwood -- http://www.ogre.nu/ --
"If nobody said anything unless he knew what he was talking about,
a ghastly hush would descend upon the earth." ---Sir Alan Herbert
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |