Forums > MaxMSP

LCD Question

January 23, 2011 | 4:57 am

Can someone help me out with LCD? I need to have a graphic that moves up and down inside an LCD object. As it moves up and down, I want it to reveal and covers respectively a background image. I’ve tried it with png, and gif files (ones that allow transparency), and with pict files. The png and gif files will only move one direction, and won’t move the other direction. The pict file will move both directions, but, of course, doesn’t allow transparency. The attached zip file contains a folder with a demo patch and three graphic files in png, gif, and pict format.

Is there a way to do what I want? I also tried using paintrect in LCD, but it doesn’t remove the old image when you try to reposition it. Thanks for any help or suggestions!


January 24, 2011 | 11:54 pm

Is this a bug in LCD? Is there a current list of what image file types it supports?

January 25, 2011 | 1:39 am

Did you try sprites?

January 25, 2011 | 2:11 am

Thanks for the suggestion. I had considered sprites, but I was having trouble wrapping my brain around all the sprite commands. After experimenting with it for awhile, I got it to work, and yes, it does what I want. There are numerous comments to the effect that using sprites causes [lcd] to use more memory. Do you happen to know if it is a significant amount?

January 25, 2011 | 5:54 am

"I also tried using paintrect in LCD, but it doesn’t remove the old image when you try to reposition it."

clear, draw background, draw new foreground?

January 25, 2011 | 7:37 am

I actually did think about doing it that way, but there are a lot of fast movements (a couple hundred per second), and I was afraid trying to do that many steps so frequently might bog things down. Thanks for the suggestion, though.

January 25, 2011 | 8:24 am

Here’s a way using a bpatcher and [thispatcher] to move a script named fpic. Should be quite efficient I would have thought?


January 25, 2011 | 1:43 pm

You just need to send a clear message. Or use sprites as mentioned above.

– Pasted Max Patch, click to expand. –

January 25, 2011 | 3:37 pm

Thanks everybody! Great suggestions and ideas!

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