Hello,
I am doing a project on converting an iges file to stl format, and while testing the program at my teacher’s computer I noticed a strange problem that only occur on certain computers. I’m adding pictures for comparison.
The way it should be:
The way it appears on some computers:
What I’m working on is: Visual Studio 2005, MFC Libraries, and the glu 1.3 dll from here (i need this for the nurbs tessellation functions). I first noticed this at my teacher’s computer, which doesn’t have Visual 2005, but I used a release version with the MFC libraries embedded, and I made sure the glu32.dll v1.3 was in the same directory (otherwise it wouldn’t even run). I then tried in another friend’s computer and had the same problem. He does have Visual 2005 installed, so that can’t be a factor. Lastly, I tried it at my brother’s computer, and there it doesn’t have any problems! (in my computer it’s also ok by the way). My brother suggested that since we have newer video cards (I have an nvidia 7600, and he has a 1-year old ATI card, can’t remember the model) that it could be related to the rendering problem (the other computers have Nvidia 4 models).
In case that it might be relevant, this is what I have in my CView::OnDraw function:
void CIgesView::OnDraw(CDC* /*pDC*/)
{
CIgesDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// Clear out the color & depth buffers
::glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
RenderScene();
// Tell OpenGL to flush its pipeline
::glFinish();
// Now Swap the buffers
::SwapBuffers( m_pDC->GetSafeHdc() );
}
Please, any hint in the right direction will be deeply and thoroughly appreciated!!