Forums > Jitter

exprfill vs. jit.expr bug? misuse?

September 26, 2006 | 4:16 pm

in this example jit.expr is behaving as i would expect but the
exprfill method of jit.matrix is not.

am i not properly formatting the expression list for exprfill?

demonstration patch:

#P button 228 24 25 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 228 53 48 196617 loadbang;
#P user jit.pwindow 401 220 322 242 0 1 0 0 1 0;
#P button 402 101 15 0;
#P newex 402 121 142 196617 jit.matrix 2 float32 320 240;
#P newex 402 143 264 196617 jit.expr 2 float32 320 240 @expr "norm
[0]" "norm[1]";
#P message 55 109 171 196617 exprfill "norm[0]" "norm[1]" , bang;
#P newex 55 131 142 196617 jit.matrix 2 float32 320 240;
#P user jit.pwindow 54 220 322 242 0 1 0 0 1 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P connect 3 0 6 0;
#P connect 4 0 3 0;
#P connect 5 0 4 0;
#P connect 8 0 7 0;
#P connect 7 0 2 0;
#P connect 7 0 5 0;
#P window clipboard copycount 9;


September 26, 2006 | 5:07 pm

Hello,
We could probably document this a bit better, but here is how your
exprfill message will need to be formatted:

exprfill 0 "norm[0]",exprfill 1 "norm[1]", bang

the exprfill message takes an extra int(plane) argument before the
expression to specify which plane is to be filled. This is slightly
different from the way that jit.expr accepts messages.

Cheers,
Andrew B.


September 26, 2006 | 5:08 pm

On Sep 26, 2006, at 9:16 AM, jonathan marcus wrote:

> in this example jit.expr is behaving as i would expect but the
> exprfill method of jit.matrix is not.
>
> am i not properly formatting the expression list for exprfill?

Syntax for exprfill is different to support only writing into one plane.

exprfill

If plane number is absent the same expression is written to all planes.

Sorry for this oversight in the documentation. Will fix.

-Joshua


September 26, 2006 | 7:16 pm

—–BEGIN PGP SIGNED MESSAGE—–
Hash: SHA1

awesome. thanks guys!

—–BEGIN PGP SIGNATURE—–
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFGXyQRvcxtaNGgooRAuupAJ43I5VfKqvPz1vOy2h4J87hLnymFACfUp2t
4l51yMaZQ4gaEvI+WrOgQrk=
=1YxL
—–END PGP SIGNATURE—–


September 28, 2006 | 11:27 pm

Dear list,
I would like to be abble to xfade between 2 .obj files (matrixoutput
1 send to a jit.gl.mesh for a geometric shape)
I tried the same trick as with gridshape and mesh but got strange
shapes out of it.
So as .obj files describes forms based on triangles or etc. is there
a way to extract info to make model work as gridshape
or do i have to make the mixing directly with the lines codes
describing .obj files to achieve a kind of morphing?
Every suggestions are welcome
Thanks
Hubert


September 29, 2006 | 12:42 am

You have to model your OBJs so that

a) they have exactly the same number of vertices
b) the vertices you want to morph back and forth between are the same
index in the list.

This sounds hard, but, what you should do is

a) create a large sphere with the maximum number of verts you will want
b) save it and dont loose it
c) copy it as a seocnd file, open it and sculpt out the shapes you
want by extruding and displacing the points/planes/surfaces of the
sphere.
d) do the same for the second model, and everything *should* line up.

Ive done this with Wings3D, and its basically worked.

v a d e //

http://www.vade.info
abstrakt.vade.info

On Sep 28, 2006, at 7:27 PM, Hubert PICHOT wrote:

> Dear list,
> I would like to be abble to xfade between 2 .obj files
> (matrixoutput 1 send to a jit.gl.mesh for a geometric shape)
> I tried the same trick as with gridshape and mesh but got strange
> shapes out of it.
> So as .obj files describes forms based on triangles or etc. is
> there a way to extract info to make model work as gridshape
> or do i have to make the mixing directly with the lines codes
> describing .obj files to achieve a kind of morphing?
> Every suggestions are welcome
> Thanks
> Hubert
>


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