[solved] white outline around buttons

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

jheld
Just popping in
Just popping in
Posts: 18
Joined: Sun Aug 09, 2009 04:06

[solved] white outline around buttons

Postby jheld » Sat Sep 05, 2009 02:12

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
Last edited by jheld on Sun Sep 06, 2009 23:22, edited 2 times in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: white outline around buttons

Postby CrazyEddie » Sat Sep 05, 2009 07:42

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.

jheld
Just popping in
Just popping in
Posts: 18
Joined: Sun Aug 09, 2009 04:06

Re: white outline around buttons

Postby jheld » Sun Sep 06, 2009 23:21

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


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests