Structure

QB 1.2 under Lion - Generated Structure

dimitri's picture

I have isolated a strange bug under Lion using QB 1.2.

Generating a structure works in QC editor 4 / 4.5 and QB 1.2 under Snow Leopard, but does nothing when compiled with QB 1.2 under Lion.

Can anyone confirm this?

I could not manage to generate structures through javascript either, something invisible happens along the way.

Iteration to Structure

realtime's picture

after a brief study how to nest iterators seen @noboko (thanks @gtoledo3 for useful link! http://kineme.net/forum/DevelopingCompositions/SuperCoolQuartzComposerQtzs) i tried to hook them to make structures. few examples attached.

so far i had an interesting adventure in generating various combinations of lines and stuff.. but i'm really stuck at this point. i have a basic question:

does this kind of structuring makes sense? could it go further (lets say something like http://kineme.net/Release/Beta/GLLookVeryCool) ?

is there a way to make offsetting points more controllable by this method, or i should include any other tools, maybe i'm missing something about structure making in general?

any tip would be appreciated!

How to output a vertices structure from a custom plugin (with code)

LukeNeo's picture

Hi to all, I'm trying to extend my iniTree plugin with a custom plugin that outputs a structure with vertices position every frame, as suggested by gToledo. To try this kind of output I tried to modify my drawTest plugin so instead of render vertices it outputs vertices position.. but I cannot make it work properly. This is my approach:

  • vertices positions are stored in a float vector
float   v[VSIZE][3];
  • vertices positions are copied every frame in a NSArray (output_struct) made of NSArrays (currVertex) in this way:
   for(int x=0;x<numV;x++){
      [currVertex removeAllObjects];
      [currVertex addObject:[NSNumber numberWithFloat:v[x][0]]];
      [currVertex addObject:[NSNumber numberWithFloat:v[x][1]]];
      [currVertex addObject:[NSNumber numberWithFloat:v[x][2]]];
      [currVertex addObject:[NSNumber numberWithFloat:1.0]];
      [outputVertices addObject:currVertex];
   }
 
      //create output structure
   self.output_struct = [NSArray arrayWithArray:outputVertices];

It seems to output the same kind of result of a mesh importer (you can see it in outputs img), but for some reason my plugin output doesn't work. In the zip you can find xcode project, a composition example and a dae mesh to test it.

I think I don't build the structure in the correct way. For example, in the Apple developer guide I read that we must use NSDictionary to output a structure, but I can't use it in the correct way. Anyone knows the correct way to output a structure from a custom plugin?

CSV 2 Structure Plugin (Composition by benoitlahoz)

Author: benoitlahoz
License: Public Domain
Date: 2011.06.06
Compatibility: 10.6
Categories:
Required plugins:
(none)

Hi !

As I wanted to manage with 'states/events' with the Kinect I made this little plugin based upon the Danilo Campos CSV Parser (http://blog.danilocampos.com/).

It takes a CSV file (with comma, semicolon or tab delimiter) and output a structure with strings, numbers and colors.

For colors, insert "RGBA" at the end of your header, then insert RGBA values separated by a blank space in your fields.

I have troubles with UTF8 so it doesn't accept special characters (especially... not French special characters). Changing the encoding while parsing the file doesn't change anything, except... crash...

Source code and plugin included in the next post.

Website image index

pho's picture

Hi,

Does anyone know how to create a slideshow using an image index like this one?

http://www.ict.griffith.edu.au/images/