[vtk-developers] Rendering of vtkPolyData broken on Nvidia systems

Cory Quammen cquammen at cs.unc.edu
Fri Jun 22 12:30:36 EDT 2012


Sigh. Nothing like removing useful features from a widely used API for
no good (in my mind) reason.

This page has information about the ARB_compatibility extension as
implemented by NVIDIA:

http://developer.nvidia.com/opengl-driver

Perhaps VTK needs to load this extension to maintain the use of display lists?

Cory

On Fri, Jun 22, 2012 at 11:58 AM, Oleg Koren <koren at curefab.com> wrote:
> Hello,
>
> I think, now I know the root of the problem. Great thanks for the suggestion
> to run an OpenGL logger. My log boils down to the following:
>
> glColor3f(1.0f, 0.0f, 0.0f);
> glDeleteLists(1,1);
> glGenLists(1);
> glNewList(1,GL_COMPILE);
> glDisable(GL_LIGHTING);
> glBegin(GL_LINE_STRIP);
>        glVertex3f(0.000000,0.000000,0.000000);
>        glVertex3f(1.000000,0.000000,0.000000);
>        glVertex3f(1.000000,1.000000,0.000000);
>        glVertex3f(0.000000,1.000000,0.000000);
>        glVertex3f(0.000000,0.000000,0.000000);
> glEnd();
> glEnable(GL_LIGHTING);
> glEndList();
> glCallList(1);
>
> glColor3f(1.0f, 1.0f, 0.0f);
> glDeleteLists(2,1);
> glGenLists(1);
> glNewList(2,GL_COMPILE);
> glDisable(GL_LIGHTING);
> glBegin(GL_LINE_STRIP);
>        glVertex3f(0.000000,0.000000,0.000000);
>        glVertex3f(0.000000,1.000000,0.000000);
>        glVertex3f(0.000000,1.000000,1.000000);
>        glVertex3f(0.000000,0.000000,1.000000);
>        glVertex3f(0.000000,0.000000,0.000000);
> glEnd();
> glEnable(GL_LIGHTING);
> glEndList();
> glCallList(2);
>
> and this actually doesn't work. Which is, I guess, because lists are
> deprecated since OpenGL 3.0 and should receive very limited support by now,
> if any. Removing all calls to list functions does the trick.
>
> That means, one should always set ImmediateModeRenderingOn on a
> vtkPolyDataMapper. Immediate rendering mode disables OpenGL lists.
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Rendering-of-vtkPolyData-broken-on-Nvidia-systems-tp5714114p5714147.html
> Sent from the VTK - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtk-developers mailing list