Heya,
I was wondering if someone could help me out here. For the town generation module, drawing straight line segments is required to create town walls, streets, and so on. This is often achieved using the Bresenham algorithm.
However, for lines with a thickness > 1, Bresenham doesn't cut it. However, A. Murphy presents an extended version that is able to draw thick lines.
http://www.zoo.co.uk/~murphy/thickline/index.html
There's also a C++ implementation available (created by Pawel Piecuch):
komsoft.ath.cx/~pawelp/?x=entry:entry110711-163454
If someone could port this to Java (and maybe even adapt it to TS), we could create nice bridges and town wall with merlons, players can walk on.
I was wondering if someone could help me out here. For the town generation module, drawing straight line segments is required to create town walls, streets, and so on. This is often achieved using the Bresenham algorithm.
However, for lines with a thickness > 1, Bresenham doesn't cut it. However, A. Murphy presents an extended version that is able to draw thick lines.
http://www.zoo.co.uk/~murphy/thickline/index.html
There's also a C++ implementation available (created by Pawel Piecuch):
komsoft.ath.cx/~pawelp/?x=entry:entry110711-163454
If someone could port this to Java (and maybe even adapt it to TS), we could create nice bridges and town wall with merlons, players can walk on.