Forums > Jitter

Drawing order within jit.gl.sketch object


May 17, 2008 | 11:48 pm

I am trying to control the order that commands to a jit.gl.sketch object execute, to make sure certain shapes overlap. The problem is that the drawing order is not the same on my PC and Mac. I have to reverse the order of the drawing commands in the same patch to get the same results on both systems. I am confused as to why the circle command at the end of the message list is not the circle that ends up on top every time.

As an aside, the patcher for Jitter tutorial 31 dealing with drawing order has never behaved according to the PDF for me. I wonder if this is related.

The only solution I can think of would be to make separate sketch objects for each shape with @layer and @automatic. I am hoping there is something simpler.

Attached is my patch with both sets of drawing commands. The first message box works on my PC, the second works on my Mac.

– Pasted Max Patch, click to expand. –

Thanks for any help : )

May 17, 2008 | 11:57 pm

Actually, if on the same system I create a separate window and pwindow for rendering, they each get different results from the same commands, as shown in this patch:

– Pasted Max Patch, click to expand. –

Is there a way to predict this?

May 19, 2008 | 4:58 pm

the 31jMoreRenderinfOrder has never worked correctly on windows (try to
recreate the expected behavior depicted in the picture on the tutorials).
the layer way of drawing also doesn’t work for depth sorting.
i urge all xp users to confirm this. i dont see a fix happening soon, dew to
the max5 mayhem.
http://shup.com/Shup/41916/108419195627-My-Desktop.png

On Sun, May 18, 2008 at 2:57 AM, Aaron Faulstich
wrote:

>
> Actually, if on the same system I create a separate window and pwindow for
> rendering, they each get different results from the same commands, as shown
> in this patch:
>
>
>

– Pasted Max Patch, click to expand. –

>
> Is there a way to predict this?
>

May 19, 2008 | 5:13 pm

Hi Aaron,
I don’t see any problems with this patch. I think you’re getting
bitten by depth testing. If you set @depth_enable 0, there are no
order issues. Everything is drawing at z=0.

wes

On Sat, May 17, 2008 at 4:57 PM, Aaron Faulstich wrote:
>
> Actually, if on the same system I create a separate window and pwindow for rendering, they each get different results from the same commands, as shown in this patch:
>
>
>

– Pasted Max Patch, click to expand. –

>
> Is there a way to predict this?
>

May 19, 2008 | 5:19 pm

Hi Yair,
I’m not sure what you;re getting at exactly, but the tutorial works
fine. Jitter has never done depth sorting so I don’t know why you
mention that. The layer thing is simply for grouping draw commands
together in a specific sequence and actually has nothing to do with
Z-ordering.

wes

May 19, 2008 | 5:31 pm

ye, my terminology is skewd. what i meant is getting the expected stuff as seen in the jitter pdf. it never worked for me. on any pc configuration i tried in the past 2 years~
see picture i attached before.

as for the layer thingy, zach tried to educate me on the matter, couple of days ago, but his clear patch didn’t fix it. layer just doesn’t change drawing order for me. on 2-3 pc’s i tried.

May 19, 2008 | 5:58 pm

It does work. I can’t really help you without a patch (perhaps
there’s one on another thread, if so post a link).
wes

On Mon, May 19, 2008 at 10:31 AM, yair reshef wrote:
>
> ye, my terminology is skewd. what i meant is getting the expected stuff as seen in the jitter pdf. it never worked for me. on any pc configuration i tried in the past 2 years~
> see picture i attached before.
>
> as for the layer thingy, zach tried to educate me on the matter, couple of days ago, but his clear patch didn’t fix it. layer just doesn’t change drawing order for me. on 2-3 pc’s i tried.
>
>
>
>
>
>

May 19, 2008 | 6:11 pm

http://www.cycling74.com/forums/index.php?t=msg&goto=141769#msg_141769

it deals with a diffrent missunderstanding i had, but when chaning the layer
num box at the bootom i get no change in drawing order.

aside from that , those drawobject work with automatic 0?

On Mon, May 19, 2008 at 8:58 PM, Wesley Smith wrote:

