SFML community forums

Help => Graphics => Topic started by: dydya-stepa on December 30, 2011, 06:25:31 pm

Title: need some help with glowing text
Post by: dydya-stepa on December 30, 2011, 06:25:31 pm
does anyone know how to create such a glowing effect like here

http://cooltext.com/Logo-Design-Animated-Alien-Glow

Searched a lot but couldn't find anything. Lots of info about glowing for 3d but I think this can be done much easier rather than for 3d.
Title: need some help with glowing text
Post by: Walker on December 31, 2011, 12:32:58 am
Render anything you want to glow to an off-screen render target. Run a blur over this and then create a sprite and render it as part of your actual scene.

This technique is exactly the same in 3D rendering as it's done as a post-processing effect anyway.


Depending on exactly what you want to do however, you may be better served by just making a sprite that appears to glow.
Title: need some help with glowing text
Post by: dydya-stepa on December 31, 2011, 02:23:26 am
i've tried to do what you suggest and what i get is just crap. this is fine for 3d glow effect but with 2d that should be doable much simpler - i suspect some kind of gradient should be applied.

I can't use sprites - i want to have an animatable glow. Can't precompute it because I need glowing for text.
Title: need some help with glowing text
Post by: dydya-stepa on December 31, 2011, 02:25:35 am
besides - blurring within render texture blurs outside of it's bounds - so using that technique i'll have to have a bigger render target and then tweak some position problems.
Title: need some help with glowing text
Post by: Mario on December 31, 2011, 01:22:22 pm
Put the text on a texture (don't think it will work using sf::Text) and draw it using a blur shader (radial or gaussian blur should be fine for this). Once done, render the texture on top for the sharp version.
Title: need some help with glowing text
Post by: dydya-stepa on December 31, 2011, 01:55:47 pm
of course i'm rendering it into a texture :-) . I've been trying for about a week before I posted this question.

Why don't you try to make it yourself - and see what a piece of shit gets created in the case you're suggesting.

This must be a different technique.
Title: Re: need some help with glowing text
Post by: Hydra on August 24, 2015, 02:50:40 pm
does anyone know how to create such a glowing effect like here

http://cooltext.com/Logo-Design-Animated-Alien-Glow

Searched a lot but couldn't find anything. Lots of info about glowing for 3d but I think this can be done much easier rather than for 3d.

This is a pretty old topic but I'd just like to add that if you just want a really simple short way then I'm sure you can just create an circle shape or rectangle shape. Set it as the same size as your text then add a transparency gradient to it.
Title: Re: need some help with glowing text
Post by: Hapax on August 24, 2015, 03:11:07 pm
I don't think that was the intention.

I think they probably wanted one or both of the following effects:
http://cooltext.com/Logo-Design-Animated-Glow
http://cooltext.com/Logo-Design-Alien-Glow
Title: Re: need some help with glowing text
Post by: Nexus on August 24, 2015, 08:43:15 pm
How did you even come across this topic? Do you actively search for year-old posts where you can add something? ;)

Please don't resurrect ancient threads. The user hasn't been active for the last three years.