I have uploaded cranborg.py to SourceForge (unfortunately, I needed to remove all links in my previous post, below, since I haven’t been a registered user for very long!)
Release Notes:
This is the first version of my translation of the Java FAMP “Floretion Algebra Multiplication Program” into Python for use in Blender.
Basically, I’ve taken quaternions (and their “extenions” to floretions) and created short algorithms based on quaternion multiplication and adding back in the fractional parts of the coefficients of the basis vectors (for example 'i, 'j, 'k, and e). Under the right conditions, these algorithms result in sequences of integers which can be graphed, leading in many cases to stunningly beautiful objects (author’s opinion). This depends on:
- the algorithm itself
- the parameters for the algorithm
- the chosen quaternion/floretion
- the number of points plotted
Name: Gerald’s Spiral, published at the Online Encyclopedia of Integer Sequences under A108618
Script Settings:
Floretion: “Gerald’s Spiral” (be sure to hit this button first!)
Sum E-factor: 1
Sum I-factor: 0
Sum J-factor: 0
Sum K-factor: 0
2-D toggle button: on (default)
Add X toggle button: on (default)
Zap toggle button: off
Last sequence toggle button: off
em sequence toggle button: off
Note: Be sure to experiment by increasing the “number of terms” slider and toggling into edit Mode in Blender to view the points! Also, the curves created should be deleted (currently by hand in Object mode) or else they will begin to clutter the view- and RAM. When experimenting, it is advised to plot in stages: first 100, deleting object. If the object looks interesting, then move up to 1000-3000 points. Calculating 20000 points creates a time delay of approximately 15 seconds on a 1800 dual core, 2GB machine before the object appears in the 3D window (and a much longer time to render, of course, depending on the settings)
Name: Chung shu’s Spiral, published at the Online Encyclopedia of Integer Sequences under A117154
Script Settings:
Floretion: hit the button “Chung shu’s Spiral”
Sum E-factor: 2
Sum I-factor: 0
Sum J-factor: 0
Sum K-factor: 0
2-D toggle button: on (default)
Add X toggle button: off
Zap toggle button: on
Last sequence toggle button: off
em sequence toggle button: on
I will be setting up a forum in the next few days to discuss any user comments regarding algorithms and floretions on my website. Until then, you may download the pre-release at SourceForge- search for the term cranborg!
Warning: This is a test release. The exact effect of the buttons may change with later releases.
My email: mail(AT)fumba.eu
p.s. one of my favorites is this 1-5-1 setting (try also 2-8-6):
Script Settings:
Floretion: hit the button “Gerald’s Spiral”
Sum E-factor: 0
Sum I-factor: 1
Sum J-factor: 5
Sum K-factor: 1
Mod: 3 (default)
2-D toggle button: on (default)
Add X toggle button: on
Zap toggle button: off
Last sequence toggle button: off
em sequence toggle button: off / on (try both and look at result for, say, 3000 terms)
Finally, I should add that I am in fact new to both Python and Blender- your own suggestions and improvements to the script are therefore well-appreciated.