Original Post
I wrote a program that creates three spheres (representing 2 hydrogens and an oxygen) They rotate about the oxygen as dictated by the keyboard arrows. The problem is that even when one of the hydrogens should be in front of the oxygen; the the oxygen is drawn overtop of it. The Redbook told me I need to clear the depth buffer; but I''m already doing that. Heres a link to the code if anyone has any suggestions; thanks!
http://www.angelfire.com/alt/cache/water.txt