I'm having a few problems with using ortho2d. I made a quickie test program, barebones that is nothing but the draw and the settings, and it worked fine. The 2D image came out marvolously (I'm rendering a number of small rectangles) however, upon attempting to implement it into the program I'm writing, I ran into a few issues. The program uses many different camera modes (Mostly Orthographic projection) and the camera mode and rotations/zoom are easily changeable. However in the program, when I use essentailly the exact same transformations (Setting the viewport, setting the ortho2d) I recieve nothing but the clear color(black).
If I switch the perspective back to orthographic, and rotate, I can see my object as a 2D plane, and see what I've drawn (It comes out correctly) but on one side it is easily visible from all angles, and on the other, when I move the plane to be Parallel to the camera the picture begins to turn to black (Starting from the bottom and moving up as I make the plane more parallel). Is there anything that should/could be causing this?
I suppose my very basic question would be what translations and effects (Anything from gl_cull_face to the depth buffer) really effects glOrtho2d projection that could be left as a globabl variable (I'm almost 100% sure that the problem is not a matter of me forgetting that I've accidentally not cleared the MODELVIEW Matrix or something similar)