 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Then it would be interesting to run the same spiral using random numbers
instead of primes and see if we notice the same kinds of patterns.
David
>
> Our brains are extremely good at finding patterns. Even TO good at it.
> It can, and do, find patterns even in places where there are no patterns
> at all.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
had a minor epiphany :-) a few days back, realised that the TOA demo provided
already the moving and turning stuff needed for the Ulam Spiral. so spent some
"happy hours" gutting the TOA code and from it making "USaF", the Ulam Spiral
(animation) Fun ;-).
attached is the source for the animation posted in p.b.a, a few notes:
- the CSV file included is for the first 4096 numbers, the same length as the
Hilbert Curve still image, though the ini file stops short of that.
- the AA settings in the ini are not v good to keep the rendering .. speedy.
- like the 'Filed()' demo, I direct all output to a scratch directory, you'll
need to adapt the paths in two places, the last line of the ini, and line 63 in
the scene (sorry about it it not being nearer the top, need to load lookup data
in CWD first).
- both verbose and logging can be enabled/disabled to suit. the log could be
used to render intermediate frames to make for graceful "gliding" and turning.
:-)
and finally, I ask for a "helping hand". I would like the camera to slowly pull
back and change both location + look_at during the animation, the aim being to
run the spiral to the same length as RMcG.
Alain Martel <kua### [at] videotron ca> wrote:
> Our brains are extremely good at finding patterns. Even TO good at it.
> It can, and do, find patterns even in places where there are no patterns
> at all.
so agree, and both fortunate and not. good, I think, for all the cognitive +
tool-making-drive etc advantage, bad because it leaves us susceptible to
conditioning + propaganda and such.
regards, jr.
Post a reply to this message
Attachments:
Download 'usaf.zip' (5 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> wrote:
> hi,
>
> had a minor epiphany :-) a few days back, realised that the TOA demo provided
> already the moving and turning stuff needed for the Ulam Spiral. so spent some
> "happy hours" gutting the TOA code and from it making "USaF", the Ulam Spiral
> (animation) Fun ;-).
>
> attached is the source for the animation posted in p.b.a, a few notes:
>
> - the CSV file included is for the first 4096 numbers, the same length as the
> Hilbert Curve still image, though the ini file stops short of that.
>
> - the AA settings in the ini are not v good to keep the rendering .. speedy.
>
> - like the 'Filed()' demo, I direct all output to a scratch directory, you'll
> need to adapt the paths in two places, the last line of the ini, and line 63 in
> the scene (sorry about it it not being nearer the top, need to load lookup data
> in CWD first).
>
> - both verbose and logging can be enabled/disabled to suit. the log could be
> used to render intermediate frames to make for graceful "gliding" and turning.
> :-)
>
> and finally, I ask for a "helping hand". I would like the camera to slowly pull
> back and change both location + look_at during the animation, the aim being to
> run the spiral to the same length as RMcG.
>
>
> Alain Martel <kua### [at] videotron ca> wrote:
> > Our brains are extremely good at finding patterns. Even TO good at it.
> > It can, and do, find patterns even in places where there are no patterns
> > at all.
>
> so agree, and both fortunate and not. good, I think, for all the cognitive +
> tool-making-drive etc advantage, bad because it leaves us susceptible to
> conditioning + propaganda and such.
>
>
> regards, jr.
GAAAAAHHHHH.....
TOA, CWD, RMcG......
The Apogee bong wasn't mine, and since William Leonard Pickard stopped making
all the good stuff.....
I cannot Become One with your universe and divine the hidden meaning of your
acronyms.
So you wanna follow the bouncing prime ball as it spirals around the origin and
keep the whole spiral in the view frustrum?
Would any of those camera spline macros be of use?
http://www.f-lohmueller.de/pov_tut/animate/anim22e.htm
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"Bald Eagle" <cre### [at] netscape net> wrote:
> "jr" <cre### [at] gmail com> wrote:
> > ...
> GAAAAAHHHHH.....
>
> TOA, CWD, RMcG......
heh, you missed CSV, AA, _and_ p.b.a. :-)
> ...
> So you wanna follow the bouncing prime ball as it spirals around the origin and
> keep the whole spiral in the view frustrum?
>
> Would any of those camera spline macros be of use?
not too sure yet, need to look this over, thanks for the ref. from my
lack-of-know-how perspective, roughly, I think of two circles, both approx
around origin, the smaller for the look_at, a larger for the location; the
larger more (shallow) helix, ie I would like from clock 0 to 1 for both
diameters to slowly increase, and the location to "lift", so that the effect is
like zooming out, taking in more + more of the plane. thinking the movement
should be clockwise (while the spiral gets drawn counter-clockwise). anyway,
near the end one should have a "bird's eye" view of the spiral. (I'm reasonably
sure it's not very difficult, but you know of .. my limitations :-))
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> wrote:
> not too sure yet, need to look this over, thanks for the ref. from my
> lack-of-know-how perspective, roughly, I think of two circles, both approx
> around origin, the smaller for the look_at, a larger for the location; the
> larger more (shallow) helix, ie I would like from clock 0 to 1 for both
> diameters to slowly increase, and the location to "lift", so that the effect is
> like zooming out, taking in more + more of the plane. thinking the movement
> should be clockwise (while the spiral gets drawn counter-clockwise). anyway,
> near the end one should have a "bird's eye" view of the spiral. (I'm reasonably
> sure it's not very difficult, but you know of .. my limitations :-))
Ah, I get it now.
How about you use the frame number or clock value to calculate an angle.
For your camera, subtract some increment, for you look_at, add.
Increment your camera's y-value every frame.
To get the spiral effect, increment the radius each frame.
Basically, translate some amount away from the origin (radius), translate your
camera up, and then rotate. That ought to be it.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Also, just recalling that this type of thing has been discussed before:
approximations, and more
https://www.youtube.com/watch?v=EK32jo7i5LQ
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> Also, just recalling that this type of thing has been discussed before:
>
>
> approximations, and more
> https://www.youtube.com/watch?v=EK32jo7i5LQ
Wow, that is a fascinating discourse on these apparent spiral 'patterns', and so
well-explained. The various visualizations are top-notch too.
So it turns out that a mathematician from centuries ago has already come up with
a completely rational explanation. There *are* clear patterns to be seen with
the primes-- or any other set of 'related' numbers, so it seems-- but they
result from the visualization technique itself.
That video is a real eye-opener, and quite instructive. Thanks for posting.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le 2022-03-08 à 15:34, Bald Eagle a écrit :
> Also, just recalling that this type of thing has been discussed before:
>
> Why do prime numbers make these spirals? | Dirichlet’s theorem, pi
> approximations, and more
> https://www.youtube.com/watch?v=EK32jo7i5LQ
>
Yes, 3Blue1Brown. Very interesting channel. You should also take a look
a Mathologer, Numberfile and Stand-up Maths for more interesting
insights into mathematics.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"Bald Eagle" <cre### [at] netscape net> wrote:
> ...
> Ah, I get it now.
>
> How about ...
thanks. will (in part) follow your advice. (currently trying to work out what
needs to be done at which (range of) frame_number(s)).
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"Bald Eagle" <cre### [at] netscape net> wrote:
> ...
> Basically, translate some amount away from the origin (radius), translate your
> camera up, and then rotate. That ought to be it.
you saved me :-) -- I'd been thinking I might need a spline. fwiw, updated
sources in p.b.a thread 'USaF'.
regards, jr.
Post a reply to this message
Attachments:
Download 'usaf_3967.png' (196 KB)
Preview of image 'usaf_3967.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |