Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: need some help with glowing text  (Read 5890 times)

0 Members and 1 Guest are viewing this topic.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
need some help with glowing text
« 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.

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
need some help with glowing text
« Reply #1 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.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
need some help with glowing text
« Reply #2 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.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
need some help with glowing text
« Reply #3 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.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
need some help with glowing text
« Reply #4 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.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
need some help with glowing text
« Reply #5 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.

Hydra

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: need some help with glowing text
« Reply #6 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: need some help with glowing text
« Reply #7 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
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: need some help with glowing text
« Reply #8 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: