Archive for math operation

_1024_MATHStructure Quartz Composer plugin

Posted in experimental, QC plugins, quartz composer with tags , , , on July 24, 2010 by Francois Wunschel

Since I was quite satisfied with our PerlinNoise plugin in terms of speed,
I took some time this morning to quickly whip a suite of 2 plugins to actually manipulate QC Structures.

This plug comes in 2 flavors : 1D structure operations or 3D operations,
meaning the 3D structure is composed of sub-structures with XYZ keys.
This is pretty handy when working in conjunction to KnM GLTools.

The 1D plugin will let you operated between different sized structures of NUMBERS.
The 3D plugin will freak out if the 2 structures have a different size. Be warned.
I should probably use C arrays internally, instead of sticking to NSDictionary and NSArray…
Maybe a future update will have this solved.

Meanwhile, the following operations are possible:
+ – * / > < == !=
and lerp, which performs a linear interpolation between the 2 inputs, based on a 0-1 range.
The included example uses KnM File Tools (needed to load structures from file) and KnM GLTools.
The example is quite shabby looking, sorry about that.
Download from the box. Drop a comment if you do find some bug (apart from the one I mentioned).