Text in Snapshot appear blurry

Hi,

I’m trying to use snapshot in order to apply filter.colorChannelOffset effect on text. However, after entering text to a snapshot, the text appear a bit blurry, even if no effect is applied on the snapshot.

From the forum, I understand snapshot is the only way to apply filters on text, or are there other alternatives? The text is not predefined, so we cannot use images.

If snapshot is the only way, is there a way to preserve its sharpness? 

Can you provide a sample project so I can share it with our engineering team?

Rob

Hi Rob,

I’ll prepare one.

Hi Rob,

While trying to narrow the issue to a separate project, I found that the problem may be in the interaction between a scrollbar widget and snapshots that are inserted to it. What we’re trying to achieve is to slowly write text within a scrolling window with colorChannelOffset effect. For now I’ve disabled the effect as it obstructs the issue.

Placing the blur issue aside, a more immediate problem is that the scroll bar view is not updated when the snapshot inside it is invalidated. I need to actively modify the scroll bar properties (such as its height) in order for it to show the written text. You can disable line 170 in main.lua to see this issue.

Then, A second issue is that once the scroll bar shows the written line, the updating text is flashing, as if its out of sync. 

Note that if we disable the use of snapshots, the text is written nicely as expected inside the scroll bar widget.

I’ve placed sample code here:

https://www.dropbox.com/s/exfunbnmvs2cm56/blurredTextSample.zip?dl=0

Hi Rob, did you get to check the code I placed?

Can you provide a sample project so I can share it with our engineering team?

Rob

Hi Rob,

I’ll prepare one.

Hi Rob,

While trying to narrow the issue to a separate project, I found that the problem may be in the interaction between a scrollbar widget and snapshots that are inserted to it. What we’re trying to achieve is to slowly write text within a scrolling window with colorChannelOffset effect. For now I’ve disabled the effect as it obstructs the issue.

Placing the blur issue aside, a more immediate problem is that the scroll bar view is not updated when the snapshot inside it is invalidated. I need to actively modify the scroll bar properties (such as its height) in order for it to show the written text. You can disable line 170 in main.lua to see this issue.

Then, A second issue is that once the scroll bar shows the written line, the updating text is flashing, as if its out of sync. 

Note that if we disable the use of snapshots, the text is written nicely as expected inside the scroll bar widget.

I’ve placed sample code here:

https://www.dropbox.com/s/exfunbnmvs2cm56/blurredTextSample.zip?dl=0

Hi Rob, did you get to check the code I placed?