Weekend Hackery: Quaternion Julia Sets

December 2nd, 2007

So sometime between 10pm last night and this morning I got a quaternion julia set visualizer going. So far it just generates a point cloud given a min/max bounds, an initial constant, and the 'slice' along one of the quaternion axes that you want to constrain.

The remaining problems are that:

  • it's slow to compute.
  • it's big, as I'm not doing anything clever and just have a 100x100x100 grid containing the data, and I want a bigger grid than that, so I can convert the point cloud to a polygon and save it as an OBJ or something.

So I'll try to make it cooler, I guess.

Here's a picture:

This is with c = -0.8 + 0.2 i + 0.1 j + 0.3 k, showing the 'contour' formed by setting the j axis to 0.1.

This is the same one from a slightly different angle. The grid is low res so it's hard to see what this thing actually is, so maybe this will help. Then again, maybe not...

I'm sure this guy has been linked from everyone who has ever wanted to do this, since he actually seems to know what he's doing.

My Gamertag