forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Outer glow" effect on images

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
uberjack



Joined: 17 Jul 2007
Posts: 34
Location: California, USA

PostPosted: Mon Sep 15, 2008 8:03 am    Post subject: "Outer glow" effect on images Reply with quote

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
View user's profile Send private message Visit poster's website
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Mon Sep 15, 2008 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Wed Sep 17, 2008 12:09 am    Post subject: Reply with quote

blend mode Add.
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
Calv!n



Joined: 13 Aug 2007
Posts: 10

PostPosted: Wed Sep 17, 2008 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Sep 17, 2008 3:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Hellcat



Joined: 24 Jan 2007
Posts: 84

PostPosted: Wed Sep 17, 2008 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Sep 19, 2008 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
uberjack



Joined: 17 Jul 2007
Posts: 34
Location: California, USA

PostPosted: Fri Sep 19, 2008 12:52 pm    Post subject: Reply with quote

Thanks, everyone
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group