So, I've been writing a ray-casting engine over the last few weeks, and despite numerous complications, I finally got my textured walls and so, to go one better I decided to finish off the engine with floor-casting...
So, I decided to use a different texture to the one I used for the walls - which had nice different colours in it. However, for this one I opened up MS Paint and filled in a blue base and then...well...using a pixel width brush, drew some lines to create a brick like pattern...
...so, with my new floor texture, I then wrote the floor casting code, and then...
A WHOLE LOAD OF FLICKERING LINES!
...oh dear, my code seemed to be at fault! So, seven days later I eventually came to the conclusion that I simply didn't understand floor-casting, and that Permadi and Lode were talking bollocks in their tutorials. I even went to the length of reversing the maths to get original casting distances using the projection plane! Something simply wasn't right here, but I vowed to build this engine without any assistance...so asking for help here would have been pussying out...
So tonight, I thought I would muck about by using a more detailed texture from Wolfenstein3D...and discovered a truly spine-tingling fact...
...THERE WAS NOTHING WRONG WITH THE BLOODY THING!!!! O_O
...turns out my original floor texture simply didn't have enough detail to display properly! I honestly feel like such a twat for spending seven days trying to fix something that wasn't broken in the first place! o_O
Sigh, the engine is now complete and I am feeling relieved I can begin with tidying it up and optimising...then making a game of some description...
Has anyone else here done the same thing? Tried to fix something that wasn't broke in the first place?
![happy.png](http://public.gamedev.net//public/style_emoticons/default/happy.png)