simple question, clearing jit.window
I have a very simple patch to run 4 videos of differing resolutions.
In order to deal with the various resolutions and aspect ratios, I’m resizing and repositioning my jit.window when each video is loaded into jit.qt.movie.
So, for example, when I load a 640X480 movie, I set a 1024X768 window at 0,0.
When I load a 1024X576 movie (720P scaled down to fit 1024), I set a 1024X576 window at 0,103 so that it’s centered on the screen and not squished as it would be if I went full screen. My desktop background is black, so it basically just looks letterboxed.
I did it this way because I needed the patch to work tomorrow night, and I’m too new to jitter (though not to max) to do anything gl related to make this work.
Everything is working just fine and dandy. I just have one little quirk I’d love to be able to fix.
When I resize and reposition the window, sometimes portions of the window are white until I start playing the next video. I think I understand why this is happening, but I’d like to be able to fix it if possible.
Basically, I just want to be able to dump a black matrix to the window object to essentially clear it out.
Unfortunately, I don’t quite understand the matrix stuff enough yet to make it work. My guess is that it’s very simple. Can this be done?
Here’s my existing patch.
(FYI my position coordinates are actually 1366,0 because I’m positioning the videos on a secondary monitor and my laptop’s display is 1366X768).
----------begin_max5_patcher---------- 1551.3oc4Zs0iahCF84L+JrP6SqRi7MLvJUoY+WToNqpHAOIzBlTvoc5V0+6 quPRHcFtMShAo8gPR.B93iOeWc94cK7VW7DuxC7WfOBVr3m2sXg4T5Srn96K 7xieZSVbk4179bpb0i6q1dH0ao8xEGjYbo7G641mim2R0Kv+Te48k7JtPFKS KDepjuQZuKDyeEbIH.qOFB0GIrUvS+rGKDRQbt4Y582kowYGGOwg7TgZDM3A cbThka1kJ11XDHAL8SkxBZYHZhrlOqzDyfVr9yuCC8Zfmpz+0fGjFzm.ic9a PCVexec2c5CKGHgJ3eWMRGGFI+IC78ZmdSERuwRS31oIF1vO0rEAuxeI.CaP SMnCDaTzA5UPGaJxyUKJOiOVWltcmTvU2V2BKbfUXgzGshrKlNucgEBYzRHh 4nO7YCw.DVH+QwjvWASlq3p3s7mwjHHrcS29LawAF0RjYt6ajLXx3Y2tziHy JGEZFnZ1kLR1k7hrK6JpSawr8OAJ5cUq76iYEwWWqWh0ulukzvOSK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suJ0Fgobv8wIw6kJOz2GePVXJcW4v99uUj 00lVby6AMgZSzlB6Lt1qlBMOMiwyu8m0x.I84ujWqJNTt43r+nWCvYPkvqjo hStY934PHMtocoIIbQydekmlruP4m+jqtWbUdTXB0Clz4B3PLoaEb+7TfawD a9gonA.IcA1tjlzCGsGLE4dHMynIxPV5nSvRWedB9MyfdwjOlsJBBUIfnp2v 3dlY+K6cwWhrtuY5l1Goca+1mH39lHzQNQTnCGEEEFpvdPyIRvylHvvq3Dgz 2Dws9l0EK2u0jagj+7CRAyOHEM6fz7acifF.jbaBZzg.IhacBn2+mdCUPbKO EN.Zx2srzfR7f59UtdwDyskfDNfvb3H2io9xg.G3dL0aoZ9tGS8omvjYncGY 9Y24V4zfZFgaESytfu34WPkAYv4VHwlcPBilerDY9AogvRn4mO.WCoAgIGmy zfZGI4hDFt4xogHvguAZR8kec2+gPmcfh -----------end_max5_patcher-----------
So, this doesn’t happen in Max 6. I still only have Max 5 but have been running this patch in Max 6 runtime since it runs slightly more efficiently.
The white parts of the window when changing sizes does not occur in 6, just 5.
However, I would still love a fix if there is one because if I stop the video without fading out (brightness to 0) the last frame will be stuck there until I start the next movie.
what you can do is insert a jit.matrix between the qt.movie and the brcosa objects. When your movie ends, this will hold the last frame and you can keep applying a fade out to 0 wo make everything disappear.
Forums > Jitter