<div dir="ltr">Included below is a response to a similar email from a while back - Ken<div><br></div><div><br></div><div>vtkgl.h can be replaced with vtk_glew.h</div><div><br></div><div>the extension manager is not in the new backend but glew should provide any extension checking support you need although with a different interface</div><div><br></div><div>I am not sure about vtkVisibleCellSelector</div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div><div><div class="" style="font-size:12.8px"><table cellpadding="0" class=""><tbody><tr class=""><td class="" style="width:566px"><table cellpadding="0" class="" style="width:566px"><tbody><tr><td><h3 class=""><span name="Ken Martin" class="" style="font-size:12.8px">Ken Martin</span> <span class=""><span><</span><a href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a><span>></span></span></h3></td></tr></tbody></table></td><td class=""><div class=""><span id=":2tl" class="" title="Thu, Nov 19, 2015 at 5:23 PM" alt="Thu, Nov 19, 2015 at 5:23 PM">Nov 19</span><div class="" tabindex="0" style="outline:0px"><span class=""><img class="" src="https://mail.google.com/mail/u/1/images/cleardot.gif" alt=""></span></div></div></td><td class=""></td><td class="" rowspan="2"><div class="" tabindex="0"><img class="" src="https://mail.google.com/mail/u/1/images/cleardot.gif" alt=""></div><div id=":2u1" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/u/1/images/cleardot.gif" alt=""></div></td></tr><tr class=""><td colspan="3"><table cellpadding="0" class="" style="width:642px"><tbody><tr><td class=""><div class=""><span class="">to <span dir="ltr" name="VictorLamoine" class="">VictorLamoine</span>, <span dir="ltr" name="vtk" class="">vtk</span></span></div><div class=""><img class="" id=":2t5" src="https://mail.google.com/mail/u/1/images/cleardot.gif" alt=""></div></td></tr></tbody></table></td></tr></tbody></table></div><div class="" style="font-size:medium"></div><div class="" style="font-size:medium"></div><div class="" style="font-size:medium"></div><div class="" style="font-size:medium"></div><div id=":2t4" tabindex="-1" style="font-size:medium"></div><div id=":2sz" class="" style="font-size:12.8px"><div id=":2ux" class="" style="overflow:hidden"><div dir="ltr">If you are using the generic Rendering API (vtkActor/vtkCamera/etc) then code should mostly work unchanged. If you are directly working with the OpenGL implementation then the conversion really depends on what you were doing as the implementation is fairly different. In terms of the two specific issues you mentioned vtkgl.h can probably be replaced with vtk_glew.h, I do not recall what vtkOpenGLHardwareSupport does but there is no match for that class in the new backend. Given that you have a class named vtkVertexBufferObject I am guessing you are getting into very specific implementation details so the conversion may not be trivial. On the plus side the new back end includes classes such as vtkOpenGLVertexBufferObject so ... If you have further questions/roadblocks let me know and I'll try to point you in the right direction. <div><br></div><div>P.S. vtkOpenGLPointGaussianMapper in the new backend may be worth a look too as it renders both points and splats etc.<br><div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 5:10 PM, VictorLamoine <span dir="ltr"><<a href="mailto:victor.lamoine@gmail.com" target="_blank">victor.lamoine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br><br>The library I'm using (Point Cloud Library) cannot be compiled as is against<br>a VTK version with OpenGL2 back end. (I'm using VTK trunk)<br>There are some missing includes etc.<br><br>Error examples:<br><br>> In file included from<br>> /home/victor/libraries/<span class="">pcl</span>/src/visualization/src/vtk/vtkVertexBufferObject.cxx:15:0:<br>> /home/victor/libraries/<span class="">pcl</span>/src/visualization/include/<span class="">pcl</span>/visualization/vtk/vtkVertexBufferObject.h:35:62:<br>> fatal error: vtkgl.h: No such file or directory<br>> #include "vtkgl.h" // Needed for gl data types exposed in API<br>> ^<br>> compilation terminated.<br>> [ 50%] Built target pcl_poisson_reconstruction<br>> In file included from<br>> /home/victor/libraries/<span class="">pcl</span>/src/visualization/src/vtk/vtkVertexBufferObjectMapper.cxx:18:0:<br>> /home/victor/libraries/<span class="">pcl</span>/src/visualization/include/<span class="">pcl</span>/visualization/vtk/vtkVertexBufferObject.h:35:62:<br>> fatal error: vtkgl.h: No such file or directory<br>> #include "vtkgl.h" // Needed for gl data types exposed in API<br>> ^<br>> compilation terminated.<br>><br>> /home/victor/libraries/<span class="">pcl</span>/src/visualization/src/pcl_visualizer.cpp:87:38:<br>> fatal error: vtkOpenGLHardwareSupport.h: No such file or directory<br>> #include<br>> <vtkOpenGLHardwareSupport.h><br>> ^<br>> compilation terminated.<br><br>Is there a migration guide helping users getting their code working with<br>OpenGL2 back end?<br>if not, how do I make the association between old/new includes? (and maybe<br>there are some differences in the classes ?)<br><br>Bye<br><br><br><br>--<br>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Migrating-from-OpenGL-to-OpenGL2-tp5735123.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Migrating-from-OpenGL-to-OpenGL2-tp5735123.html</a><br>Sent from the VTK - Users mailing list archive at Nabble.com.<br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><div class=""><div id=":2ty" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></blockquote></div></div></div></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 3:15 AM, Yuri A. <span dir="ltr"><<a href="mailto:andronakiy@gmail.com" target="_blank">andronakiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good day everyone.<br>
<br>
I'm trying to build VTK for PCL library. Well VTK itself is compiled<br>
like a charm, without any error. But inside some the PCL files are<br>
some dependencies to those files:<br>
<br>
#include "vtkgl.h"<br>
#include "vtkOpenGLExtensionManager.h"<br>
#include <vtkVisibleCellSelector.h><br>
<br>
And me and my compiler can't find those.<br>
<br>
It looks like file vtkgl.h should be generated by cmake and put into<br>
"/Rendering/vtkgl.h". But there is none. What settings should i use in<br>
Cmake for VTK? Or that file is not being generated anymore? What am i<br>
doing wrong?<br>
<br>
If you're interested my settings you can see in the attachments to the<br>
letter (not sure how attachments work in mailing list).<br>
<br>
Anyway than you, and have a good day.<br>
<span class="HOEnZb"><font color="#888888"><br>
Yuri.<br>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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></div></div></div>
</div>