I converted the mdl loading part of the hlsdk to an easyer using engine/very portable(I use linux) Everything is fine with it but the problem is when I goto display the model it looks really screwed up. Currently my engine blued(I think it was in the init of the test program since the engine doesnt really touch shading and stuff like that yet) Can someone tell me how to fix this?
The model being displayed threw a win32 app using the offical hlsdk engine
(note since I cannt compile win32 programs on linux my engine is on frame 0 while the win32 program is on animation 1)
The same model being displayed in my engine
//my init funtion
void init()
{
glEnable(GL_TEXTURE_2D);
glShadeModel(GL_SMOOTH); // Enable Smooth Shading
glClearColor(0.0f, 255.0f, 0.0f, 0.5f); // Black Background
glClearDepth(1.0f); // Depth Buffer Setup
glEnable(GL_DEPTH_TEST); // Enables Depth Testing
glDepthFunc(GL_LEQUAL);
glEnable(GL_LIGHT0); // Quick And Dirty Lighting (Assumes Light0 Is Set Up)
glEnable(GL_LIGHTING); // Enable Lighting
glEnable(GL_COLOR_MATERIAL);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
}/if you would like to see the hole engine feel free to ask/
Thanks,
Nuke