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!
Is this a bug in LCD? Is there a current list of what image file types it supports?
Did you try sprites?
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?
"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?
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.
You just need to send a clear message. Or use sprites as mentioned above.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 739.3ocyW97aaBCEG+L4uBKzNlgvl.A1soti6vj1wopIC3P7JXiLNqsqp+uO +KRoKDT5ZKIIRw3mcree+vy1O+vBO+b9cjNevm.+.348vBOOiIsAOWcO+F7c E03NS27K3MMDlzeosMI4Now9p.vU0zha.XVInTfq.xsD.aWSNQ.J42x.RNnl eqpltgbtTxa.jxJBfuwXpRfa2RKVpqvNXHxwpwdWa+7VSYjB9NlYxQNiptRY 0DowSgOYjuS1aMzYcCmI6n+gX5IJn2bKVVrkxp9ofTHsXIJYspY.JApKhBiL EqBBAW69SzRCA34+5ivT+AS.C2Xl.+OKn3ZecCOtXg9mkuRZGE.9NQNDa.rs 5uIh6Untsmpe8pu.TdlVNuqTJ1fGXJx.KWQ3QnT77PIjlR0JeDf2ioMzZx6K IPIFRDlYJhCmjDn4gDv.v2DjtN0ZTBV7tpejdsgNR3Dje1aq5aTJDWQNT8YY iJYznRFNsjs8TdeKwpWe+8JarnA35AqKhPAwVzLFMhmGZHH3xVpZQgjzIUaD SY2DTQ2btHDLCNb8BZezyXHJ57gHc8yMihrASQgSwHzYjQrpyLhRcfBNEgfy TXTwQ2rc9.BxDq3BbNFOfus7vlxV+XpZh1rqwHlrrS+nGzKjFT84d.+brJH7 D1R1kP2HGPo7rdGN7PXkNiwNK0oAe6SqxB2+8CPcw4N1JK1DVkMYzUxaKvpK JmL+k7Jo.y5ZwBh81AiGcsxYkvv40jtVAURd13b.Qpocl.r9RW71jfxkGLzh KWRwGKWv+GZzhYjZ+8RufWyE1oNLHCksBhVpdJJIbc5J8SoIpOqUurF3Cufz .GKeO6gQqs63ZuF.JEdDMlLTjldXtJ2+bETyzns+bk2w2IJ5ec3VKBdZdJUK QnLrjxYC5Sxy5yVZYIgMTRMzxV0gWRmK.tdz2BmpGkbBdDbV8nnKNOBdA5Rv KNWBcw4QwmfGk9J7HUkGW7W.b6DVxB -----------end_max5_patcher-----------
Thanks everybody! Great suggestions and ideas!
Forums > MaxMSP