Recently I started a new project: Learning 3D stuffs!
However, rather than dive right in I thought I might start off by going retro and simple, then working my way up and learning about all things raytracer'y .
A raycaster is a very simple Pseudo-3D engine. It was used in '93 to make DOOM, so that shows the level of sophistication when compared to games today. 15 years later.
However, as easy as it sounds...it is not. Well, at least not for me anyway.
The main problem with me is maths. As many people who have known me from school know: I suck at maths.
3D graphics and such is a fairly maths intensive zone, so I knew it'd be awkward for me to learn much. But after about 2 days things started to click. And a brief brushing up on my trig helped me along a bunch and soon I had gone from (all images rendered on the fly![]()

to this
However, also this
As you can see, not everything is working. As is often the case with me. More so when maths is involved.
As you can see there's still some fairly annoying issues to fix before moving on to adding the floor/ceiling and thinking about texturing things.
Anyway, I've been asking about and will post more when/if things start looking presentable any time soon.
In the mean time, enjoy the continued silliness of me+PHP+GD