Change texture wrapping on TiledBackgrounds

Discussion and feedback on Construct 2

Post » Tue Nov 05, 2013 7:06 am

I think we should be able to configure texture wrapping on TiledBackgrounds. Why?

I'm working on a project that uses a large screen resolution and needs to be downscaled on most computers. When a TiledBackground is downscaled, filtering is applied to the texture to make it look nicer. However, it is not always desirable to tile in all directions, and this filtering can cause 'texture bleed' on the non-tiling edges. For example:

This image tiles nicely to the left and right, but not up and down. And, when downscaled, the black border on the top bleeds through on the bottom, due to the filtering. In OpenGL, this problem can be solved with the use of the GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T texture flags. Allowing Construct to change these flags would make TiledBackgrounds much more useful. As it stands now, I have to mis-use 9-Patches to work around this problem.
Posts: 11
Reputation: 1,247

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests