How to Create Flickering Neon Effects

Hi there,

I gave this awesome module a go.

However, it seems that the Neon:text option is not working on device? Works perfect on simulator. 

I tested on a Nexus 7 running 5.1.1 and the text is corrupted. It only shows a letter p, but the letter p is not even in my original text. 

stageT=Neon:text({ parent=textGroup, text="STAGE 6", fontSize=100, x=x, y=90, glowColor={56/255,203/255,166/255}, fillColor={0.2,0.3,0.2}, flickerEffect=false,flickerStyle=5 })

Anything I’m doing wrong? Please help. 

@farjadfarabi_czs

I’m sorry, it doesn’t work. I will check this out today and will get back to you.

Just in case someone else ran into the same problem as fajadfarabi_czs:

I sent farjadfarabi_czs a new version which uses texture memory more efficiently.

farjadfarabi_czs tested this new version and it works now.

Thank you farjadfarabi_czs.

The used texture memory whenusing neon text is quite high: it loads two bitmap fonts at the same time. And the bitmap font fpr the glow effect is quite big because the glow needs much space in the texture. This lead to problems on older devices.

I will send out a new version, when I updated the fonts properly.

Keep up the good work René

Thanks to Rene for his amazing work. :D 

Thank you all. 

I just updated the neon module.

Now you can choose between two different neon text font.

NeonText-Clean-Distorted.png

Use

font="NeonFontClean"

or 

font="NeonFontDistorted"

NeonFontClean is the default value.

Just re-download from the link you received.

Best

René

Hi, really good work Rene. I enjoyed a lot.

However, I think there is something wrong with text. I was trying to use neon text in a scene, but it is coming all my scene.

    local infoTxt = Neon:text({
    text=“NEON”,
    fontSize=40,
    x=200,
    y=200,
    })
    sceneGroup:insert(infoTxt)

Best,

Hamza

Hi Hamza,

hm, sounds like I do not insert the neon text objects into the display group.

I will check this and get back to you.

Best

René

@Hamza,

ok, I missed it like stated above.

I updated the files. Please just redownload.

Hope it works now. Thank you for pointing this out.

Best

René