Structure

Creating a structure from a number and index possibly using JS

miccat's picture

Hi,

I have searched the internet for hours on this problem and the closest thing I have come across is a structure merger built in javascript in this post: "Just modifing one (or many) members in a structure before using this structure..." I have tried to modify this so that the input is a number rather than a structure but as I have never studied JS I am finding it extremely difficult.

Basically, what I am trying to achieve is an object with a similar output to the 'audio input' object which comes with QC4. The difference being that the structure can have more than 16 bands.

Say I had 50 bands with index 0, 1, 2, 3, ...49 Each with a value between 0-1.

How can I form this into a structure (in a similar way to what 'audio input' does)?

Thanks so much for your help and I hope this makes sense.

Structure for GL tools (quad)

kimba23's picture

Hi. How so I go abuot creating a structure that works with the gl tools? I tried the structure makers. But the structure makers do not output a structure similar to the "get mesh component" I would like to set some sprites in space using the interaction patch with the mouse and then use the coordinates of those sprites as "vertices" that I can input in the gl quad structure patch so I can create some complex geometries made with quads. The idea is tha I can create a kind of mask that I can use for projection mapping on a object made with a lot of real cubes Any help would be apreciated! Thanks. Oh I am not so good with javascrpt :0( but I can learn by example. :)

Collada DAE to GL Tools Structure via OpenCL (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2009.12.20
Compatibility: 10.6
Categories:
Required plugins:
(none)

This is a composition that shows the simplest way to turn a loaded dae/collada object into a structure that can be rendered by GL Tools 1.4 structure render patches.

I'm including a sphere for testing. Sooo, have both files on your desktop, or say, in downloads... the same folder, or replace with the model of your choice.

Below, are some clips of a little more fleshed out (though less universal) version, with some extra mesh filtering going on...

GL Tools Patches With Structure Inputs

toneburst's picture

Would it be possible to modify the GL Tools patches that accept structure inputs (Point Structure, Line Structure etc.) so that they can work with 4-component inputs for each point, as well as the current 3-component XYZ arrays?

It's a slightly obscure request, I know, but there's a reason: The OpenCL patch can't deal with or output float3s, ie structures of 3-component arrays, so you can't, for example, plug an OpenCL kernel outputting a structure into a Point Structure patch. I guess the 4th value could just be ignored.

a|x

sorting part of a structure

Swiftlikeninja's picture

Hello again everybody,

You all have been extremely useful thus far in assisting me in grasping quartz composer. I need some further assistance though. I have a structure with two of the indexes out of order. I only need to sort those two and not the entire structure, can anybody assist me with this.

thanks in advanced