# OpenGL object load in reverse

I am trying to load a model and it is loading it in reverse. When I am trying to rotate it 180 degrees it changes the lightning as well. I am not sure what I need to do to change the position that eh model is facing when is being loaded.

if (!submarineShader->load("BasicView", "glslfiles/basicTransformations.vert", "glslfiles/basicTransformations.frag"))
{
}

glEnable(GL_TEXTURE_2D);

if (objLoader.loadModel("submarine_/submarine v2/submarine5.obj", model))//returns true if the model is loaded, puts the model in the model parameter
{
cout << " model loaded " << endl;

model.calcVertNormalsUsingOctree();

model.initDrawElements();
model.deleteVertexFaceData();

}
else
{
cout << " model failed to load " << endl;
}


• My gut feeling is that your function to compute normals is wrong, try it with a very simple shape that can be hand written, like a cube, and see how it behaves. – Ian Young Nov 12 '19 at 8:52