Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auto-tile Algorithms


sirsk8aton
 Share

Recommended Posts

Hello all. Lately I've been working on different games in C++ for learning experience and fun. I've made a lot of progress since I started and now I'm trying to implement an auto-tiling system. I'm making a 2D game with tiles, much like eclipse. The problem now is I don't know how to go about programming the auto-tiling system. I've attempted it a couple times but can't get the results I want.

If anyone has any thoughts or suggestions on this, it'd be much appreciated.
Link to comment
Share on other sites

I did some research into this as well. Autotiling is quite complex in the sense that it cuts up the 32*32 tiles into 16*16 and re-arranges those pieces to make a 32*32 tile that fits the surrounding.

http://www.codeproject.com/Articles/106884/Implementing-Auto-tiling-Functionality-in-a-Tile-M

That's a good thing to read before you start.
Link to comment
Share on other sites

Thanks for the info. I thought of trying to cut them into 16 pixels but it's going to be weird to make them work with my engine. I was also thinking about just checking the surrounding tiles to see if I can just do it that way. Maybe I can look into EO:CS's source and learn from that.
Link to comment
Share on other sites

Didn't I already write something about this a few years ago …

Anyway, there's a lot of fun algorithms you can look up in mathematics journals about tiling methods. A lot of them assign a specific numerical value to each tile choice and then structure the model around that and then match pixel values on the boarders to see if the matching is ideal.

So yeah, try searching Tiling Methods in Google Scholar.

- Joe
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...