Forums > Jitter

Jit.gl.mesh and matrixoutput

January 24, 2007 | 10:23 am

Hi,

To put it simply, I’m trying to get the jit.gl.mesh object to output the openGL matrix. It should support the matrixoutput flag, but nothing happens when I set it. I tried banging the meh object manually, I tried automatic 0, however, nothing comes out either on of the outlets.

I couldn’t find anything related to this on the forums, so I suppose I’m doing something wrong.

For the record: I’m using Mac OS X, (10.4.8),
and tried both jitter 1.5.2 and 1.6.3 b2.


January 24, 2007 | 10:28 am

Hi Bob,

I can’t see the logic in this either. I made an example patch for you:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 247 105 203 196617 3) switch to matrixoutput < -- doesn't work;
#P comment 38 33 82 196617 2) turn on metro;
#P toggle 230 105 15 0;
#P message 230 123 84 196617 matrixoutput $1;
#P button 85 155 15 0;
#P button 85 60 15 0;
#P newex 85 77 220 196617 jit.gl.gridshape @matrixoutput 1 @shape torus;
#P newex 20 208 75 196617 jit.window out;
#P newex 20 51 52 196617 metro 40;
#P toggle 20 33 15 0;
#P newex 20 91 30 196617 t b b;
#P newex 20 71 50 196617 t b erase;
#P newex 20 184 162 196617 jit.gl.render out @camera 0. 0. 4.;
#P newex 85 123 139 196617 jit.gl.mesh out @automatic 0;
#P comment 102 60 121 196617 1) put gridshape in mesh;
#P connect 5 0 6 0;
#P connect 6 0 3 0;
#P connect 3 0 4 0;
#P connect 1 0 2 0;
#P connect 4 0 2 0;
#P connect 3 1 2 0;
#P connect 9 0 8 0;
#P connect 4 1 1 0;
#P connect 8 0 1 0;
#P connect 11 0 1 0;
#P connect 1 0 10 0;
#P connect 12 0 11 0;
#P window clipboard copycount 15;

Anyone?

Cheers,
Mattijs


January 24, 2007 | 10:34 am

It probably never supported this feature in the first place, so don’t
bang your head too hard trying. All jit.gl.* objects inherit the
matrixoutput attribute by fact of being jit.gl objects. There are a
few that don’t actually do anything when this is set, jit.gl.mesh
apparently being among them. I don’t think jit.gl.mesh not supporting
this is such a big deal. It only draws data that you feed it. You
can pack that data into 1 big multiplane matrix yourself if you need
it that way.

HTH,
wes


January 24, 2007 | 10:43 am

It’s true that I’m feeding the data myself, but the advantage of the mesh object is that it supports some more advanced stuff like rotation that are a bit harder to do manually.

Anyway, thanks for the reply. I already was afraid that it simply didnt support matrixoutput.


January 24, 2007 | 10:47 am

Quote: wesley.hoke@gmail.com wrote on Wed, 24 January 2007 11:34
—————————————————-
> It probably never supported this feature in the first place, so don’t
> bang your head too hard trying. All jit.gl.* objects inherit the
> matrixoutput attribute by fact of being jit.gl objects. There are a
> few that don’t actually do anything when this is set, jit.gl.mesh
> apparently being among them. I don’t think jit.gl.mesh not supporting
> this is such a big deal. It only draws data that you feed it. You
> can pack that data into 1 big multiplane matrix yourself if you need
> it that way.
>
> HTH,
> wes
>
—————————————————-

Okay.. so is there a way for users to find out which gl objects support which messages?

Mattijs


January 24, 2007 | 4:32 pm

>>Okay.. so is there a way for users to find out which gl objects
support which messages?

Unfortunately, we don’t maintain a secret list anywhere (except maybe
inside of JKC’s brain) of what objects support what messages. For the
most part, lack of support for GL features in specific instances is due
to these features not really making sense for a particular object. This
is certainly the case with jit.gl.mesh’s matrixoutput attribute, since
it really just provides a display for whatever matrix data is passed in,
as well as jit.gl.sketch, which is a lower level interface to OpenGL.

At some point, a diligent user might take it upon his/herself to, say,
write all this up on Vade’s wiki, but for now the best way to learn
about peculiar issues is to do searches of the forum archives when you
come across something odd.

Cheers,
Andrew B.


Viewing 6 posts - 1 through 6 (of 6 total)