I could write a large post on what I need help with, but I’d rather let you see for yourself.
I’ve uploaded the relevant info onto my website
I’m having problems with lighting and strange renderings.
This looks to me like it could be a Z-buffer precision issue (and the fact that enabling face culling fixed it supports this). When you setup your perspective matrix, make sure to use reasonable values for the front and rear clipping planes in order to maximize the precision of the buffer.
Oh, and I assume that you have enabled GL_DEPTH_TEST.
Just a couple thoughts.
Ooops. I wrote that last part before I realised you had posted the code as well. I see that you have indeed enabled GL_DEPTH_TEST, so that’s not it. But the values for front and rear in your perspective matrix do seem a bit wider of a spread than necessary and if your card has a low-precision z-buffer this could be the problem.
Try bringing those values closer to the actual extents of your model space.
By the way, it looks fine when I run it on my machine (3dlabs Oxygen GVX1 card).
[This message has been edited by Rob (edited 04-23-2000).]
[This message has been edited by Rob (edited 04-23-2000).]