I draw 3D object base on part of assimp code on all computers except one everything look very nice but on one computer I have very strange behavior. It look like wireframe - but empty (see attached picture).
I use glPolygonMode with GL_FILL for FRONT_AND_BACK, I try to use GL_POLYGON_OFFSET_FILL but without any results.
maybe someone have any ideas why ? On this card (gtx 590) when I draw cube something like empty diagonal appear ?
I use nvidia drivers 18.104.22.16891 and info from glew is full up to 4.0 (4.1). Windows 7 prof ENG
I have other - much more simple demo written in delphi 6 with glPolygonMode but I build this polygon by myself (graph for two-dimensional plane from simulations) and everything look nice on all computers. But why I have difference between computers with this 3D test ?!
I found that this function do this,
could someone explain me why ? I will be glad
Are you using glEnable(GL_POLYGON_SMOOTH) anywhere in your code?
If yes, try to turn it off and see if your problem goes away.
Indeed, GL_POLYGON_SMOOTH is completely ignored on some card (both recent and old), so that would be a good candidate for differences.
yes I use smooth
full init look like
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glLightfv(GL_LIGHT1, GL_AMBIENT, DiffuseLight1);
glLightfv(GL_LIGHT1, GL_DIFFUSE, DiffuseLight2);
glLightfv(GL_LIGHT1, GL_POSITION, LightPosition1);
//On GTX 590 make something like wirframe
My advice: do not use any of this GL_XYZ_SMOOTH stuff. It results in various problems. Use real multisample antialiasing instead.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.