Archive for July, 2008

2D Trigonometric Attractor Visualization

Sunday, July 13th, 2008
image of colored wavy lines
xuu

These are some images generated by a program I wrote during the 2006-2007 academic year. Input eight real valued numbers, and you get an image like the ones that follow (no post-processing needed).

They are plots of a 2-D iterative function. Hue, Saturation, and Value correspond the (localized) Lyapunov exponents, distance between f(x_i) and x_i, and the number of times the point was visited, respectively.

See content from Scott Draves, Paul Bourke for more info.

(more…)

3d attractors in JOGL

Sunday, July 13th, 2008
Lorentz Trails
Lorentz Trails
Well, I’ve always been pretty fascinated with chaotic attractors,and for my final project in my graphics class I decided to make the jump to 3d.

I had been getting my feet wet with Java for another project, using it to implement a interpreter for a tiny expression language. I was really impressed by type system- debugging was more of a compile-time than run-time affair. I was also able to install the Netbeans IDE and JOGL pack without too much trouble, and there were plenty of demos to copy code from.

Ultimately, I was pretty satisfied with the results. Of course, I really only needed support for the most basic OpenGL functionality. I would love to see how projects like SciDelek perform.

Anyway, I’ve posted the code in a single file here. It’s a realtime visualizer for any f(x):x,y,z->x,y,z. So much fun to watch these suckers in action!