Stretched and tiled give different effects

Help and discussion regarding skinning, themes, and other artistic content.

Moderators: CEGUI MVP, CEGUI Team

dteviot
Just popping in
Just popping in
Posts: 15
Joined: Mon Nov 13, 2006 19:26

Stretched and tiled give different effects

Postby dteviot » Tue Dec 19, 2006 19:20

Gentlemen,

I have the following problem. I'm trying to skin a button using a number of 1 pixel wide images.
Specifically, the 4 corners are 2x2, the top and bottom edges are 1x2, the left and right edges are 2x1 and the background is 1x1.

The problem I have is that if I set the HorztFormat and VertFormat to Stretched, the background appears as a very pale, transparent "smear" over the surface of the button. The "color intensity" also appears to be modulated, with the middle of the control being about the color I want, and the colour fading to transparent towards the edges.
(The edges also are inconsistent in colour.)

If I set the formatting to Tiled, I get the look I desire (a uniform color) but performance goes way, way down. The whole thing runs so slowly that it's unusable. Otherwise I'd just Tile and be done.

I'm hoping someone can tell me what I'm doing wrong, and how to fix it. (My initial thought was that the single pixel is somehow being antialiased with an alpha channel. I do note that the source image, not supplied by me, contains an alpha component.)

Thanks in advance.





My apologies for asking a newbe question

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Wed Dec 20, 2006 12:44

hi,

i think that this thread mentiones the same artifacts:
http://www.cegui.org.uk/phpBB2/viewtopi ... ight=pixel

HTH

dteviot
Just popping in
Just popping in
Posts: 15
Joined: Mon Nov 13, 2006 19:26

Postby dteviot » Wed Dec 20, 2006 19:44

Thanks, that looks like it has a solution to the problem. I'll try it out.


Return to “Skins and Themes”

Who is online

Users browsing this forum: No registered users and 14 guests