openCL

Get Mesh Output Port Tooltip Image/ Tooltip Stuff -Structure Tools

It would be convenient to be able to "get" the image that appears at the output of a mesh port tooltip, and be able to render that directly to a Billboard/Sprite, whatever.

The output of a mesh tooltip shows an image (aberrant for the data type), of a post transformed mesh (distinctly different from "get texture" which just removes grabs the texture from the pipeline).

I'm marking this is started/inactive since there's been previous discussion of supplying tooltip info in a structure, or getting namespace info. I'm tagging this as a structure tools thing.

I know that mesh port is "undocumented", but it seems like the mechanism that provides tooltip images is probably well documented... I just don't know if that can be transferred into a full resolution image.

Also, there are tons of "namespace" things that would be great to be able to grab from structures that aren't actually "part" of a structure, and we can't do anything to get at them for making logic decisions.

OpenCL Sculpt (Composition by gtoledo3)

Author: gtoledo3
License: (Other — see description)
Date: 2010.07.19
Compatibility: 10.6
Categories:
Required plugins:
(none)

This composition is a demo that shows how to setup an interactive sculpt method with the Apple Mesh engine in Snow Leopard.

Shoutout to cwright for a question he answered a long time ago (hmm, 2 years? Time flies...) where the resolution was to take a Kineme3D warp and sample the output with a sample and hold before the renderer, so that a gravity warp would freeze on mouse up, and clear on mouse down.

After that lingered in my mind, I realized I could setup a feedback/multiplexer loop that would allow one to do a type of additive sculpting that wouldn't clear the sample and hold data every time a mouse down event occurred, but additionally clear it if I wished with a secondary mouse button.

A recent discussion about pushing around vertices in OpenCL led me to whip this up, since I was pretty sure the routine could be applied to OpenCL just as easily.

So, this uses that kind of sample and hold based feedback loop with multiplexers to allow one to use a mesh filter in a way that adds the results of deformation to the resulting mesh with each push/pull motion. This is very similar to some sculpting and vertex push functions in modeling programs.

Rev History- .01- Slight tweak to improve clearing mesh filter effect.

Neon Audio Processor - OpenCL iTunes visualizer

cybero's picture

A screen grab of some work in progress, an OpenCL graphics kernel based iTunes visualizer.

The construct is essentially one whereby the audio spectrum and peak data are separated into peak,low, mid and high , these values then being the initial values for the computation of the resulting audio reactive graphic.

The bands are high, middle and low from top to bottom.

Looking at setting up some presets, as the slightest change in certain of the input variables results in drastic changes to the graphic rendered.

Particle Dance Transform

cybero's picture

This is a work in progress, a Particle Tools composition that uses OpenCL to create a transforming structure being fed into a Kineme GL Structure Renderer patch containing two GL Tools Structure patches.

The video above is set to the track that helped to create the audio data feed, Minkou e so non moin by Orchestre Poly-Rythmo de Cotonou.

Smoothing a coordinate structure with javascript?

gtoledo3's picture

How does one setup the appropriate javascript to smooth a structure with indices that have an x/y/z/w substructure (the type of structure that would feed a GLTools Structure Renderer, or an OpenCL vertices input, etc.)?

I know it's possible to smooth a structure with a value for each index (the music visualizer does that), but I can't figure out how to smooth with javascript in this type of scenario. It's easy to smooth the values by using an iterator and queue, and publishing the results, but I want to see if avoiding that gains fps.

If this could be done with OpenCL and get higher fps, it would be really interesting, but I'm dubious. Also, I'm not sure if this is something that a dedicated plugin should do (?).

Any help would be greatly appreciated, and I'll post the subsequent result.