> It does work. I can’t really help you without a patch (perhaps
> there’s one on another thread, if so post a link).
> wes
>
> On Mon, May 19, 2008 at 10:31 AM, yair reshef wrote:
> >
> > ye, my terminology is skewd. what i meant is getting the expected stuff
> as seen in the jitter pdf. it never worked for me. on any pc configuration i
> tried in the past 2 years~
> > see picture i attached before.
> >
> > as for the layer thingy, zach tried to educate me on the matter, couple
> of days ago, but his clear patch didn’t fix it. layer just doesn’t change
> drawing order for me. on 2-3 pc’s i tried.
> >
> >
> >
> >
> >
> >
>

May 19, 2008 | 6:27 pm

especially for this thread, i made a cube!

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 436 102 57 9109513 automatic 1;
#P newex 192 110 27 9109513 t b b;
#P message 282 206 29 9109513 reset;
#P comment 227 50 198 9109513 disabled , play with layers , not working
for me;
#P message 211 49 14 9109513 0;
#P message 192 28 14 9109513 1;
#P newex 192 89 42 9109513 gate 1 1;
#P number 496 84 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 392 85 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 495 102 42 9109513 layer $1;
#P message 392 102 42 9109513 layer $1;
#P newex 224 68 33 9109513 r draw;
#B color 5;
#P message 415 153 29 9109513 reset;
#P newex 415 170 220 9109513 jit.gl.sketch sliding @blend_enable 1
@automatic 0;
#P flonum 138 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 98 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 58 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 58 596 116 9109513 pak position 0. 0. 0.;
#P message 271 167 55 9109513 texture grid;
#P button 26 94 21 0;
#P window linecount 5;
#P message 180 156 88 9109513 reset , drawobject right 0 , drawobject
floor 0 , drawobject front 0 , drawobject left 0;
#P window linecount 1;
#P newex 180 228 220 9109513 jit.gl.sketch sliding @blend_enable 1
@automatic 0;
#P window linecount 5;
#P newex 344 377 172 9109513 jit.gl.gridshape sliding @shape cube @texture
grid @scale 0.15 0.15 0.15 @color 1 0 0 1 @position -0.18 -0.52 @automatic 0
@blend_enable 1 @name cube;
#P window linecount 1;
#P message 90 234 29 9109513 reset;
#P newex 90 252 175 9109513 jit.gl.handle sliding @inherit_transform 1;
#P window linecount 2;
#P newex 36 413 266 9109513 jit.gl.videoplane sliding @position 0. -0.67 0.
@rotatexyz -90. 0. 0. @scale 1. 1. 1. @texture grid @name left @automatic 0;
#P newex 36 449 270 9109513 jit.gl.videoplane sliding @position 1. 0.06 0.
@rotatexyz 0. -90. 0. @scale 1. 0.73 1. @texture grid @name right @automatic
0;
#P newex 36 377 267 9109513 jit.gl.videoplane sliding @position 0. 0.05 -1
@scale 1. 0.73 1. @texture grid @rotatexyz 0. 0. 0. @name front @automatic
0;
#P newex 36 486 283 9109513 jit.gl.videoplane sliding @position -1. 0.05
0.0.3 @rotatexyz 0. 90. 0. @scale 1. 0.73 1. @texture grid @name floor
@automatic 0;
#P window linecount 1;
#P newex 41 250 35 9109513 s draw;
#B color 5;
#N vpatcher 156 369 440 574;
#P window setfont "Sans Serif" 9.;
#P message 67 75 68 9109513 fullscreen $1;
#P toggle 50 75 15 0;
#P newex 92 50 35 9109513 sel 27;
#P newex 50 50 40 9109513 key;
#P outlet 67 97 15 0;
#P fasten 2 0 3 0 97 72 55 72;
#P fasten 3 0 4 0 66 90 66 75;
#P connect 4 0 0 0;
#P fasten 1 0 2 0 91 67 91 52;
#P pop;
#P newobj 0 282 25 9109513 p fs;
#P newex 26 282 175 9109513 jit.gl.render sliding @erase_color 0 0 0 1;
#P newex 26 226 62 9109513 t b b erase b;
#P toggle 26 185 15 0;
#P newex 26 203 50 9109513 qmetro 40;
#P newex 0 304 190 9109513 jit.window sliding @floating 1 @pos 620 450;
#P message 444 153 110 9109513 reset , drawobject cube 0;
#P comment 49 96 100 9109513 start;
#P comment 208 28 305 9109513 automatic , works , but reversing order of
bangs will not draw diffrently;
#P comment 450 86 18 9109513 ??;
#P connect 32 0 30 0;
#P hidden connect 20 0 6 0;
#P hidden fasten 20 0 19 0 31 136 185 136;
#P hidden fasten 20 0 21 0 31 136 276 136;
#P hidden fasten 20 0 3 0 31 136 449 136;
#P connect 30 0 26 0;
#P connect 27 0 26 0;
#P connect 3 0 26 0;
#P connect 38 1 26 0;
#P connect 39 0 18 0;
#P connect 39 0 26 0;
#P connect 31 0 29 0;
#P connect 28 0 33 1;
#P connect 33 0 38 0;
#P connect 34 0 33 0;
#P connect 35 0 33 0;
#P connect 29 0 18 0;
#P connect 19 0 18 0;
#P fasten 37 0 18 0 287 227 185 227;
#P connect 38 0 18 0;
#P connect 25 0 22 3;
#P connect 24 0 22 2;
#P connect 23 0 22 1;
#P connect 16 0 15 0;
#P connect 7 1 10 0;
#P fasten 21 0 8 0 276 277 31 277;
#P fasten 7 2 8 0 65 251 31 251;
#P connect 7 0 8 0;
#P fasten 15 0 8 0 95 276 31 276;
#P connect 5 0 7 0;
#P connect 6 0 5 0;
#P fasten 9 0 4 0 5 302 5 302;
#P window clipboard copycount 40;

