Quartz Crystal CLI - Demo

cybero's picture

Prompted by a request for help on Facebook [when it was working yesterday •~] from Joe Catchpole.

Hope that helps you Joe and a few others too.

Core Image Conundrum

cybero's picture

I wonder why this Core Image kernel code isn't working for me. It was found on the fromaremotevillage blog.

A Core Image kernel routine that computes a convolution effect.
The code looks up the source pixel in the sampler and then multiplies it by the value passed to the routine.
kernel vec4 Convolution3by3(sampler image,
float r00, float r01, float r02,
float r10, float r11, float r12,
float r20, float r21, float r22)
  vec2 loc;
  vec4 result = vec4(0,0,0,0);
  //0,0 in my mind is left and up.
  loc = vec2(1.0,0.0);
  vec4 p12 = unpremultiply(sample(image, (samplerCoord(image) + loc) ));
  result.rgb += p12.rgb * r12;
  loc = vec2(-1.0,-1.0);
  vec4 p20 = unpremultiply(sample(image, (samplerCoord(image) + loc) ));
  result.rgb += p20.rgb * r20;
  loc = vec2(0.0,-1.0);
  vec4 p21 = unpremultiply(sample(image, (samplerCoord(image) + loc) ));
  result.rgb += p21.rgb * r21;
  loc = vec2(1.0,-1.0);
  vec4 p22 = unpremultiply(sample(image, (samplerCoord(image) + loc) ));
  result.rgb += p22.rgb * r22;
  result = premultiply( result );
  return result;

Currently produces nothing more than blank empty space when run in QC 4.5 on Lion. Haven't tried it in Snow or earlier as yet.

RileyFlow (Composition by cybero)

Author: cybero
License: Public Domain
Date: 2011.07.26
Compatibility: 10.6, 10.7
Required plugins:
Image_Rehab Virtual Macro

A purely Core Image kernel based iTunes visualizer.

Inspired by the 60s OpArt of Bridget Riley.

Employs Image Rehab , thus not 10.5 compatible.

Public Domain | Free Document Licence

about : about artificial life

cybero's picture

Couldn't add a comment to the artificial life post you made,zanroversi, so wrote this post.

I find that hexagon and jeu de la vie don't work much at all whilst opinion and vie_K work just fine.

MeshLab Shaders Collection

cybero's picture

The release yesterday, the 16th of February , of Mesh Lab version 1.3, prompted me to return to a back burnered project to port the shaders used in MeshLab into Quartz Composer.

All but ambient occlusion proved to be capable of porting and were a pretty trivial task too.

Utilising the v002 Model Importer to import and render .ply meshes and all those colours and such came to life more vivdly and easily than was achievable with the use of .dae.

A really amazing plugin, the v002 Model Importer; I'm just beginning to be captious of its full potential. I'm looking forward to getting some sweet animations done.

I've packaged up the results of my work, including the .dae , .ply , .mlp and .gts files to run the project [.mlp] from within MeshLab, an incredibly useful program.

One really wonderful thing about the v002 Model Importer plugin is that meshes can be rendered from so many formats, without having to use .dae .

The shader collection is as follows:-

















I'd be interested to know if these also work well on 10.5.x. I think they should, but perhaps I'm not apprehending some lack of backwards compatibility. They don't test to Leopard runtime correctly.

Much thanks and appreciation to vade and also to the MeshLab development team, especially Massimiliano Corsini.

I'm also pretty delighted to discover how well Quartz Composer snapshots with transparency to.png, hithertofore most of my rendering snapshots have been of full area renders :-).

[who knew that?] - yeah, you! [who didn't know that?] - yeah, me! [who else..]