Advertisement Jump to content
  • Advertisement
  • entries
  • comments
  • views

Gutter fixing

Sign in to follow this  


In relation to my previous entry regarding solving bilinear filtering errors I wrote up an automated fixer function. After testing my algorithm via manually creating the source art I knew it worked - but also knew how tedious it was [smile]

Thus, I can now take a grid (as well as row or column) such as:

and it'll fill in the gaps by computing what the neighbouring texel should actually be:

It looks a bit odd/wrong, but it does actually work. The engine code is designed to address the 30x30 pixel areas that you can clearly see in the first image - but the border texels actually need to wrap around and address the opposite edge/corner.

The algorithm I made quite simply copies the opposite pixels across. The top edge is a copy of the bottom edge, the top-left corner is a copy of the bottom-right corner etc..

I'm going to go have a stab at getting it to stream properties from an XML file via TinyXML. With that done the tileset loading should be sorted - yay!

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!