jit.gl.videoplane resolution

Andrew Blanton's icon

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

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

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?

round.png
png
nedrush's icon

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.

Rob Ramirez's icon

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