XML Feeds

.

[jitter] Bug report: jit.gl.slab not able to change context

Trond Lossius lossius at bek.no
Sun Aug 12 13:31:24 MDT 2007


Yes, I have noticed that. I have also tested what happens if it is
instantiated drawing to an existing context, and then changed to a
non-existing context and back again. That seems to work fine, so to me
the problem seems to be somehow related to instantiation of the slab
when not initially set to an existing context.

I am also experience another problem that might be related. In a patch I
use three jit.gl.slab objects, two of them with @file co.alphablend.jxs
and the last one using a custom made slab.

Sometimes when loading the patch and starting video processing, I get a
stream of these error messages:

jit.gl.pbuffer: error binding texture: GL Error: Invalid operation
• error: jit.gl.texture: unable to create texture!

I of course assumed that this might be due to some problem with my
custom slab, but testing yesterday revealed that sometimes when loading
the patch one of the jit.gl.slab @file co.alphablend.jxs objects would
refuse to work. To solve the problem I would have to recreate it.

I could post the patch, but it involves a Jamoma module and not only
standard Max externals, so I won't do so unless someone asks for it. 
Apart from the Jamoma module the patch is pretty straight-forward.

Thanks,
Trond




vade wrote:
> Hm. If you control/option click, it *says* its drawing to 'fa', so it 
> might be a different issue, but either way it isnt working.
> 
> :)
> 
> On Aug 11, 2007, at 11:36 AM, Trond Lossius wrote:
> 
>> Summary:
>>
>> jit.gl.slab do not seem able to change to another context than what it 
>> was instantiated with.
>>
>> Steps to Reproduce:
>>
>> 1) Open the patch below.
>> 2) Start qmetro.
>>
>> Result:
>> You get a white jit.window. Not surprising really, as jit.gl.slab is 
>> set to draw to another context ("bar") than the one that is rendered 
>> ("fa").
>>
>> 4) Change drawinf context for jit.gl.slab by clicking the "drawto fa" 
>> message box.
>>
>> Expected result:
>> jit.gl.slab should now draw to the proper context, and images be seen.
>>
>> Actual result:
>> The window remains white.
>>
>> 5) Try reloading the slab by clicking the "read co.additive.jxs" 
>> message box.
>>
>> Result:
>> Nothing
>>
>> 6) Click the "getparamlist" message box
>>
>> Result:
>> Nothing is reported to the Max window.
>>
>> 7) Recreate the jit.gl.slab object by changing the "bar" argument for 
>> "fa".
>>
>> Result: Only now the slab start working.
>>
>>
>> Regression:
>> Max 4.6.3, Jitter 1.6.3.
>> Max OSX 10.4.10
>> 2.33 GHz Intel Core 2 Duo MacBookPro
>>
>>
>> Am I missing something, or is there a problem here?
>>
>> Thanks,
>> Trond
>>
>>
>>
>>
>>
>> #P window setfont "Sans Serif" 9.;
>> #P window linecount 1;
>> #P newex 158 59 32 196617 sel 1;
>> #P message 158 86 102 196617 read countdown.mov;
>> #P message 317 86 82 196617 read dishes.mov;
>> #P message 27 196 100 196617 read co.additive.jxs;
>> #P message 37 215 54 196617 drawto fa;
>> #P newex 317 127 144 196617 jit.qt.movie 320 240;
>> #P flonum 239 160 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
>> #P message 239 182 57 196617 amount \$1;
>> #P newex 238 200 76 196617 prepend param;
>> #P newex 342 276 32 196617 print;
>> #P message 168 202 67 196617 getparamlist;
>> #P newex 21 145 70 196617 jit.window fa;
>> #P newex 158 276 182 196617 jit.gl.videoplane fa @scale 1.333 1. 1.;
>> #P newex 21 123 121 196617 jit.gl.render fa @ortho 2;
>> #P newex 21 79 58 196617 t b b erase;
>> #P newex 158 249 169 196617 jit.gl.slab bar @file co.additive.jxs;
>> #P toggle 21 37 15 0;
>> #P newex 21 58 51 196617 qmetro 2;
>> #P newex 158 127 144 196617 jit.qt.movie 320 240;
>> #P comment 177 161 62 196617 mix amount;
>> #P connect 3 0 2 0;
>> #P connect 2 0 5 0;
>> #P connect 5 0 6 0;
>> #P fasten 5 2 6 0 74 105 26 105;
>> #P fasten 3 0 19 0 26 55 163 55;
>> #P connect 19 0 18 0;
>> #P connect 18 0 1 0;
>> #P fasten 5 1 1 0 50 117 163 117;
>> #P fasten 11 0 4 0 243 223 163 223;
>> #P connect 1 0 4 0;
>> #P fasten 9 0 4 0 173 223 163 223;
>> #P fasten 15 0 4 0 42 239 163 239;
>> #P fasten 16 0 4 0 32 239 163 239;
>> #P connect 4 0 7 0;
>> #P connect 12 0 11 0;
>> #P connect 13 0 12 0;
>> #P connect 14 0 4 1;
>> #P fasten 19 0 17 0 163 81 322 81;
>> #P connect 17 0 14 0;
>> #P fasten 5 1 14 0 50 117 322 117;
>> #P fasten 4 1 10 0 322 271 347 271;
>> #P window clipboard copycount 20;
>>
>> _______________________________________________
>> jitter mailing list
>> jitter at cycling74.com
>> http://www.cycling74.com/mailman/listinfo/jitter
> 
> v a d e //
> 
> www.vade.info
> abstrakt.vade.info
> 
> 
> 
> 




More information about the jitter mailing list