Forums > Jitter

jit.dx.grab hates jit.gl.texture?

May 20, 2008 | 7:16 pm

I want to grab a live video feed with jit.dx.grab and use it as a texture using jit.gl.texture. However, no image seems to go through to jit.gl.texture at all.
However, when I use jit.qt.grab instead, the video works as a gl.texture.

But I would rather use jit.dx.grab, as I am working on a windows machine, and jit.gt.grab seems to be only willing to work on 1 of my 2 osprey capture cards.

Is there something I can do to make jit.dx.grab work on jit.gl.texture?

I am running Max 4.6.3 and Jitter 1.6.3 on a Windows XP machine.


May 20, 2008 | 7:49 pm

it should work, osprey works with my jit.dx.grab.
try the included capture program , if it works dx will work to.
d/l drivers from site.

On Tue, May 20, 2008 at 10:16 PM, Ed Purver wrote:

>
> I want to grab a live video feed with jit.dx.grab and use it as a texture
> using jit.gl.texture. However, no image seems to go through to
> jit.gl.texture at all.
> However, when I use jit.qt.grab instead, the video works as a gl.texture.
>
> But I would rather use jit.dx.grab, as I am working on a windows machine,
> and jit.gt.grab seems to be only willing to work on 1 of my 2 osprey capture
> cards.
>
> Is there something I can do to make jit.dx.grab work on jit.gl.texture?
>
> I am running Max 4.6.3 and Jitter 1.6.3 on a Windows XP machine.
>


May 20, 2008 | 8:47 pm

osprey/dx.grab is able to grab the video

however, my issue is that jit.gl.texture will not use that video as a
texture when it is grabbed with jit.dx.grab. only when it is grabbed
with jit.qt.grab.

i’m wondering if anyone knows why?

On May 20, 2008, at 3:49 PM, yair reshef wrote:

> it should work, osprey works with my jit.dx.grab.
> try the included capture program , if it works dx will work to.
> d/l drivers from site.
>
> On Tue, May 20, 2008 at 10:16 PM, Ed Purver wrote:
>
> I want to grab a live video feed with jit.dx.grab and use it as a
> texture using jit.gl.texture. However, no image seems to go through
> to jit.gl.texture at all.
> However, when I use jit.qt.grab instead, the video works as a
> gl.texture.
>
> But I would rather use jit.dx.grab, as I am working on a windows
> machine, and jit.gt.grab seems to be only willing to work on 1 of
> my 2 osprey capture cards.
>
> Is there something I can do to make jit.dx.grab work on
> jit.gl.texture?
>
> I am running Max 4.6.3 and Jitter 1.6.3 on a Windows XP machine.
>


May 20, 2008 | 9:31 pm

anything unusual when you run this patch?

#P toggle 341 263 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 359 261 27 9109513 gate;
#P user jit.pwindow 588 309 62 42 0 0 0 0 1 0;
#P user jit.pwindow 527 309 62 42 0 0 0 0 1 0;
#P user jit.pwindow 466 309 62 42 0 0 0 0 1 0;
#P user jit.pwindow 405 309 62 42 0 0 0 0 1 0;
#P newex 406 284 254 9109513 jit.unpack;
#P window setfont "Sans Serif" 12.;
#P user jit.fpsgui 651 310 60 9109516 3;
#P window setfont "Sans Serif" 9.;
#P newex 406 261 44 9109513 jit.matrix;
#P user jit.pwindow 567 194 62 42 0 0 0 0 1 0;
#P user jit.pwindow 506 194 62 42 0 0 0 0 1 0;
#P user jit.pwindow 445 194 62 42 0 0 0 0 1 0;
#P user jit.pwindow 384 194 62 42 0 0 0 0 1 0;
#P newex 385 169 254 9109513 jit.unpack;
#P window setfont "Sans Serif" 12.;
#P user jit.fpsgui 630 195 60 9109516 3;
#P window setfont "Sans Serif" 9.;
#P newex 385 146 44 9109513 jit.matrix;
#P newex 314 325 89 9109513 jit.gl.videoplane tab;
#P newex 314 236 73 9109513 jit.gl.texture tab;
#P message 314 99 28 9109513 open;
#P toggle 255 51 15 0;
#P newex 208 52 45 9109513 qmetro 2;
#P newex 208 76 53 9109513 t b b erase;
#P newex 208 149 63 9109513 jit.window tab;
#P newex 208 124 70 9109513 jit.gl.render tab;
#P newex 314 123 49 9109513 jit.dx.grab;
#P connect 24 0 23 0;
#P connect 23 0 16 0;
#P connect 7 0 8 0;
#P connect 7 0 23 1;
#P connect 16 0 18 0;
#P fasten 16 0 17 0 411 281 656 281;
#P connect 18 3 22 0;
#P connect 18 2 21 0;
#P connect 18 1 20 0;
#P connect 18 0 19 0;
#P connect 0 0 7 0;
#P fasten 0 0 9 0 319 144 390 144;
#P connect 9 0 11 0;
#P fasten 9 0 10 0 390 166 635 166;
#P connect 11 3 15 0;
#P connect 11 2 14 0;
#P connect 11 1 13 0;
#P connect 11 0 12 0;
#P connect 6 0 0 0;
#P connect 3 1 0 0;
#P connect 3 0 1 0;
#P connect 3 2 1 0;
#P connect 4 0 3 0;
#P connect 5 0 4 0;
#P window clipboard copycount 25;

