Hi, I'm totally new to 3D stuff. I thought I'd see if I could draw a rectanglein perspective. For now it's face-on to the screen and doesn't move. I'm just trying to get used to the ideas and functions. Here's the code I've got :-

Maybe a pointless comment, but I strongly suggest using AllegroGL and OpenGL instead of Allegro 3D routines. This way you'll get 3D acceleration and programming OpenGL is a bit easier than programming 3D Allegro.

If you want to learn the hard way (by trial and error) how a 3d rendering pipeline works, and how one would go implementing one in software, then by all means look into allegro 3d.For practical programming tasks, they are rather useless except for very rare situations (e.g. very simple 3d on a very low-end machine that doesn't come with 3d hw accel).