Textures vs images
#1
I noticed something behaving differently in textures vs images. And i wanted to know if maybe i had made a mistake in making the textures file.
When using something like this:
Code:
<control type="image">
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>720</height>
    <aspectratio>stretch</aspectratio>
    <texture>white.png</texture>
    <colordiffuse>FFCCCCCF</colordiffuse>
    <animation effect="fade" end="80" condition="true">Condition</animation>
</control>
Where "white.png" is maybe 4x4px being used to fill the screen by stretch or repeat.

When converted to a textures file it will become more and more transparent, the further away it gets from the top left corner.
In the lower right corner there will be no white left.

But when it is still just an image (png) in the media folder, it will result in an equal white transparency over the whole screen.

Is that expected behavior?


Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#2
Make them 8x8.
Reply
#3
I would expect that to reduce the effect by 50%.
But ok, i'll test it tonight.
Image [RELEASE] Metroid
Image [RELEASE] IrcChat
Reply
#4
There's a problem when textures are too small as you've just found out.
Reply
#5
border="1" fixes the problem sometimes but in your case I would go with a bigger texture as Hitcher suggested.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Textures vs images0