jit.gen & output & input formats confusing me totally :-(

Jun 21, 2012 at 4:40pm

jit.gen & output & input formats confusing me totally :-(

Hi there,

I need to enter a 4-uplets in a jit.gen in order to make a calculation.
til here, no problem.

I'm splitting the uplet into 4 floats components with swiz… til cute…
Then, I'm making my calculation, all ok.

problems appear when I'm trying to “build” my output.
I need to pop out 9 floats.

Here is my patch attached.

Because I'm building 3 vectors and popping them out the jit.gen, I'm using glue to .. glue them to make a resulting matrix 3×3, which is here the rotation matrix I need to produce my azimuth calculation.

Please where is the problem?
I tried to tweak the jit.gen attributes, to make it not adapting, 1 1 as dimension & 3 planes… all the same… the resulting matrix from glue is 0. 0. 0 0. 0. ….

[attachment=197189,4075]

Attachments:
  1. jit.genOutputInput.PNG
#45691
Jun 21, 2012 at 4:51pm

here is another variant
seems better

jit.gen is 4 plane not adapting in order to provide the process of the 4 plane stuff coming into it.
and thus, it pops out vectors with 4 components EVEN if I'm still using (vec 0. 0. 0. ) object before output.

the fourh component is 0.0000

I can probably remove it with scissors..
but it would be smarter to avoid to have it.

how would you advise to me ?

[attachment=197190,4076]

Attachments:
  1. variante.PNG
#164773

You must be logged in to reply to this topic.