Hey guys,
I am curious: has anyone ever tried creating a strange attractor effect using pflow?
Here is a link to a manual to a program to create strange-attractor effects:
http://www.btinternet.com/~ndesprez/manual/attractors.htm
I have been trying with the pickover type, but I can’t get max to behave correctly. After about 4 or 5 iterations max just ends up putting the same values over and over again, placing particles in the same location.
This code is for instances of an object, but once I learn my way around maxscripting pflow, I plan to impliment this into one.
global oldPos = $.position
A = 0.987654320987654
B = 1.09876543209877
C = 1.32098765432099
D = 1.5
newpos = [0.0, 0.0, 0.0]
Iter = 100
for i = 1 to Iter do
(
newobj = instance $
--Pickover
newpos.x = (sin(A * oldPos.y) - oldPos.z * cos(B * oldPos.x))
newpos.y = (oldPos.z * sin (C * oldPos.x) - cos (D * oldPos.y))
newpos.z = sin (oldPos.x)
newobj.position = newpos
oldpos = newobj.position
print oldpos
completeredraw()
)
Basically this creates 100 instances of the selected object and distributes them along whats supposed to be the path of the attractor.

