<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>The OpenGL bug I posted Sept 21 was resolved. Thank you.<br></div>
<div> </div>
<div> </div>
<div>On Fri, Nov 6, 2015, at 09:24, Ken Martin wrote:<br></div>
<blockquote type="cite"><div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><a name="_MailEndCompose"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">With the new rendering backend in VTK we are using a more recent version of OpenGL (version 3.2 typically).  There are still some spots where old calls are made that no longer work with newer versions of OpenGL. As we find them we fix them so they should be fairly rare with the current VTK tree now.  Typically they just produce an error and get ignored by OpenGL and everything works. </span></span></span></a><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Thanks</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Ken</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Ken Martin PhD</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Chairman & CFO</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Kitware Inc.</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">28 Corporate Drive</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">Clifton Park NY 12065</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><a href="mailto:ken.martin@kitware.com" style="text-decoration: underline; color: blue;"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">ken.martin@kitware.com</span></span></a><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">919 869-8871 (w)</span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.  Thank you.</span></span></span><br></p></div>
<p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><span class="colour" style="color:rgb(31, 73, 125)"><span class="font" style="font-family:Calibri, sans-serif"><span class="size" style="font-size:11pt"></span></span></span><br></p><div><div style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-right-width:initial;border-bottom-width:initial;border-left-width:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:initial;border-image-source:initial;border-image-slice:initial;border-image-width:initial;border-image-outset:initial;border-image-repeat:initial;border-top-style:solid;border-top-color:rgb(181, 196, 223);border-top-width:1pt;padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;"><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><b><span class="font" style="font-family:Tahoma, sans-serif"><span class="size" style="font-size:10pt">From:</span></span></b><span class="font" style="font-family:Tahoma, sans-serif"><span class="size" style="font-size:10pt"> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org" style="text-decoration: underline; color: blue;">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Audrius Stundzia<br><b>Sent:</b> Monday, September 21, 2015 1:10 PM<br><b>To:</b> VTK Users<br><b>Subject:</b> [vtkusers] vtk 6.3.0 | OpenGL2: OpenGL errors?</span></span></p></div>
</div>
<p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p><div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">Hello,<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">OS: Windows 10 x64<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">IDE: MS VS2015 x64<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">CMake: <br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">VTK_RENDERING_BACKEND OpenGL2<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">VTK_REPORT_OPENGL_ERRORS [Checkmark - On]<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">VTK: 6.3.0 x64 Debug build<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">In stdafx.h, have<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">#include <vtkOpenGLError.h><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">Encountering the following runtime error message:<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">Error in ...\OpenGL2\vtkOpenGLRenderer.cxx, line 351<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">vtkOpenGLRenderer [...]: failed after Clear 16 OpenGL errors detected<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">0:[1282] Invalid Operation<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">...<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">15:[1282] Invalid Operation<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">in previously working code, in vtk 5.10.1, that texture maps an image onto a plane.<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">The image is displayed as before, however, it is accompanied by the above error message.<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">A Google search suggests that this may be a GLSL version issue: <br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><a href="https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture" style="text-decoration: underline; color: blue;">https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture</a><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">Also, attempting to add the vtk line of code<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">vtkOpenGLClearErrorMacro();<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">generates the following error message:<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">error LNK2019: unresolved external symbol __imp_glGetError referenced in function "void __cdecl vtkClearOpenGLErrors(unsigned int)" (?vtkClearOpenGLErrors@@YAXI@Z)<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;">Please advise.<br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
<div><p style="font-family: 'Times New Roman', serif; font-size: 12pt; margin: 0in 0in 0.0001pt;"><br></p></div>
</div>
</blockquote><div> </div>
</body>
</html>