| View previous topic :: View next topic |
| Author |
Message |
uberjack

Joined: 17 Jul 2007 Posts: 34 Location: California, USA
|
Posted: Mon Sep 15, 2008 8:03 am Post subject: "Outer glow" effect on images |
|
|
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 |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Mon Sep 15, 2008 6:33 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
|
| Back to top |
|
 |
Calv!n

Joined: 13 Aug 2007 Posts: 10
|
Posted: Wed Sep 17, 2008 12:38 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
kralyk
Joined: 06 Apr 2008 Posts: 114 Location: Czech Republic, central EU
|
Posted: Wed Sep 17, 2008 3:05 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
Hellcat
Joined: 24 Jan 2007 Posts: 84
|
Posted: Wed Sep 17, 2008 2:02 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Fri Sep 19, 2008 12:37 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
uberjack

Joined: 17 Jul 2007 Posts: 34 Location: California, USA
|
Posted: Fri Sep 19, 2008 12:52 pm Post subject: |
|
|
| Thanks, everyone |
|
| Back to top |
|
 |
|