Friday, 6 January 2012

Roof geometry

Of all the tiles I am making, without a doubt the hardest to program for will be roofs. So if you planned on having towns in your game sorry in advance.

I am still working on the roofs but the images below show the layout I will be using for their geometry. I'm making three sets of roof tiles. the first will be for thatched buildings, the second will be steeply pitched tiled roofs (churches and such like) and the third and simplest will be ramparts.

The templates below are mock ups intended to show every possible angle juncture. I will texture them and slice them up into 8 by 8 tiles, keeping one of each unique tile. I've not counted how many this will be but it will be it'll be loads.

Hopefully these tiles will allow you to place a roof on any procedurally generated building footprint (within reason). I feel like I'm going overboard on this but its quite fun.

Click to see full size images.




1 comment:

  1. This is cool and very nice informative issues. Thanks for taking the time to discuss that.
    I'll try to consider it for my future references, thanks for this great article.

    ReplyDelete