#Trouble limiting scrolling text to a certain part of a daisychained RGB Matrix display

1 messages · Page 1 of 1 (latest)

thick delta
#

Hey, I'm working on a project and having trouble figuring out how to limit scrolling text to a certain part of my display.
I'm using a matrixportal S3 connected to three chained 32x64 RGB Matrix but plan to add more in the future.

thick delta
#

All the scrolling examples I'm finding are simply dealing with the text overflow by ignoring it since it leaves the visible display but I'm trying eliminate the overflow since it bleeds over to my other displays which I'd like to have separate visuals or messages on

#

I was able to do a temporary solution by creating blackout bitmaps that sit underneath the ball animations but on top of the text

#

The issue is that this only works if the format of my displays is: (animation, text, animation) but would not work once I want to add more scrolling text

#

As in this example which would be (text, text, animation)

#

So ideally I would like some help figuring out how to make a "cropped" area that displays scrolling text without overflow if at all possible

#

My current project code, lots of comments from my attempts at figuring it out myself over the past weeks

scenic crystal
#

or tweak the library to expose those boundaries, even put them in the init

#

or

thick delta
#

Hey thanks for the advice, got caught up in something but I’ll test them out once I get time to get to my workshop

thick delta
#

Sorry, did not expect that to take 2 weeks

#

@scenic crystal checked out your suggestions, you're right I was using Gallauger's smooth_scroller which he was kind enough to post in the discord, upon checking the boundaries function it simply is setting the endpoint at which the scroller is reset back to the starting position to conduct the looping effect, no limiting of where the text is visible sadly

scenic crystal
#

Quick look back at smooth_scroller … it gets appended directly to the root group, but maybe you could append it to a subgroup of the root group that imposes a mask to limit the visible area?

thick delta
#

Though the extensive use of the blit function seems interesting so might be the next thing I dive into

#

Would a mask not interfere with surrounding animations at all?

scenic crystal
#

as long as the surrounding animations were on top of the mask, it should be fine, i.e., appended after

#

I guess I stated my initial thing backwards… First append the scroller, then the mask, then anything that lives on top of the mask

thick delta
#

Yeah it works just gets messy if I end up needing multiple texts moving around at once like in my third video

#

Wish I could just multilayer and all the extra bits and bobs I had working in unity lol