On Tue, May 20, 2008 at 11:47 PM, Ed Purver wrote:

> osprey/dx.grab is able to grab the video
>
> however, my issue is that jit.gl.texture will not use that video as a
> texture when it is grabbed with jit.dx.grab. only when it is grabbed with
> jit.qt.grab.
>
> i’m wondering if anyone knows why?
>
>
> On May 20, 2008, at 3:49 PM, yair reshef wrote:
>
> it should work, osprey works with my jit.dx.grab.
>> try the included capture program , if it works dx will work to.
>> d/l drivers from site.
>>
>> On Tue, May 20, 2008 at 10:16 PM, Ed Purver wrote:
>>
>> I want to grab a live video feed with jit.dx.grab and use it as a texture
>> using jit.gl.texture. However, no image seems to go through to
>> jit.gl.texture at all.
>> However, when I use jit.qt.grab instead, the video works as a gl.texture.
>>
>> But I would rather use jit.dx.grab, as I am working on a windows machine,
>> and jit.gt.grab seems to be only willing to work on 1 of my 2 osprey capture
>> cards.
>>
>> Is there something I can do to make jit.dx.grab work on jit.gl.texture?
>>
>> I am running Max 4.6.3 and Jitter 1.6.3 on a Windows XP machine.
>>
>>
>
>


May 20, 2008 | 10:12 pm

Hi Curly,
This is sounding like a patch issue to me. Try making the most simple patch you can involving jit.dx.grab and jit.gl.texture, and see if that works. Does it start working if you go directly to jit.gl.videoplane instead?

Let us know what you find, and post a simple patch demonstrating the issue if you get stuck.

Best,
Andrew B.


May 20, 2008 | 10:44 pm

Thank you both for your responses.
You’re right, Andrew, it is a patch issue. But I don’t know why. I
tried replicating the core of my issue: jit.dx.grab > jit.gl.texture
> jit.gl.mesh in a more simple patch and that works fine.
I don’t have any problems running the test patch that Yair posted.
I have no idea why it won’t work in my bigger patch (too big to post,
I fear).

On May 20, 2008, at 6:12 PM, Andrew Benson wrote:

>
> Hi Curly,
> This is sounding like a patch issue to me. Try making the most
> simple patch you can involving jit.dx.grab and jit.gl.texture, and
> see if that works. Does it start working if you go directly to
> jit.gl.videoplane instead?
>
> Let us know what you find, and post a simple patch demonstrating
> the issue if you get stuck.
>
> Best,
> Andrew B.
>
>


May 21, 2008 | 3:21 am

Sounds like you might be losing the alpha channel.
I know that I just replace the alpha channel from jit.dx.grab with an all "white" plane, so I’m not dealing with differences between capture methods. I seem to remember one of my capture devices produced alpha and another didn’t at some point, so I just went this route.


May 21, 2008 | 4:33 am

hey leo, I owe you a big thank you. That’s exactly what the problem
is. Stupidly I didn’t notice that when I ran Yair’s test patch. And
I guess it was working on other tests I did because the gl.videoplane
or gl.mesh had the blend_enable set to 0, whereas in my problem
patch, it is set to 1.

thanks very much everyone!

On May 20, 2008, at 11:21 PM, Leo Mayberry wrote:

>
> Sounds like you might be losing the alpha channel.
> I know that I just replace the alpha channel from jit.dx.grab with
> an all "white" plane, so I’m not dealing with differences between
> capture methods. I seem to remember one of my capture devices
> produced alpha and another didn’t at some point, so I just went
> this route.
>
>


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