I dont know if its because of the version update, but atleast in the latest version the frustrum is too small so its causing clipping issue for me atleast.. change the frustrum manually by putting this in the main loop after the perspective3d call and it might help:
- Code:
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
GLfloat aspectRatio = (GLfloat)(display->GetWidth()) / (GLfloat)(display->GetHeight());
glFrustum( FRUSTUM_LEFT * aspectRatio, FRUSTUM_RIGHT * aspectRatio,
FRUSTUM_BOTTOM, FRUSTUM_TOP,
FRUSTUM_NEAR, FRUSTUM_FAR );
// Restore matrix mode
glMatrixMode( GL_MODELVIEW );
and define these at the top of the code:
- Code:
#define FRUSTUM_LEFT -1.f // left vertical clipping plane
#define FRUSTUM_RIGHT +1.f // right vertical clipping plane
#define FRUSTUM_BOTTOM -1.f // bottom horizontal clipping plane
#define FRUSTUM_TOP +1.f // top horizontal clipping plane
#define FRUSTUM_NEAR +2.f // near depth clipping plane
#define FRUSTUM_FAR +8000000.f // far depth clipping plane
see if it helps.. and attaching a screenshot might help better diagnose the problem..
btw its not called vsync..