I am loading a .jpg file as texture in the MFC application and a .ac model in my application and mapping a texture at the background.
Now the problem is when i do this the texture takes the colour of the model and turns dark.When i dont load the model the texture is fine.
////Following is the code for texture
////for Binding texture
glClearColor(1.0, 1.0, 1.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Code for loding .ac model is quite large so i cannot put it here.
hope i am clear with my problem.
plz give me some suggestions