Page 1 of 1

[solved] white outline around buttons

Posted: Sat Sep 05, 2009 02:12
by jheld
Hello all,

I've gone through the process of setting up image buttons with my own image set and it's working quite well (using latest CEGUI and Ogre v1.6.3). Buttons are responding correctly. One minor problem is each button has a thin artificial white outline/border. It's a nitpick but I'm wondering if there's something obvious that I'm just missing?

At first, I thought it was.... setProperty("FrameEnabled", "False") but that doesn't exist for ImageButtons. Also, the white border is shaping around the image so could it be a sizing issue? Or is there something else?

I thought I'ld ask here first before naggin the Ogre3d forum

Code: Select all

   <Image Name="UPbtnNormal" XPos="0" YPos="0"  Width="16" Height="17" />
   <Image Name="UPbtnHover"  XPos="20" YPos="0" Width="16" Height="17" />
   <Image Name="UPbtnPushed" XPos="40" YPos="0" Width="16" Height="17" />
   <Image Name="UPbtnDisabl" XPos="60" YPos="0" Width="16" Height="17" />




Thanks in advance
Jason

Re: white outline around buttons

Posted: Sat Sep 05, 2009 07:42
by CrazyEddie
I think this is likely to be an issue caused by the filtering applied when scaling imagery. On any image element that's going to be scaled, you should always provide at least one additional pixel of 'blend' on the appropriate axes that can get picked up and used (this is not a CEGUI issue, it's the way the hardware works).

If this is not it, if possible please post an image showing the issue and an image showing the appropriate part(s) of the imageset image.

CE.

Re: white outline around buttons

Posted: Sun Sep 06, 2009 23:21
by jheld
Thanks CE, that pointed me in the right direction.

Turned out I was a pixel too large, rather than a pixel too small

Cheers
-Jason