On Mon, May 19, 2008 at 9:11 PM, yair reshef wrote:

> http://www.cycling74.com/forums/index.php?t=msg&goto=141769#msg_141769
>
> it deals with a diffrent missunderstanding i had, but when chaning the
> layer num box at the bootom i get no change in drawing order.
>
> aside from that , those drawobject work with automatic 0?
>
> On Mon, May 19, 2008 at 8:58 PM, Wesley Smith
> wrote:
>
>> It does work. I can’t really help you without a patch (perhaps
>> there’s one on another thread, if so post a link).
>> wes
>>
>> On Mon, May 19, 2008 at 10:31 AM, yair reshef wrote:
>> >
>> > ye, my terminology is skewd. what i meant is getting the expected stuff
>> as seen in the jitter pdf. it never worked for me. on any pc configuration i
>> tried in the past 2 years~
>> > see picture i attached before.
>> >
>> > as for the layer thingy, zach tried to educate me on the matter, couple
>> of days ago, but his clear patch didn’t fix it. layer just doesn’t change
>> drawing order for me. on 2-3 pc’s i tried.
>> >
>> >
>> >
>> >
>> >
>> >
>>
>
>

May 19, 2008 | 6:35 pm

> aside from that , those drawobject work with automatic 0?

yes.

I don’t know how the layer thing can be made any more straightforward
than this patch. Try and follow the layer order relationship to color
keeping in mind that things of the same color/layer will have
arbitrary order.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 20 74 309 257;
#P window setfont "Sans Serif" 9.;
#P newex 50 49 61 196617 route layer;
#P message 195 94 69 196617 color 0 0 1 1;
#P message 122 94 69 196617 color 1 1 0 1;
#P message 50 94 69 196617 color 1 0 0 1;
#P newex 50 71 53 196617 sel 0 1 2;
#P inlet 50 29 15 0;
#P outlet 50 114 15 0;
#P connect 1 0 6 0;
#P connect 6 0 2 0;
#P connect 2 0 3 0;
#P connect 5 0 0 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 2 1 4 0;
#P connect 2 2 5 0;
#P pop;
#P newobj 87 179 41 196617 p color;
#N vpatcher 20 74 309 257;
#P window setfont "Sans Serif" 9.;
#P newex 50 49 61 196617 route layer;
#P message 195 94 69 196617 color 0 0 1 1;
#P message 122 94 69 196617 color 1 1 0 1;
#P message 50 94 69 196617 color 1 0 0 1;
#P newex 50 71 53 196617 sel 0 1 2;
#P inlet 50 29 15 0;
#P outlet 50 114 15 0;
#P connect 1 0 6 0;
#P connect 6 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 0 0;
#P connect 4 0 0 0;
#P connect 5 0 0 0;
#P connect 2 1 4 0;
#P connect 2 2 5 0;
#P pop;
#P newobj 89 257 41 196617 p color;
#N vpatcher 20 74 309 257;
#P window setfont "Sans Serif" 9.;
#P newex 50 49 61 196617 route layer;
#P message 195 94 69 196617 color 0 0 1 1;
#P message 122 94 69 196617 color 1 1 0 1;
#P message 50 94 69 196617 color 1 0 0 1;
#P newex 50 71 53 196617 sel 0 1 2;
#P inlet 50 29 15 0;
#P outlet 50 114 15 0;
#P connect 1 0 6 0;
#P connect 6 0 2 0;
#P connect 2 0 3 0;
#P connect 5 0 0 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 2 1 4 0;
#P connect 2 2 5 0;
#P pop;
#P newobj 50 361 41 196617 p color;
#P message 65 318 14 196617 2;
#P message 48 318 14 196617 1;
#P message 32 318 14 196617 0;
#P message 32 341 49 196617 layer $1;
#P message 64 240 14 196617 2;
#P message 47 240 14 196617 1;
#P message 31 240 14 196617 0;
#P message 31 263 49 196617 layer $1;
#P message 63 157 14 196617 2;
#P message 46 157 14 196617 1;
#P message 30 157 14 196617 0;
#P message 30 180 49 196617 layer $1;
#P window linecount 2;
#P newex 32 382 320 196617 jit.gl.gridshape test @shape sphere
@lighting_enable 1 @position 0. 0.25 0 @scale 0.5 0.5 0.5 @color 0 0 1
1 @depth_enable 0 @layer 2;
#P newex 31 283 325 196617 jit.gl.gridshape test @shape sphere
@lighting_enable 1 @position 0.25 0 0 @scale 0.5 0.5 0.5 @color 1 1 0
1 @depth_enable 0 @layer 1;
#P newex 30 203 329 196617 jit.gl.gridshape test @shape sphere
@lighting_enable 1 @position -0.25 0 0 @scale 0.5 0.5 0.5 @color 1 0 0
1 @depth_enable 0 @layer 0;
#P window linecount 1;
#P message 138 70 34 196617 reset;
#P newex 138 90 186 196617 jit.gl.handle test @inherit_transform 1;
#P newex 3 90 48 196617 r render;
#P toggle 118 61 15 0;
#N vpatcher 53 128 279 297;
#P inlet 106 30 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 43 95 47 196617 gate 1 1;
#P newex 42 116 41 196617 s draw;
#P window linecount 1;
#P newex 17 52 58 196617 t b b erase;
#P inlet 17 32 15 0;
#P outlet 17 83 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P fasten 2 2 0 0 70 75 22 75;
#P connect 4 0 3 0;
#P fasten 5 0 4 0 111 88 48 88;
#P fasten 2 1 4 1 46 83 85 83;
#P lcolor 15;
#P pop;
#P newobj 56 90 42 196617 p Draw;
#P toggle 194 29 15 0;
#P message 194 49 68 196617 fullscreen $1;
#N vpatcher 30 89 166 253;
#P window setfont "Sans Serif" 9.;
#P newex 50 71 35 196617 sel 27;
#P newex 50 50 40 196617 key;
#P outlet 50 93 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P newobj 211 29 33 196617 p Esc;
#P newex 194 67 151 196617 jit.window test @depthbuffer 1;
#P toggle 56 42 15 0;
#P newex 56 61 57 196617 qmetro 30;
#P newex 56 117 187 196617 jit.gl.render test @erase_color 0 0 0 1;
#P connect 15 0 12 0;
#P connect 15 0 29 0;
#P connect 29 0 12 0;
#P connect 19 0 13 0;
#P connect 19 0 28 0;
#P connect 28 0 13 0;
#P connect 23 0 14 0;
#P connect 23 0 27 0;
#P connect 27 0 14 0;
#P connect 26 0 23 0;
#P connect 25 0 23 0;
#P connect 24 0 23 0;
#P connect 20 0 19 0;
#P connect 21 0 19 0;
#P connect 22 0 19 0;
#P connect 18 0 15 0;
#P connect 17 0 15 0;
#P connect 16 0 15 0;
#P connect 5 0 3 0;
#P connect 6 0 5 0;
#P connect 4 0 6 0;
#P connect 11 0 10 0;
#P fasten 8 0 7 1 123 83 93 83;
#P fasten 9 0 0 0 8 112 61 112;
#P connect 7 0 0 0;
#P fasten 10 0 0 0 143 112 61 112;
#P connect 1 0 7 0;
#P connect 2 0 1 0;
#P window clipboard copycount 30;

