Thursday, 15 January 2015

Regression...

I had previously failed to mention that at an earlier stage of this project i had the 2d hexagons tiling...

However they weren't tiling correctly, because of this I decided to leave that behind and hope that i'd just randomly realise I was stupid and it was incredibly simple. Instead of working on the tiling I decided to create the 3d shapes, this is where the problem started...

After turning my hexagons into hexagonal prisms I needed to get them tiling again, luckily for me I had left the work i'd started in the code so i wouldn't need to go about re-writing anything. however when I set the code up to work with the newer shape generation function i wouldn't work. I tested it on my 2d sqaures and it was still working, and I was stumped. I stopped working on the project for a few weeks shifting focus onto other work, and since coming back to this I have stripped the work back.

I have went back to 2d hexagons in an attempt to get the tiling working again. And finally it is! My mistake? removing a variable that kept track of which polygon I was using...

--------------------------------------------------------------------------------------------------------------------------


As shown here the tiles are not lining up correctly, however my next step is to get it working like this in 3D. luckily i still have all the code for setting the 3D shapes up...

No comments:

Post a Comment