Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Text in Snapshot appear blurry
Started by rune7 Mar 11 2019 05:48 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 361 posts
  • Corona SDK

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? 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,373 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#3

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 361 posts
  • Corona SDK

Hi Rob,

 

I'll prepare one.



[TOPIC: post.html]
#4

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 361 posts
  • Corona SDK

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



[topic_controls]
[/topic_controls]