Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: How to create 2D glowing effect

  1. #1
    Newbie Newbie
    Join Date
    Jun 2015
    Posts
    4

    How to create 2D glowing effect

    Hi, how would I go about creating this sort of 2d glowing effect, you see around planet or the asteroids.

    Click image for larger version. 

Name:	PlanetBonuses.jpg 
Views:	239 
Size:	5.4 KB 
ID:	1954

    Tried to google it, but no luck finding any explanation.
    Not sure whether this is done only with shader, or generated texture or some gl points/lines with decreasing alpha.

    I`m openGl beginner, so pls go easy on me.
    Thanks for any help.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,463
    It's most likely a sprite with partial alpha. Possibly using additive blending (as the order doesn't matter if multiple effects overlap).

  3. #3
    Newbie Newbie
    Join Date
    Jun 2015
    Posts
    4
    Quote Originally Posted by GClements View Post
    It's most likely a sprite with partial alpha. Possibly using additive blending (as the order doesn't matter if multiple effects overlap).
    But how do I shape the sprites alpha to exact nice looking glows around stuff? And the shape doesnt have to be nice circle, it can be curved etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •