Forums > Jitter

jit.gl.videoplane resolution

August 5, 2014 | 11:13 pm

If I set the resolution of jit.qt.movie, is that resolution inherited to a jit.gl.videoplane?

I am importing a simple image (a perfect circle that I created in photoshop) but it gets distorted. I would like to have it set up to show at native resolution but I’m having problems doing so. I can scale the videoplane as a work around but ideally, the image would load in it’s native resolution. Most likely I’m missing something simple, but I have looked and looked and cannot find a solution. Anyone know the fix?

– Pasted Max Patch, click to expand. –
Attachments:
  1. round

August 6, 2014 | 1:17 am

I’m no expert but my suggestion would be to explore the attributes of the jit.qt.movie object. @adapt 1 or maybe @highquality 1? I could be completely wrong of course.


August 6, 2014 | 11:26 am

the easiest way to keep default aspect-ratio (in addition to @adapt 1 as mentioned) is to send to jit.gl.cornerpin @preserve_aspect 1.
you probably also want to set @drawcorners 0 to hide the corner handles.

if you want black in the background, make sure you set your gl.render @erase_color to 0 0 0 1


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