May 19, 2008 | 6:58 pm

um, jit.gl.sketch needs to be automatic 1 or receive a bang to draw.
I think this is your problem.

wes

On Mon, May 19, 2008 at 11:27 AM, yair reshef wrote:
> especially for this thread, i made a cube!
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P message 436 102 57 9109513 automatic 1;
> #P newex 192 110 27 9109513 t b b;
> #P message 282 206 29 9109513 reset;
> #P comment 227 50 198 9109513 disabled , play with layers , not working
> for me;
> #P message 211 49 14 9109513 0;
> #P message 192 28 14 9109513 1;
> #P newex 192 89 42 9109513 gate 1 1;
> #P number 496 84 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 392 85 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 495 102 42 9109513 layer $1;
> #P message 392 102 42 9109513 layer $1;
> #P newex 224 68 33 9109513 r draw;
> #B color 5;
> #P message 415 153 29 9109513 reset;
> #P newex 415 170 220 9109513 jit.gl.sketch sliding @blend_enable 1
> @automatic 0;
> #P flonum 138 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 98 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 58 579 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 58 596 116 9109513 pak position 0. 0. 0.;
> #P message 271 167 55 9109513 texture grid;
> #P button 26 94 21 0;
> #P window linecount 5;
> #P message 180 156 88 9109513 reset , drawobject right 0 , drawobject
> floor 0 , drawobject front 0 , drawobject left 0;
> #P window linecount 1;
> #P newex 180 228 220 9109513 jit.gl.sketch sliding @blend_enable 1
> @automatic 0;
> #P window linecount 5;
> #P newex 344 377 172 9109513 jit.gl.gridshape sliding @shape cube @texture
> grid @scale 0.15 0.15 0.15 @color 1 0 0 1 @position -0.18 -0.52 @automatic 0
> @blend_enable 1 @name cube;
> #P window linecount 1;
> #P message 90 234 29 9109513 reset;
> #P newex 90 252 175 9109513 jit.gl.handle sliding @inherit_transform 1;
> #P window linecount 2;
> #P newex 36 413 266 9109513 jit.gl.videoplane sliding @position 0. -0.67 0.
> @rotatexyz -90. 0. 0. @scale 1. 1. 1. @texture grid @name left @automatic 0;
> #P newex 36 449 270 9109513 jit.gl.videoplane sliding @position 1. 0.06 0.
> @rotatexyz 0. -90. 0. @scale 1. 0.73 1. @texture grid @name right @automatic
> 0;
> #P newex 36 377 267 9109513 jit.gl.videoplane sliding @position 0. 0.05 -1
> @scale 1. 0.73 1. @texture grid @rotatexyz 0. 0. 0. @name front @automatic
> 0;
> #P newex 36 486 283 9109513 jit.gl.videoplane sliding @position -1. 0.05
> 0.0.3 @rotatexyz 0. 90. 0. @scale 1. 0.73 1. @texture grid @name floor
> @automatic 0;
> #P window linecount 1;
> #P newex 41 250 35 9109513 s draw;
> #B color 5;
> #N vpatcher 156 369 440 574;
> #P window setfont "Sans Serif" 9.;
> #P message 67 75 68 9109513 fullscreen $1;
> #P toggle 50 75 15 0;
> #P newex 92 50 35 9109513 sel 27;
> #P newex 50 50 40 9109513 key;
> #P outlet 67 97 15 0;
> #P fasten 2 0 3 0 97 72 55 72;
> #P fasten 3 0 4 0 66 90 66 75;
> #P connect 4 0 0 0;
> #P fasten 1 0 2 0 91 67 91 52;
> #P pop;
> #P newobj 0 282 25 9109513 p fs;
> #P newex 26 282 175 9109513 jit.gl.render sliding @erase_color 0 0 0 1;
> #P newex 26 226 62 9109513 t b b erase b;
> #P toggle 26 185 15 0;
> #P newex 26 203 50 9109513 qmetro 40;
> #P newex 0 304 190 9109513 jit.window sliding @floating 1 @pos 620 450;
> #P message 444 153 110 9109513 reset , drawobject cube 0;
> #P comment 49 96 100 9109513 start;
> #P comment 208 28 305 9109513 automatic , works , but reversing order of
> bangs will not draw diffrently;
> #P comment 450 86 18 9109513 ??;
> #P connect 32 0 30 0;
> #P hidden connect 20 0 6 0;
> #P hidden fasten 20 0 19 0 31 136 185 136;
> #P hidden fasten 20 0 21 0 31 136 276 136;
> #P hidden fasten 20 0 3 0 31 136 449 136;
> #P connect 30 0 26 0;
> #P connect 27 0 26 0;
> #P connect 3 0 26 0;
> #P connect 38 1 26 0;
> #P connect 39 0 18 0;
> #P connect 39 0 26 0;
> #P connect 31 0 29 0;
> #P connect 28 0 33 1;
> #P connect 33 0 38 0;
> #P connect 34 0 33 0;
> #P connect 35 0 33 0;
> #P connect 29 0 18 0;
> #P connect 19 0 18 0;
> #P fasten 37 0 18 0 287 227 185 227;
> #P connect 38 0 18 0;
> #P connect 25 0 22 3;
> #P connect 24 0 22 2;
> #P connect 23 0 22 1;
> #P connect 16 0 15 0;
> #P connect 7 1 10 0;
> #P fasten 21 0 8 0 276 277 31 277;
> #P fasten 7 2 8 0 65 251 31 251;
> #P connect 7 0 8 0;
> #P fasten 15 0 8 0 95 276 31 276;
> #P connect 5 0 7 0;
> #P connect 6 0 5 0;
> #P fasten 9 0 4 0 5 302 5 302;
> #P window clipboard copycount 40;
>
>
> On Mon, May 19, 2008 at 9:11 PM, yair reshef
wrote:
>>
>> http://www.cycling74.com/forums/index.php?t=msg&goto=141769#msg_141769
>>
>> it deals with a diffrent missunderstanding i had, but when chaning the
>> layer num box at the bootom i get no change in drawing order.
>>
>> aside from that , those drawobject work with automatic 0?
>>
>> On Mon, May 19, 2008 at 8:58 PM, Wesley Smith
>> wrote:
>>>
>>> It does work. I can’t really help you without a patch (perhaps
>>> there’s one on another thread, if so post a link).
>>> wes
>>>
>>> On Mon, May 19, 2008 at 10:31 AM, yair reshef wrote:
>>> >
>>> > ye, my terminology is skewd. what i meant is getting the expected stuff
>>> > as seen in the jitter pdf. it never worked for me. on any pc configuration i
>>> > tried in the past 2 years~
>>> > see picture i attached before.
>>> >
>>> > as for the layer thingy, zach tried to educate me on the matter, couple
>>> > of days ago, but his clear patch didn’t fix it. layer just doesn’t change
>>> > drawing order for me. on 2-3 pc’s i tried.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>
>
>
>
>

