stuck with using jit.lcd shape as mask for jit.gl.text2d

joa's icon

Hello All,
i am new to the jitter world and i stuck on this problem:

i want to draw an plane via jit.lcd and want to use this shape as mask for an scrolling jit.gl.text2d object.
The text should be only visible inside the area covered by the plane.

i pasted what i have so far, but now all methods i tried failed (yes i am an beginner ;)

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

any help appreciated...
Joa

deligut's icon

This is probably not what you wanted but the effect that you wanted.

4617.textmaskedrevised.maxpat
Max Patch
deligut's icon

This may be closer to what you wanted.

4621.textmaskedrevisedwithlcd.maxpat
Max Patch