Archive for the ‘download’ Category

2d & 3d Spirograph

Ok. It ends here. The final version of the spirograph/harmonograph patch, in both 2d and 3d version. Enjoy. The previous post shows some of the results I got out of it. The patches generate a new random shape whenever the space bar is hit. If a particular image is to your liking, you can save it using the pattrstorage in the bottom.

2dSpirograph

3dSpirograph

By request, here’s a standalone version of the 2d patch. Hopefully it works, if not, drop me a line.

2dSpirograph standalone os X

Harmonograph

Here’s a patch which started as an attempt to make a harmonograph in jitter. It’s not entirely right just yet, but it does produce a nice range of images. The patch comes with an .xml file with some presets. If anyone creates new presets for it, or builds on the patch I’d very much like to see the results or hear about the specific settings.

 Harmonograph_screencap

 

Get the patch here:

Harmonograph

Sphere Camera

One last little patch for today.

I made this because I wanted to move the camera along the surface of a sphere while looking at a certain point, in this case the origin.

Use the arrow keys to move the camera around. The up vector of the camera is adjusted to avoid flipping whenever it moves from – to +.

SphereCam

Pivot Point

This next little patch is very very simple. It’s a strategy to change the ‘pivot point’ of an object, i.e. the point around which it rotates when you send it the rotatexyz message. By default objects are placed at the origin, (0.,0.,0.), and their pivot point is located at the center.

I never really needed to change this untill recently, when I needed to place different planes around, but have them all rotate along a single axis. For instance : when you create a plane with jit.gl.gridshape, the plane will be centered in your window. Now, what if you want to rotate it like it is a door? So not around it’s center, but along the left or right side of the plane…? The patch below demonstrates the extremely simple way of accomplishing just that.

Change the position in the of the jit.gl.gridshape in the patch to say 0.3 0. 0., and then rotate the jit.gl.sketch object along the y-axis.

Easy eh? This hardly qualifies as a tutorial! Download link below.

Pivot Point

Disco Cubes

This little patch randomly places cubes in 3d space and fades them in and out.  A matrix is filled by a new random value, one at a time. The first value of the matrix is thrown out and all subsequent values are shifted one position, making room for the next new random value. The cell position is used to fade the cube in and out, fading in from the last position till they reach the middle position, after which they fade out and are thrown away.

DiscoCubes.zip

Return top