Forums > Jitter

jit.gl.videoplane sorting


Jun 10 2008 | 10:39 pm

Ok i’ve read a few threads but haven’t quite got to the bottom of an issue I’m having.

Simple patch, three jit.gl.videoplane objects are drawing to a pwindow. I have all the blending and everything working fine.. everything is cool.

I save the patch and reload and the videplanes are drawing in a different order. If I change the images around I can get back to where I want to be again.

But how can I predictably sort three videoplanes?

S

Jun 10 2008 | 10:43 pm

jit.gl.videoplane @layer 1
jit.gl.videoplane @layer 2
jit.gl.videoplane @layer 3

wes

On Tue, Jun 10, 2008 at 3:39 PM, Steven Taylor wrote:
>
> Ok i’ve read a few threads but haven’t quite got to the bottom of an issue I’m having.
>
> Simple patch, three jit.gl.videoplane objects are drawing to a pwindow. I have all the blending and everything working fine.. everything is cool.
>
> I save the patch and reload and the videplanes are drawing in a different order. If I change the images around I can get back to where I want to be again.
>
> But how can I predictably sort three videoplanes?
>
> S
>

Jun 10 2008 | 10:44 pm

On 11 juin 08, at 00:39, Steven Taylor wrote:

> But how can I predictably sort three videoplanes?

The order is undefined in automatic mode. You can make sure of the
redrawing order by turning of automatic attribute, or by using the
layer attribute which specify the order.

HTH,
ej

Jun 10 2008 | 10:45 pm

Hi Wes,

Sorry I meant to say I tried that.. it makes all my videoplanes dissappear.. or render in black..

S

Jun 10 2008 | 10:54 pm

ahhh

I was doing

jit.gl.videoplane @layer 1 foo
jit.gl.videoplane @layer 2 foo
jit.gl.videoplane @layer 3 foo

not

jit.gl.videoplane foo @layer 1
jit.gl.videoplane foo @layer 2
jit.gl.videoplane foo @layer 3

thanks!

Jun 10 2008 | 10:57 pm

what about adding jit.gl.videoplane @depth_enable 0? what is your blend mode?
wes

On Tue, Jun 10, 2008 at 3:45 PM, Steven Taylor wrote:
>
> Hi Wes,
>
> Sorry I meant to say I tried that.. it makes all my videoplanes dissappear.. or render in black..
>
> S
>

Jun 10 2008 | 10:58 pm

also add @depth_enable 0 and @blend_enable 1
layer overrides the automatic depth but depth_enable doesn’t know about
that.

post a patch

On Wed, Jun 11, 2008 at 1:45 AM, Steven Taylor wrote:

>
> Hi Wes,
>
> Sorry I meant to say I tried that.. it makes all my videoplanes
> dissappear.. or render in black..
>
> S
>

Jun 10 2008 | 11:00 pm

yeah I’m using @depth_enable 0 and @blend_enable 1

as i mentioned above it was purely the order of arguments that was the problem. typical example of starting a thread and going doh! Still at least we only make these mistakes once :)

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

Forums > Jitter