The last if test gives me a wonderful Wireframe mode. Tho there is no difference between the first two if testes; they both seem to be “smooth shaded”.
No i haven’t. How do i supply those? I’ve already read something about having to calculcate them for every surface (how can one calculate those for 30300294 surfaces? :/) but then how does one “supply” them?
“how can one calculate those for 30300294 surfaces?”
By using a computer
Google should give you a formula for calculating a normal from 3 vertices (actually it is: normalize (cross (v3 - v2, v1 - v2))).
You supply your normal using glNormal3f if you are using immediate mode.
But that will only give you flat-shaded polys, if all vertices of a face use the same plane-normal. You will need to smooth the normals of the vertices. Usually by adding all face-normals that touch the same vertex and then re-normalizing it. Depends on what exactly you want. There are countless other ways to generate smooth normals.