"Outer glow" effect on images

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
uberjack
Posts: 34
Joined: Tue Jul 17, 2007 9:09 am
Location: California, USA
Contact:

"Outer glow" effect on images

Post by uberjack »

How is the glowing of the objects implemented on the PSP - like the icons and text in the XMB, text in SNES9XTYL, etc...? Normally I would assume that one would have to write the code to determine image's boundaries and generate a "glow" accordingly, but the effect is so common on the PSP, that I'm starting to wonder if this is an effect that is provided by GU?

Thanks
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

AFAIK such an effect is not bulk-implemented by PSP GU. Glows/shadows under the icons in the programs you mention are simply artworks prepared "offline". Anyway, the effect is commonly runtime achieved taking the luminance part of an image (take a look on RGB-YUV conversion....luminance is the "Y" part) as long as its alpha-channel and blurring it with something like average or gaussian blur.
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

blend mode Add.
User avatar
Calv!n
Posts: 10
Joined: Mon Aug 13, 2007 2:18 am
Contact:

Post by Calv!n »

Pre-processing effect. Have your icon or whatever in photoshop and add just add an outer glow and some blur. I would assume this is nothing more than just a simple "mouse over" type of effect where the texture/image is replaced with the glowing one once the icon is selected.
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

I think the easiest & nicest way would be to make one standard icon image, and then another image containing just the outter glow. Now when the icon is activated, increase and decrease opacity of the outer glow with timing.

However, I think XMB makes the glow on the fly with GU - for example in XMB pretty much any icon you put in XMB works.
...sorry for my english...
Hellcat
Posts: 83
Joined: Wed Jan 24, 2007 2:52 pm

Post by Hellcat »

The XMB uses a pre-made extra graphic for every icons glow effect.
It just puts the "glow" gfaphic under the icon and fades it in and out in a loop.

Take a look at the .RCOs in /vsh/resource, you'll see those glow-images in there.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

The glowing borders are pre drawn for each icon and stored in the RCOs. All that happens code wise is that the alpha amount is increased and decreased to make it fade in and out.
User avatar
uberjack
Posts: 34
Joined: Tue Jul 17, 2007 9:09 am
Location: California, USA
Contact:

Post by uberjack »

Thanks, everyone
Post Reply