May 19, 2008 | 7:36 pm

thanks, your example works for me, doing a search for [layer "depth_enable
0" jit.gl.render] proved very helpful.

>um, jit.gl.sketch needs to be automatic 1 or receive a bang to draw.
>I think this is your problem.
this is contradicting, if i have layer enabled i shouldnt be needing to bang
anything.

turning automatic on makes the layers apear still i cant get my example
sorting drawing order with layers+drawobject.

or in this one from the archives

#P button 42 65 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 44 122 41 9109513 togedge;
#P message 82 149 42 9109513 layer 88;
#P message 202 150 42 9109513 layer 77;
#P message 157 150 42 9109513 layer 88;
#P message 40 150 42 9109513 layer 77;
#P flonum 257 174 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 254 195 78 9109513 position 0 0 $1;
#P newex 447 490 258 9109513 jit.gl.videoplane context @layer 600 @texture
grabbed;
#P newex 448 397 247 9109513 jit.gl.texture context @name grabbed @dim 720
480;
#P newex 355 178 45 9109513 loadbang;
#P newex 615 191 100 9109513 jit.window context;
#P window setfont "Sans Serif" 18.;
#P user jit.fpsgui 639 97 60 9109522 0;
#P window setfont "Sans Serif" 9.;
#P newex 615 139 45 9109513 t b erase;
#P number 647 35 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 615 35 15 0;
#P newex 615 61 55 9109513 metro 20;
#P newex 615 167 107 9109513 jit.gl.render context;
#P message 355 204 236 9109513 reset , drawobject shape1 0 , drawobject
shape2 0;
#P newex 355 228 240 9109513 jit.gl.sketch context @layer 200 @capture
grabbed;
#P window linecount 2;
#P comment 31 89 279 9109513 render order : 1 , 2 , 3… That means that
we render layer 77 , then 88 , then grab at 200 and finally show layer
600.;
#P flonum 31 338 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 31 360 83 9109513 position $1 0 0;
#P window linecount 2;
#P newex 31 383 374 9109513 jit.gl.gridshape context @scale 0.2 0.2 0.2
@color 0 1 0 0.5 @blend_enable 1 @position 0.18 0 0 @shape plane @layer 88
@name shape2 @automatic 0 @depth_enable 0;
#P flonum 31 241 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 31 263 78 9109513 position 0 0 $1;
#P window linecount 2;
#P newex 31 288 329 9109513 jit.gl.gridshape context @scale 0.1 0.1 0.1
@color 1 0 0 0.5 @shape plane @layer 77 @name shape1 @automatic 0
@depth_enable 0 @blend_enable 1;
#P connect 26 0 25 0;
#P connect 25 1 22 0;
#P connect 25 1 23 0;
#P connect 25 0 21 0;
#P connect 25 0 24 0;
#P connect 23 0 3 0;
#P connect 22 0 0 0;
#P connect 24 0 3 0;
#P connect 21 0 0 0;
#P connect 4 0 3 0;
#P connect 1 0 0 0;
#P connect 10 0 13 0;
#P connect 10 0 14 0;
#P connect 12 0 10 1;
#P connect 13 1 9 0;
#P connect 13 0 9 0;
#P connect 11 0 10 0;
#P connect 19 0 7 0;
#P connect 8 0 7 0;
#P connect 16 0 8 0;
#P connect 20 0 19 0;
#P connect 5 0 4 0;
#P connect 2 0 1 0;
#P window clipboard copycount 27;

May 19, 2008 | 8:18 pm

>>um, jit.gl.sketch needs to be automatic 1 or receive a bang to draw.
>>I think this is your problem.
> this is contradicting, if i have layer enabled i shouldnt be needing to bang
> anything.

I think you’re misunderstanding what layer means. It’s simply a
relationship of drawing order between objects in the draw list. It
has nothing to do with whether an object is actually drawn. This is
completely determined by @automatic 1 or some other method for it to
get the "draw" message such as explicitly sending it such a message.

wes

May 19, 2008 | 8:36 pm

Thanks Wes!
Depth_enable 0 makes everything work how I wanted

May 20, 2008 | 8:59 am

thanks for the patience wes

On Mon, May 19, 2008 at 11:36 PM, Aaron Faulstich
wrote:

>
> Thanks Wes!
> Depth_enable 0 makes everything work how I wanted
>

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

Forums > Jitter