Can't get a resolution higher than 320x240 with jit.dx.grab

adamribaudo's icon

No matter what dim I send to jit.dx.grab, it seems to use the same resolution. For instance if I use my PS3 Eye Cam's test app, I can produce a picture at a resolution of 640x480 no problem:

But if I use jit.dx.grab, I can never produce an image with any higher resolution than this:

I've already set the size of the jit.window object to 640x480. Any help?

seejayjames's icon

the jit.window is only the viewer. set the dim in the jit.dx.grab, that's what matters. for best viewing results keep them both the same (or scale the viewer by a power of 2), but whatever you set the jit.window to, it will scale what's coming in to fit.

Click the left inlet on both the jit.dx.grab and the jit.window objects... notice that only the dx.grab has "dim" as an attribute.

adamribaudo's icon

sorry, maybe my post wasn't clear enough, but I am setting the dim of jit.dx.grab to 640x480 and seeing the results posted above.

Any other suggestions?

adamribaudo's icon

Here are the inspector settings for my jit.dx.grab object:

David Beaudry's icon

What dim is reported coming directly out or the jit.dx.grab object via jit.matrixinfo of the jit.fpsgui? And posting a patch is going to get you the quickest help...we can only guess what might be wrong with your patch.

db

EDIT: changed "of" to "or" in first sentence above

adamribaudo's icon

jit.matrixinfo is showing "dim 640 480"

Max Patch
Copy patch and select New From Clipboard in Max.

Here is a test patch. It's a very basic patch, I don't think anything is necessarily wrong with it (although it's possible). I'm thinking maybe there are DirectX settings somewhere within Windows that would force the resolution?

adamribaudo's icon

any ideas of anything I can try differently? Has any one been able to get a higher resolution with Windows? How about a PS3 Eye Cam?

FRid's icon

Hello,

It seems i can have a resolution of 800-600 with dx.grab but the funny thing is the max-window prints 800-600 but when i check the inspector it doesn't show any resolution at all (resolution-field is blank). The inspector does say that the dim is 800-600 so i guess it works? I've also tested it with two webcams (1 cheap+ 1 slightly more expensive) it seems the expensive one works, the cheap one does to a certain extent but the pixels are scaled instead of really displaying 800-600 so it doesn't really count. Hope this is useful.

FRid

Max Patch
Copy patch and select New From Clipboard in Max.