Okay, so I’m new here. I’m trying to load the f-16 obj file that Nate Robins provided with his examples. Here is how my code goes, very simple I believe.
I differ. The view angle is same but careful observation shows parts of the plain ( especially the second rocket) visible instead the other way, as it comes just under the wing. Rotation would have affected the tail too.
@Waleed: Please check the drawmodel(). Are you drawing backface after the front face? Are you using blending function?
It’s not translucent. I don’t know what it is. It’s the same angle and I should not be able to see the rocket in the middle. I should barely be able to see the tips of the second rockets as well. It’s driving me crazy!
How are the triangles defined in the model file? Are there any entries for back faces, with negative values?
Most probable reason looks to be wrong lighting calculations. i.e calculation between face/vertex normal and light vector is still positive for a face that is facing away from you. If this is true then back faces will look to you as front faces.
As a test, do one thing, disable all lighting and check the quality of model drawn. If you get exactly what is desired it means there is some problem in lighting calculations.