From shawn.waldon at kitware.com Fri Dec 2 10:27:17 2016 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Fri, 2 Dec 2016 10:27:17 -0500 Subject: [vtk-developers] New dashboard machines remaining todos Message-ID: Hi all, The new dashboard machines are set up and have been running for almost 2 weeks now. I have been working on cleaning them up and I am very close now. Here are the remaining issues, I would appreciate it if someone on the list could help out with these: - The new windows machine 'mun' has warnings because it is using 32 bit ids (vtkIdType is 32 bit) on a 64 bit system. So we either need to drop this use case or fix the warnings. - The new linux machine 'eeloo' has about 20 failing tests left [1]. I would appreciate it if someone who knows these tests could tell me if they are baselines I need to add or real failures we should open an issue for. Thank you, Shawn [1]: https://open.cdash.org/queryTests.php?compare1=65&value3=Failed&filtercount=3&field3=status%2Fstring&field1=buildname&project=VTK&field2=buildstarttime&showfilters=0&limit=100&compare2=83&value1=a9c04ac2-build154-%5Blinux-shared-release%2Bextdeps%2Bjava%2Bmpi%2Bpython%2Bpython3%2Bqt%2Bqt5%2Btbb%2Btcl%5D-master&compare3=61&showfeed=0&value2=20161201T150529 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 2 10:44:47 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 2 Dec 2016 10:44:47 -0500 Subject: [vtk-developers] New dashboard machines remaining todos In-Reply-To: References: Message-ID: Shawn, Here's my feedback: vtkFiltersGeneralPython-GreenLagrangeStrain - 'xrange' is not in Python 3. Change to 'range' vtkGeovisCoreCxx-TestLabeledGeoView2D - new baseline needed due to small changes in label positions vtkRenderingVolumeCxx-TestProjectedTetrahedraOffscreen - looks like genuine failure In a number of tests, the font sizes have changed slightly. I'm not sure how much we should worry about this, but in at least one case the change is on the order of 2X bigger fonts. HTH, Cory On Fri, Dec 2, 2016 at 10:27 AM, Shawn Waldon wrote: > Hi all, > > The new dashboard machines are set up and have been running for almost 2 > weeks now. I have been working on cleaning them up and I am very close now. > Here are the remaining issues, I would appreciate it if someone on the list > could help out with these: > > - The new windows machine 'mun' has warnings because it is using 32 bit ids > (vtkIdType is 32 bit) on a 64 bit system. So we either need to drop this > use case or fix the warnings. > > - The new linux machine 'eeloo' has about 20 failing tests left [1]. I > would appreciate it if someone who knows these tests could tell me if they > are baselines I need to add or real failures we should open an issue for. > > Thank you, > > Shawn > > [1]: > https://open.cdash.org/queryTests.php?compare1=65&value3=Failed&filtercount=3&field3=status%2Fstring&field1=buildname&project=VTK&field2=buildstarttime&showfilters=0&limit=100&compare2=83&value1=a9c04ac2-build154-%5Blinux-shared-release%2Bextdeps%2Bjava%2Bmpi%2Bpython%2Bpython3%2Bqt%2Bqt5%2Btbb%2Btcl%5D-master&compare3=61&showfeed=0&value2=20161201T150529 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From dan.lipsa at kitware.com Fri Dec 2 13:44:06 2016 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Fri, 2 Dec 2016 13:44:06 -0500 Subject: [vtk-developers] New dashboard machines remaining todos In-Reply-To: References: Message-ID: > > > In a number of tests, the font sizes have changed slightly. I'm not > sure how much we should worry about this, but in at least one case the > change is on the order of 2X bigger fonts. > I can take a look at the font differences since this is something I changed recently. I already have baselines for small differences in fonts between platforms, and those were there before my changes. It is a little strange that there are so many new baselines given that I already have baselines for the rest of the test machines. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Sat Dec 3 09:38:58 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Sat, 3 Dec 2016 09:38:58 -0500 Subject: [vtk-developers] Problems building with cmake 3.3 In-Reply-To: <1479997482.13683.3.camel@aim.com> References: <1479997482.13683.3.camel@aim.com> Message-ID: Thanks for the report Atri, and for packaging! I'll put this on the queue for 7.1.1. On Nov 24, 2016 9:29 AM, "Atri Bhattacharya via vtk-developers" < vtk-developers at vtk.org> wrote: > Hi! > Congratulations and thanks for another exciting release of vtk! > > I am a packager of vtk for openSUSE [1], and I find that vtk 7.1 fails > to build, e.g. on openSUSE 13.2 (hd5 1.8.13, cmake 3.0.2), openSUSE > Leap 42.1 (hdf5 1.8.15, cmake 3.3.2), but builds fine on openSUSE Leap > 42.2 (hdf5 1.8.15, cmake 3.5.2) and later. The error I see on the older > systems is along the lines of: > ``` > [ 245s] -- [1;4;34mConfiguring proj library:[0m > [ 245s] -- > [ 245s] -- PROJ_CORE_TARGET = vtkproj4 > [ 245s] -- PROJ_CORE_TARGET_OUTPUT_NAME = vtkproj4 > [ 245s] -- PROJ_LIBRARIES = vtkproj4 > [ 246s] CMake Error at CMake/NewCMake/FindHDF5.cmake:483 > (find_program): > [ 246s] find_program does not support NAMES_PER_DIR > [ 246s] Call Stack (most recent call first): > [ 246s] CMake/FindHDF5.cmake:7 (include) > [ 246s] CMake/vtkModuleMacros.cmake:858 (find_package) > [ 246s] ThirdParty/hdf5/CMakeLists.txt:1 (vtk_module_third_party) > ``` > Any way we could continue to provide vtk 7.1 for these older > installations, or should we simply stop upgrading vtk for these? Thanks > for any help, suggestions, etc. > > Best wishes. > > [1] My efforts to build vtk 7.1 are here: > https://build.opensuse.org/package/show/home:badshah400: > branches:science/vtk > which, upon success, I will submit to the official pkgs, which are > provided through > https://build.opensuse.org/package/show/science/vtk > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Mon Dec 5 04:19:08 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Mon, 5 Dec 2016 10:19:08 +0100 Subject: [vtk-developers] VTK/Paraview Courses in May Message-ID: Hello Kitware will be holding a 2-day VTK and ParaView course on May 14th and 15th 2017 in Lyon, France. Please visit our web site for more information and registration details at VTK (English) : http://www.kitware.fr/browse/144 VTK (French) : http://formations.kitware.fr/browse/144 ParaView (English) : http://training.kitware.fr/browse/145 ParaView (French) : http://formations.kitware.fr/browse/145 Note that the course will be taught in English. If you have any question, please contact us at formations at kitware.fr Thank you, Mathieu Westphal -------------- next part -------------- An HTML attachment was scrubbed... URL: From isabellamorgan at me.com Mon Dec 5 08:34:45 2016 From: isabellamorgan at me.com (Isabella Morgan) Date: Mon, 05 Dec 2016 13:34:45 +0000 (GMT) Subject: [vtk-developers] vtkRenderingOpenVR tracking Message-ID: <96da8863-ebcd-4ded-864e-9b41b75321d3@me.com> Hello, I'm currently using the vtkRenderingOpenVR module to render an image into an Oculus DK2 device. I'm looking at replacing the tracking information provided by the Oculus sensor with external data. Is this currently an option? If not, is it better to add in a couple functions to complete this or re-write the entire module? Thank you, Isabella Morgan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Dec 5 10:40:30 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 5 Dec 2016 10:40:30 -0500 Subject: [vtk-developers] vtkRenderingOpenVR tracking In-Reply-To: <96da8863-ebcd-4ded-864e-9b41b75321d3@me.com> References: <96da8863-ebcd-4ded-864e-9b41b75321d3@me.com> Message-ID: I've never tried using the Oculus with OpenVR. Having said that I would think the changes to add new event sources would be fairly localized. All event handling from controllers is in void vtkOpenVRRenderWindowInteractor::DoOneEvent The pose code for the headset uses OpenVR and is in void vtkOpenVRRenderWindow::UpdateHMDMatrixPose() I would think editing that would be the safest bet as the transforms can get messy between all the coordinate systems. I would suggest starting by making a subclass your of Interactor and RenderWindow from the current OpenVR ones and just override the key methods as needed. On Mon, Dec 5, 2016 at 8:34 AM, Isabella Morgan wrote: > Hello, > > I'm currently using the vtkRenderingOpenVR module to render an image into > an Oculus DK2 device. I'm looking at replacing the tracking information > provided by the Oculus sensor with external data. Is this currently an > option? If not, is it better to add in a couple functions to complete this > or re-write the entire module? > > Thank you, > Isabella Morgan > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Dec 5 11:44:30 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 5 Dec 2016 11:44:30 -0500 Subject: [vtk-developers] Problems building with cmake 3.3 In-Reply-To: References: <1479997482.13683.3.camel@aim.com> Message-ID: https://gitlab.kitware.com/vtk/vtk/issues/16928 David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Sat, Dec 3, 2016 at 9:38 AM, David E DeMarle wrote: > Thanks for the report Atri, and for packaging! I'll put this on the queue > for 7.1.1. > > On Nov 24, 2016 9:29 AM, "Atri Bhattacharya via vtk-developers" < > vtk-developers at vtk.org> wrote: > >> Hi! >> Congratulations and thanks for another exciting release of vtk! >> >> I am a packager of vtk for openSUSE [1], and I find that vtk 7.1 fails >> to build, e.g. on openSUSE 13.2 (hd5 1.8.13, cmake 3.0.2), openSUSE >> Leap 42.1 (hdf5 1.8.15, cmake 3.3.2), but builds fine on openSUSE Leap >> 42.2 (hdf5 1.8.15, cmake 3.5.2) and later. The error I see on the older >> systems is along the lines of: >> ``` >> [ 245s] -- [1;4;34mConfiguring proj library:[0m >> [ 245s] -- >> [ 245s] -- PROJ_CORE_TARGET = vtkproj4 >> [ 245s] -- PROJ_CORE_TARGET_OUTPUT_NAME = vtkproj4 >> [ 245s] -- PROJ_LIBRARIES = vtkproj4 >> [ 246s] CMake Error at CMake/NewCMake/FindHDF5.cmake:483 >> (find_program): >> [ 246s] find_program does not support NAMES_PER_DIR >> [ 246s] Call Stack (most recent call first): >> [ 246s] CMake/FindHDF5.cmake:7 (include) >> [ 246s] CMake/vtkModuleMacros.cmake:858 (find_package) >> [ 246s] ThirdParty/hdf5/CMakeLists.txt:1 (vtk_module_third_party) >> ``` >> Any way we could continue to provide vtk 7.1 for these older >> installations, or should we simply stop upgrading vtk for these? Thanks >> for any help, suggestions, etc. >> >> Best wishes. >> >> [1] My efforts to build vtk 7.1 are here: >> https://build.opensuse.org/package/show/home:badshah400:bran >> ches:science/vtk >> which, upon success, I will submit to the official pkgs, which are >> provided through >> https://build.opensuse.org/package/show/science/vtk >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From zig.shagit at ya.ru Tue Dec 6 11:31:45 2016 From: zig.shagit at ya.ru (=?utf-8?B?0KjQsNCz0LjRgiDQl9C40LPQsNC90YjQuNC9?=) Date: Tue, 06 Dec 2016 19:31:45 +0300 Subject: [vtk-developers] Using GL anisotropic texture filter Message-ID: <856141481041905@web6h.yandex.ru> Hi! Could someone answer to me: How to implement GL_EXT_texture_filter_anisotropic or use it with vtkTexture Interpolate parameter instead of Linear and Nearest filters? Shagit Ziganshin From milefn at rpi.edu Thu Dec 8 17:15:15 2016 From: milefn at rpi.edu (Milef, Nicholas Boris) Date: Thu, 8 Dec 2016 22:15:15 +0000 Subject: [vtk-developers] Assimp integration Message-ID: Hi, I integrated Assimp into VTK as part of a project. For those unfamiliar, it's a 3D model loader library that imports many file formats (and exports a few). It also has optional post-processing features for simplifying/cleaning up meshes. Would this be of any use in VTK? I needed to integrate it for my specific case because I needed to use Collada since it supported vertex weights (and none of the current VTK import formats support this). Thanks, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Fri Dec 9 16:46:50 2016 From: sean at rogue-research.com (Sean McBride) Date: Fri, 9 Dec 2016 16:46:50 -0500 Subject: [vtk-developers] Assimp integration In-Reply-To: References: Message-ID: <20161209214650.1914469518@mail.rogue-research.com> On Thu, 8 Dec 2016 22:15:15 +0000, Milef, Nicholas Boris said: >I integrated Assimp into VTK as part of a project. For those unfamiliar, >it's a 3D model loader library that imports many file formats (and >exports a few). It also has optional post-processing features for >simplifying/cleaning up meshes. Would this be of any use in VTK? > >I needed to integrate it for my specific case because I needed to use >Collada since it supported vertex weights (and none of the current VTK >import formats support this). Nick, I've never heard of Assimp, but it looks pretty cool and useful for our own uses of VTK. We use VTK to read ply and stl files, and if VTK could read even more formats via this library that'd be great, since users tend to have all sorts of wacky files. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From alexis.girault at kitware.com Fri Dec 9 16:59:23 2016 From: alexis.girault at kitware.com (Alexis Girault) Date: Fri, 9 Dec 2016 16:59:23 -0500 Subject: [vtk-developers] Assimp integration In-Reply-To: <20161209214650.1914469518@mail.rogue-research.com> References: <20161209214650.1914469518@mail.rogue-research.com> Message-ID: For reference: http://www.assimp.org/main_features_formats.html Alexis Girault R&D Engineer in Medical Computing Kitware, Inc. http://www.kitware.com (919) 969-6990 x325 On Fri, Dec 9, 2016 at 4:46 PM, Sean McBride wrote: > On Thu, 8 Dec 2016 22:15:15 +0000, Milef, Nicholas Boris said: > > >I integrated Assimp into VTK as part of a project. For those unfamiliar, > >it's a 3D model loader library that imports many file formats (and > >exports a few). It also has optional post-processing features for > >simplifying/cleaning up meshes. Would this be of any use in VTK? > > > >I needed to integrate it for my specific case because I needed to use > >Collada since it supported vertex weights (and none of the current VTK > >import formats support this). > > Nick, > > I've never heard of Assimp, but it looks pretty cool and useful for our > own uses of VTK. We use VTK to read ply and stl files, and if VTK could > read even more formats via this library that'd be great, since users tend > to have all sorts of wacky files. > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.froger.ml at mailoo.org Mon Dec 12 02:20:41 2016 From: david.froger.ml at mailoo.org (david.froger.ml at mailoo.org) Date: Mon, 12 Dec 2016 08:20:41 +0100 Subject: [vtk-developers] segfault with vtkLineIntegralConvolution2D In-Reply-To: References: <148045128132.2559.17890052110366946280@mael> Message-ID: <9777530ebf6685897ddfcfba44e0d337@mailoo.org> I made this merge request https://gitlab.kitware.com/vtk/vtk/merge_requests/2251 that add `#ifndef __WRAP__` `#endif` around methods that should be be wrapped. This fix the issue. I don't know why the wrapping tool does not detect these methods are not wrappable (do not inherit from vtkObjectBase). Maybe some code should be changed so that the wrapping tool can detect it, without using __WRAP__? Le 29.11.2016 23:33, Burlen Loring a ?crit : > I took a quick look, vtkPainterCommunicator is a class that is not > wrapped, and it seems that commit 4d127b1d introduced the bug. // ETX > and // BTX were removed from the Set/Get methods you mention and a > number of others in the class. I don't think vtkPainterCommunicator > should necessarily be promoted to a vtkObject, the comments in the > Set/Get methods explain why it was not one in the first place. IMO, > probably best to simply exclude these methods from wrapping, if that's > still an option. > > Burlen > > On 11/29/2016 12:28 PM, David Froger wrote: > >> Hello VTK devs, >> >> I'm looking for help/advices to solve >> https://gitlab.kitware.com/vtk/vtk/issues/16920 . >> >> Does vtkPainterCommunicator needs to inherit vtkObject, as I'm trying >> to do? >> >> If so, I now have errors: >> >> ERROR: In /home/vagrant/VTK-7.1.0/Common/Core/vtkObject.cxx, line 156 >> vtkObject (0x18f7140): Trying to delete object with non-zero reference >> count. >> >> Generic Warning: In >> /home/vagrant/VTK-7.1.0/Common/Core/vtkObjectBase.cxx, >> line 93 >> Trying to delete object with non-zero reference count. >> >> I understand the error message (C++ deletes an object whose reference >> count is >> not zero), but I don't know where is come from, and how to solve it. >> (I tried to >> put vtkSmartPointers in place of vtkPainterCommunicator*). Anyway, if >> vtkPainterCommunicator does not need to inherit vtkObject, the problem >> does not >> need to be solved... >> >> Another problem is the VTK robot that detect trailing whitespace, that >> a commit >> already solved. >> >> Thanks, >> David >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: >> http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers From david.froger.ml at mailoo.org Mon Dec 12 02:57:19 2016 From: david.froger.ml at mailoo.org (david.froger.ml at mailoo.org) Date: Mon, 12 Dec 2016 08:57:19 +0100 Subject: [vtk-developers] segfault with vtkLineIntegralConvolution2D In-Reply-To: <9777530ebf6685897ddfcfba44e0d337@mailoo.org> References: <148045128132.2559.17890052110366946280@mael> <9777530ebf6685897ddfcfba44e0d337@mailoo.org> Message-ID: > I made this merge request > https://gitlab.kitware.com/vtk/vtk/merge_requests/2251 > that add `#ifndef __WRAP__` `#endif` around methods that should be be > wrapped. that should *not* be wrapped From A.Buykx at dianafea.com Mon Dec 12 06:50:04 2016 From: A.Buykx at dianafea.com (Andreas Buykx) Date: Mon, 12 Dec 2016 11:50:04 +0000 Subject: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker and vtkCompositePolyDataMapper Message-ID: <65D987BE62E58141AA480A59A8B5BBEA79B2DE60@srv-mail.diana.local> Hi all, I have pipelines that process vtkMultiBlockDataSet and I want to map those using vtkCompositePolyDataMapper. This works fine, except that picking the rendered composite data set causes a crash. This is because vtkPicker, vtkCellPicker and vtkPointPicker assume that vtkMapper always maps a vtkDataSet which is not true in this case. Specifically vtkCellPicker::IntersectActorWithLine and vtkPointPicker::IntersectWithLine will crash, and since vtkPicker::DataSet may get set to 0, any callers fo vtkPicker::GetDataSet that expect a non-null data set will run into problems as well. AFAIK there is no picker implementation that works well with composite data sets, is there? This issue is a blocker for me to integrate vtkCompositePolyDataMapper, so I am going to fix this either by patching our own VTK build or contributing a change to VTK. To do this the right way (I prefer to contribute), I would like some advice/steer on how to fix this issue. A minimally invasive approach would be to add members to vtkPicker to store a vtkDataObject and a flat index of the picked dataset, and set those in case the mapper contains a composite dataset. The IntersectWithLine methods would have to be refactored to allow iterating over the blocks of a vtkDataObject. Kind regards, Andreas DIANA FEA BV Software Developers and Analysis Consultants for Civil and Geotechnical Engineering Delftechpark 19a, 2628XJ, Delft, The Netherlands Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: +31 88 34262 99 http://dianafea.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Dec 12 11:07:32 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 12 Dec 2016 09:07:32 -0700 Subject: [vtk-developers] segfault with vtkLineIntegralConvolution2D In-Reply-To: References: <148045128132.2559.17890052110366946280@mael> <9777530ebf6685897ddfcfba44e0d337@mailoo.org> Message-ID: Hi David, It would be __VTK_WRAP__, the older __WRAP__ macro was deprecated a few months ago because it wasn't possible to tell from its name that it was VTK-specific. But excluding this method with an #ifdef shouldn't be necessary, because as long as vtkPainterCommunicator.h is listed in the CMakeLists.txt, the vtkWrapHierarchy tool should see the definition of the class and deduce that it isn't derived from vtkObjectBase. The wrappers will then automatically skip any methods that refer to it. - David On Mon, Dec 12, 2016 at 12:57 AM, wrote: > I made this merge request https://gitlab.kitware.com/vtk >> /vtk/merge_requests/2251 >> that add `#ifndef __WRAP__` `#endif` around methods that should be be >> wrapped. >> > > that should *not* be wrapped > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Dec 12 13:59:37 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 12 Dec 2016 11:59:37 -0700 Subject: [vtk-developers] segfault with vtkLineIntegralConvolution2D In-Reply-To: References: <148045128132.2559.17890052110366946280@mael> <9777530ebf6685897ddfcfba44e0d337@mailoo.org> Message-ID: Hi David, Would it be possible for you to try the following MR to see if it fixes the issue? https://gitlab.kitware.com/vtk/vtk/merge_requests/2255 On my own system, it fixed the wrapping issue for vtkLineIntegralConvolution2D. Cheers, - David On Mon, Dec 12, 2016 at 9:07 AM, David Gobbi wrote: > Hi David, > > It would be __VTK_WRAP__, the older __WRAP__ macro was deprecated a few > months ago because it wasn't possible to tell from its name that it was > VTK-specific. > > But excluding this method with an #ifdef shouldn't be necessary, because > as long as vtkPainterCommunicator.h is listed in the CMakeLists.txt, the > vtkWrapHierarchy tool should see the definition of the class and deduce > that it isn't derived from vtkObjectBase. The wrappers will then > automatically skip any methods that refer to it. > > - David > > > > On Mon, Dec 12, 2016 at 12:57 AM, wrote: > >> I made this merge request https://gitlab.kitware.com/vtk >>> /vtk/merge_requests/2251 >>> that add `#ifndef __WRAP__` `#endif` around methods that should be be >>> wrapped. >>> >> >> that should *not* be wrapped >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.froger.ml at mailoo.org Mon Dec 12 15:17:28 2016 From: david.froger.ml at mailoo.org (David Froger) Date: Mon, 12 Dec 2016 21:17:28 +0100 Subject: [vtk-developers] segfault with vtkLineIntegralConvolution2D In-Reply-To: References: <148045128132.2559.17890052110366946280@mael> <9777530ebf6685897ddfcfba44e0d337@mailoo.org> Message-ID: <148157384881.10411.18296472709994898561@mael> Hi David, > Would it be possible for you to try the following MR to see if it fixes the > issue? > https://gitlab.kitware.com/vtk/vtk/merge_requests/2255 > On my own system, it fixed the wrapping issue for vtkLineIntegralConvolution2D. !2255 fixed the issue for my system too, thanks a lot! I've close !2251, to be replaced by !2255. Thanks again! Cheers, David From david.gobbi at gmail.com Mon Dec 12 18:58:12 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 12 Dec 2016 16:58:12 -0700 Subject: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker and vtkCompositePolyDataMapper In-Reply-To: <65D987BE62E58141AA480A59A8B5BBEA79B2DE60@srv-mail.diana.local> References: <65D987BE62E58141AA480A59A8B5BBEA79B2DE60@srv-mail.diana.local> Message-ID: Hi Andreas, I think that a remedial fix would be to add a check in vtkPointPicker::IntersectWithLine() so that it returns VTK_DOUBLE_MAX if "input" is NULL. Likewise, the vtkCellPicker::IntersectXXWithLine() methods can return VTK_DOUBLE_MAX if the mapper input is NULL. This won't make multi-block data pickable, but at least it stop the pickers from crashing the program. Then, after that remedial fix is done, the picker could be modified to detect and pick multi-block data. - David On Mon, Dec 12, 2016 at 4:50 AM, Andreas Buykx wrote: > Hi all, > > > > I have pipelines that process vtkMultiBlockDataSet and I want to map those > using vtkCompositePolyDataMapper. This works fine, except that picking the > rendered composite data set causes a crash. This is because vtkPicker, > vtkCellPicker and vtkPointPicker assume that vtkMapper always maps a > vtkDataSet which is not true in this case. Specifically vtkCellPicker::IntersectActorWithLine > and vtkPointPicker::IntersectWithLine will crash, and since > vtkPicker::DataSet may get set to 0, any callers fo vtkPicker::GetDataSet > that expect a non-null data set will run into problems as well. AFAIK there > is no picker implementation that works well with composite data sets, is > there? > > > > This issue is a blocker for me to integrate vtkCompositePolyDataMapper, so > I am going to fix this either by patching our own VTK build or contributing > a change to VTK. To do this the right way (I prefer to contribute), I would > like some advice/steer on how to fix this issue. > > > > A minimally invasive approach would be to add members to vtkPicker to > store a vtkDataObject and a flat index of the picked dataset, and set those > in case the mapper contains a composite dataset. The IntersectWithLine > methods would have to be refactored to allow iterating over the blocks of a > vtkDataObject. > > > > Kind regards, > > Andreas > > > > > > > > *DIANA FEA BV * > > *Software Developers and Analysis Consultants for Civil and Geotechnical > Engineering * > > > > Delftechpark 19a, 2628XJ, Delft, The Netherlands > > Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: > +31 88 34262 99 > > http://dianafea.com > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From A.Buykx at dianafea.com Tue Dec 13 15:39:16 2016 From: A.Buykx at dianafea.com (Andreas Buykx) Date: Tue, 13 Dec 2016 20:39:16 +0000 Subject: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker and vtkCompositePolyDataMapper In-Reply-To: References: <65D987BE62E58141AA480A59A8B5BBEA79B2DE60@srv-mail.diana.local>, Message-ID: <65D987BE62E58141AA480A59A8B5BBEA79B3DE90@srv-mail.diana.local> What would be a good way to extend the pickers for picking composite data? Is it sufficient for all use cases of composite data set picking to store the vtkDataObject and flat index of a picked composite data set, and set the vtkDataSet to zero? That ought to be pretty easy to implement and it would be sufficient I think for our use. Are there other approaches that should be considered? Any thoughts? Kind regards, Andreas ________________________________ From: David Gobbi [david.gobbi at gmail.com] Sent: Tuesday, December 13, 2016 12:58 AM To: Andreas Buykx Cc: vtk-developers at vtk.org Subject: Re: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker and vtkCompositePolyDataMapper Hi Andreas, I think that a remedial fix would be to add a check in vtkPointPicker::IntersectWithLine() so that it returns VTK_DOUBLE_MAX if "input" is NULL. Likewise, the vtkCellPicker::IntersectXXWithLine() methods can return VTK_DOUBLE_MAX if the mapper input is NULL. This won't make multi-block data pickable, but at least it stop the pickers from crashing the program. Then, after that remedial fix is done, the picker could be modified to detect and pick multi-block data. - David On Mon, Dec 12, 2016 at 4:50 AM, Andreas Buykx > wrote: Hi all, I have pipelines that process vtkMultiBlockDataSet and I want to map those using vtkCompositePolyDataMapper. This works fine, except that picking the rendered composite data set causes a crash. This is because vtkPicker, vtkCellPicker and vtkPointPicker assume that vtkMapper always maps a vtkDataSet which is not true in this case. Specifically vtkCellPicker::IntersectActorWithLine and vtkPointPicker::IntersectWithLine will crash, and since vtkPicker::DataSet may get set to 0, any callers fo vtkPicker::GetDataSet that expect a non-null data set will run into problems as well. AFAIK there is no picker implementation that works well with composite data sets, is there? This issue is a blocker for me to integrate vtkCompositePolyDataMapper, so I am going to fix this either by patching our own VTK build or contributing a change to VTK. To do this the right way (I prefer to contribute), I would like some advice/steer on how to fix this issue. A minimally invasive approach would be to add members to vtkPicker to store a vtkDataObject and a flat index of the picked dataset, and set those in case the mapper contains a composite dataset. The IntersectWithLine methods would have to be refactored to allow iterating over the blocks of a vtkDataObject. Kind regards, Andreas DIANA FEA BV Software Developers and Analysis Consultants for Civil and Geotechnical Engineering Delftechpark 19a, 2628XJ, Delft, The Netherlands Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: +31 88 34262 99 http://dianafea.com _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Dec 13 15:57:47 2016 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 13 Dec 2016 13:57:47 -0700 Subject: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker and vtkCompositePolyDataMapper In-Reply-To: <65D987BE62E58141AA480A59A8B5BBEA79B3DE90@srv-mail.diana.local> References: <65D987BE62E58141AA480A59A8B5BBEA79B2DE60@srv-mail.diana.local> <65D987BE62E58141AA480A59A8B5BBEA79B3DE90@srv-mail.diana.local> Message-ID: Well, I don't use composite data in any of my own software and I'm not familiar with the use cases, so I don't have the answer. Hopefully someone else can chime in. Regards, - David On Tue, Dec 13, 2016 at 1:39 PM, Andreas Buykx wrote: > What would be a good way to extend the pickers for picking composite data? > Is it sufficient for all use cases of composite data set picking to store > the vtkDataObject and flat index of a picked composite data set, and set > the vtkDataSet to zero? That ought to be pretty easy to implement and it > would be sufficient I think for our use. Are there other approaches that > should be considered? > > Any thoughts? > > Kind regards, > Andreas > > > ------------------------------ > *From:* David Gobbi [david.gobbi at gmail.com] > *Sent:* Tuesday, December 13, 2016 12:58 AM > *To:* Andreas Buykx > *Cc:* vtk-developers at vtk.org > *Subject:* Re: [vtk-developers] vtkPicker, vtkCellPicker, vtkPointPicker > and vtkCompositePolyDataMapper > > Hi Andreas, > > I think that a remedial fix would be to add a check in vtkPointPicker::IntersectWithLine() > so that it returns VTK_DOUBLE_MAX if "input" is NULL. Likewise, the > vtkCellPicker::IntersectXXWithLine() methods can return VTK_DOUBLE_MAX if > the mapper input is NULL. This won't make multi-block data pickable, but > at least it stop the pickers from crashing the program. > > Then, after that remedial fix is done, the picker could be modified to > detect and pick multi-block data. > > - David > > > On Mon, Dec 12, 2016 at 4:50 AM, Andreas Buykx > wrote: > >> Hi all, >> >> >> >> I have pipelines that process vtkMultiBlockDataSet and I want to map >> those using vtkCompositePolyDataMapper. This works fine, except that >> picking the rendered composite data set causes a crash. This is because >> vtkPicker, vtkCellPicker and vtkPointPicker assume that vtkMapper always >> maps a vtkDataSet which is not true in this case. Specifically >> vtkCellPicker::IntersectActorWithLine and vtkPointPicker::IntersectWithLine >> will crash, and since vtkPicker::DataSet may get set to 0, any callers fo >> vtkPicker::GetDataSet that expect a non-null data set will run into >> problems as well. AFAIK there is no picker implementation that works well >> with composite data sets, is there? >> >> >> >> This issue is a blocker for me to integrate vtkCompositePolyDataMapper, >> so I am going to fix this either by patching our own VTK build or >> contributing a change to VTK. To do this the right way (I prefer to >> contribute), I would like some advice/steer on how to fix this issue. >> >> >> >> A minimally invasive approach would be to add members to vtkPicker to >> store a vtkDataObject and a flat index of the picked dataset, and set those >> in case the mapper contains a composite dataset. The IntersectWithLine >> methods would have to be refactored to allow iterating over the blocks of a >> vtkDataObject. >> >> >> >> Kind regards, >> >> Andreas >> >> >> >> >> >> >> >> *DIANA FEA BV * >> >> *Software Developers and Analysis Consultants for Civil and Geotechnical >> Engineering * >> >> >> >> Delftechpark 19a, 2628XJ, Delft, The Netherlands >> >> Tel: +31 88 34262 15 (Direct) ? Tel: +31 88 34262 00 (Switchboard) ? Fax: >> +31 88 34262 99 >> >> http://dianafea.com >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerald.Lodron at joanneum.at Wed Dec 14 03:57:14 2016 From: Gerald.Lodron at joanneum.at (Lodron, Gerald) Date: Wed, 14 Dec 2016 08:57:14 +0000 Subject: [vtk-developers] Error: no override found for 'vtkContextDevice2D' Message-ID: <75f02afbd20f42d48cee95edca0956fa@RZJMBX2.jr1.local> Hi I updated my vtk from Paraview's vtk of paraview 4.4 to 5.2 where now the opengl2 backend is enabled by default. I programmed an own app which uses qvtkwidget2 to visualize a histogram of an image which worked on my old paraview4.4's vtk. Now I get the error message "Error: no override found for 'vtkContextDevice2D'". I found some threads which say that you have to link vtkRenderingContextOpenGL, but on opengl this file is called vtkRenderingContextOpenGL2 and I am already linking it... Any suggestions? ------------------------------------------------------------------------------------ Gerald Lodron Researcher of Machine Vision Applications Group DIGITAL - Institute for Information and Communication Technologies JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17, 8010 Graz, AUSTRIA phone: +43-316-876-1751 general fax: +43-316-876-1751 web: http://www.joanneum.at/digital e-mail: gerald.lodron at joanneum.at -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerald.Lodron at joanneum.at Wed Dec 14 05:44:05 2016 From: Gerald.Lodron at joanneum.at (Lodron, Gerald) Date: Wed, 14 Dec 2016 10:44:05 +0000 Subject: [vtk-developers] Error: no override found for 'vtkContextDevice2D' In-Reply-To: <75f02afbd20f42d48cee95edca0956fa@RZJMBX2.jr1.local> References: <75f02afbd20f42d48cee95edca0956fa@RZJMBX2.jr1.local> Message-ID: <58428f63f3544709a6c13b0571e2c9e1@RZJMBX2.jr1.local> Solved, over #include VTK_MODULE_INIT(vtkRenderingContextOpenGL2); VTK_MODULE_INIT(vtkRenderingOpenGL2) VTK_MODULE_INIT(vtkInteractionStyle) And QVTKWidget instead of QVTKWidget2, I dont know why but works now... Thanks, Von: vtk-developers [mailto:vtk-developers-bounces at vtk.org] Im Auftrag von Lodron, Gerald Gesendet: Mittwoch, 14. Dezember 2016 09:57 An: VTK Developer (vtk-developers at vtk.org) Betreff: [vtk-developers] Error: no override found for 'vtkContextDevice2D' Hi I updated my vtk from Paraview's vtk of paraview 4.4 to 5.2 where now the opengl2 backend is enabled by default. I programmed an own app which uses qvtkwidget2 to visualize a histogram of an image which worked on my old paraview4.4's vtk. Now I get the error message "Error: no override found for 'vtkContextDevice2D'". I found some threads which say that you have to link vtkRenderingContextOpenGL, but on opengl this file is called vtkRenderingContextOpenGL2 and I am already linking it... Any suggestions? ------------------------------------------------------------------------------------ Gerald Lodron Researcher of Machine Vision Applications Group DIGITAL - Institute for Information and Communication Technologies JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17, 8010 Graz, AUSTRIA phone: +43-316-876-1751 general fax: +43-316-876-1751 web: http://www.joanneum.at/digital e-mail: gerald.lodron at joanneum.at -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schmaelzle at swissmeda.com Thu Dec 15 04:10:22 2016 From: stefan.schmaelzle at swissmeda.com (=?UTF-8?Q?Dr._Stephan_Schm=c3=a4lzle?=) Date: Thu, 15 Dec 2016 10:10:22 +0100 Subject: [vtk-developers] 7.1 Rendering/OpenGL2 Platform dependent maxmemavailable Message-ID: I saw that vtkDirectXGPUInfoList ist not available using OpenGL2. I added it for windows on my own because our SW need the amount of available Graphic Mem (maxmemavailable) not only a default of 128MB, which will even crash on some systems. Is it planned to put vtkDirectXGPUInfoList, and the Mac/Linux aequivalent vtkCore..., vtkX back into a future version? KR -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schmaelzle at swissmeda.com Thu Dec 15 06:44:07 2016 From: stefan.schmaelzle at swissmeda.com (=?UTF-8?Q?Dr._Stephan_Schm=c3=a4lzle?=) Date: Thu, 15 Dec 2016 12:44:07 +0100 Subject: [vtk-developers] vtk 7.1 on Mac OpenGL2 Message-ID: <0450e210-ec27-81de-0eca-18c0c8d850b7@swissmeda.com> The default built on Mac using OpenGL2 is broken for me: shader programs are not initialized -> crashing in even the simplest app. stack trace: called from Interactor()->Render() -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: piapmcgobmidnihl.png Type: image/png Size: 73085 bytes Desc: not available URL: From dave.demarle at kitware.com Thu Dec 15 07:01:27 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 15 Dec 2016 07:01:27 -0500 Subject: [vtk-developers] vtk 7.1 on Mac OpenGL2 In-Reply-To: <0450e210-ec27-81de-0eca-18c0c8d850b7@swissmeda.com> References: <0450e210-ec27-81de-0eca-18c0c8d850b7@swissmeda.com> Message-ID: Please share your cmakecache.txt and more specifics about the environment. On Dec 15, 2016 6:44 AM, "Dr. Stephan Schm?lzle" < stefan.schmaelzle at swissmeda.com> wrote: > The default built on Mac using OpenGL2 is broken for me: > shader programs are not initialized -> crashing in even the simplest app. > > stack trace: > > > called from Interactor()->Render() > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: piapmcgobmidnihl.png Type: image/png Size: 73085 bytes Desc: not available URL: From bill.lorensen at gmail.com Thu Dec 15 10:27:25 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 15 Dec 2016 10:27:25 -0500 Subject: [vtk-developers] Massive valgrind defects after recent merge Message-ID: Folks, Recent changes have resulted in over 5500 valgrind defects. Needs attention. Bill -- Unpaid intern in BillsBasement at noware dot com From andy.bauer at kitware.com Thu Dec 15 10:52:53 2016 From: andy.bauer at kitware.com (Andy Bauer) Date: Thu, 15 Dec 2016 10:52:53 -0500 Subject: [vtk-developers] Massive valgrind defects after recent merge In-Reply-To: References: Message-ID: It looks like many of them are in vtkMapper::SetArrayName(). I think it's just missing a SetArrayName(NULL) in the destructor. I'll change that as my good coding deed of the day :) On Thu, Dec 15, 2016 at 10:27 AM, Bill Lorensen wrote: > Folks, > > Recent changes have resulted in over 5500 valgrind defects. > > Needs attention. > > Bill > > -- > Unpaid intern in BillsBasement at noware dot com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Thu Dec 15 10:54:22 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 15 Dec 2016 10:54:22 -0500 Subject: [vtk-developers] Massive valgrind defects after recent merge In-Reply-To: References: Message-ID: Don't use SetArrayName in the constructor. Use this->ArrayName = NULL; Otherwise it will generate a Undefined Memory Read. On Thu, Dec 15, 2016 at 10:52 AM, Andy Bauer wrote: > It looks like many of them are in vtkMapper::SetArrayName(). I think it's > just missing a SetArrayName(NULL) in the destructor. I'll change that as my > good coding deed of the day :) > > On Thu, Dec 15, 2016 at 10:27 AM, Bill Lorensen > wrote: >> >> Folks, >> >> Recent changes have resulted in over 5500 valgrind defects. >> >> Needs attention. >> >> Bill >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> > -- Unpaid intern in BillsBasement at noware dot com From andy.bauer at kitware.com Thu Dec 15 10:55:13 2016 From: andy.bauer at kitware.com (Andy Bauer) Date: Thu, 15 Dec 2016 10:55:13 -0500 Subject: [vtk-developers] Massive valgrind defects after recent merge In-Reply-To: References: Message-ID: I saw that but it does: vtkMapper::vtkMapper() : ArrayName(NULL) so it should be fine. On Thu, Dec 15, 2016 at 10:54 AM, Bill Lorensen wrote: > Don't use SetArrayName in the constructor. Use > this->ArrayName = NULL; > > Otherwise it will generate a Undefined Memory Read. > > > On Thu, Dec 15, 2016 at 10:52 AM, Andy Bauer > wrote: > > It looks like many of them are in vtkMapper::SetArrayName(). I think it's > > just missing a SetArrayName(NULL) in the destructor. I'll change that as > my > > good coding deed of the day :) > > > > On Thu, Dec 15, 2016 at 10:27 AM, Bill Lorensen > > > wrote: > >> > >> Folks, > >> > >> Recent changes have resulted in over 5500 valgrind defects. > >> > >> Needs attention. > >> > >> Bill > >> > >> -- > >> Unpaid intern in BillsBasement at noware dot com > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Search the list archives at: http://markmail.org/search/?q= > vtk-developers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtk-developers > >> > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Dec 15 11:05:02 2016 From: sean at rogue-research.com (Sean McBride) Date: Thu, 15 Dec 2016 11:05:02 -0500 Subject: [vtk-developers] vtk 7.1 on Mac OpenGL2 In-Reply-To: <0450e210-ec27-81de-0eca-18c0c8d850b7@swissmeda.com> References: <0450e210-ec27-81de-0eca-18c0c8d850b7@swissmeda.com> Message-ID: <20161215160502.1925809616@mail.rogue-research.com> On Thu, 15 Dec 2016 12:44:07 +0100, Dr. Stephan Schm?lzle said: >The default built on Mac using OpenGL2 is broken for me: >shader programs are not initialized -> crashing in even the simplest app. > >stack trace: > > >called from Interactor()->Render() Your stack trace is not really legible as it's cropped. (Also, an image is not ideal for that kind of info. Perhaps you didn't know, but you can copy-paste the stack trace from Xcode as text, just select and copy.) Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From bill.lorensen at gmail.com Thu Dec 15 11:07:24 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 15 Dec 2016 11:07:24 -0500 Subject: [vtk-developers] Valgrind reminder Message-ID: Folks, If you merge a patch be sure to check the valgrind report at the bottom of the dashboard. Several new defects have lingered unnoticed in the past month. Thanks, Bill -- Unpaid intern in BillsBasement at noware dot com From mathieu.westphal at kitware.com Thu Dec 15 11:10:27 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Thu, 15 Dec 2016 17:10:27 +0100 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: Message-ID: Why not adding it to the MR builds ? Mathieu Westphal On Thu, Dec 15, 2016 at 5:07 PM, Bill Lorensen wrote: > Folks, > > If you merge a patch be sure to check the valgrind report at the > bottom of the dashboard. Several new defects have lingered unnoticed > in the past month. > > Thanks, > > Bill > > -- > Unpaid intern in BillsBasement at noware dot com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Thu Dec 15 11:14:18 2016 From: andy.bauer at kitware.com (Andy Bauer) Date: Thu, 15 Dec 2016 11:14:18 -0500 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: Message-ID: Great reminder Bill -- and thanks for monitoring it. I know I don't look at that enough. Mathieu, the valgrind build and test takes quite a bit of time (several hours) and doing it for each merge request would indundate that machine. On Thu, Dec 15, 2016 at 11:10 AM, Mathieu Westphal < mathieu.westphal at kitware.com> wrote: > Why not adding it to the MR builds ? > > Mathieu Westphal > > On Thu, Dec 15, 2016 at 5:07 PM, Bill Lorensen > wrote: > >> Folks, >> >> If you merge a patch be sure to check the valgrind report at the >> bottom of the dashboard. Several new defects have lingered unnoticed >> in the past month. >> >> Thanks, >> >> Bill >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Thu Dec 15 11:15:39 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Thu, 15 Dec 2016 17:15:39 +0100 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: Message-ID: It make senses. Well i need to set a reminder to think of checking it out. Mathieu Westphal On Thu, Dec 15, 2016 at 5:14 PM, Andy Bauer wrote: > Great reminder Bill -- and thanks for monitoring it. I know I don't look > at that enough. > > Mathieu, the valgrind build and test takes quite a bit of time (several > hours) and doing it for each merge request would indundate that machine. > > On Thu, Dec 15, 2016 at 11:10 AM, Mathieu Westphal < > mathieu.westphal at kitware.com> wrote: > >> Why not adding it to the MR builds ? >> >> Mathieu Westphal >> >> On Thu, Dec 15, 2016 at 5:07 PM, Bill Lorensen >> wrote: >> >>> Folks, >>> >>> If you merge a patch be sure to check the valgrind report at the >>> bottom of the dashboard. Several new defects have lingered unnoticed >>> in the past month. >>> >>> Thanks, >>> >>> Bill >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Dec 15 11:24:20 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 15 Dec 2016 11:24:20 -0500 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: Message-ID: After we move valgrind resposibilities off the circa 2009 mac-mini hardware it runs on now, it may be feasible to put it in buildbot. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Dec 15, 2016 at 11:15 AM, Mathieu Westphal < mathieu.westphal at kitware.com> wrote: > It make senses. Well i need to set a reminder to think of checking it out. > > Mathieu Westphal > > On Thu, Dec 15, 2016 at 5:14 PM, Andy Bauer > wrote: > >> Great reminder Bill -- and thanks for monitoring it. I know I don't look >> at that enough. >> >> Mathieu, the valgrind build and test takes quite a bit of time (several >> hours) and doing it for each merge request would indundate that machine. >> >> On Thu, Dec 15, 2016 at 11:10 AM, Mathieu Westphal < >> mathieu.westphal at kitware.com> wrote: >> >>> Why not adding it to the MR builds ? >>> >>> Mathieu Westphal >>> >>> On Thu, Dec 15, 2016 at 5:07 PM, Bill Lorensen >>> wrote: >>> >>>> Folks, >>>> >>>> If you merge a patch be sure to check the valgrind report at the >>>> bottom of the dashboard. Several new defects have lingered unnoticed >>>> in the past month. >>>> >>>> Thanks, >>>> >>>> Bill >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Search the list archives at: http://markmail.org/search/?q= >>>> vtk-developers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>> >>>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Dec 15 12:06:51 2016 From: sean at rogue-research.com (Sean McBride) Date: Thu, 15 Dec 2016 12:06:51 -0500 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: Message-ID: <20161215170651.1371088909@mail.rogue-research.com> On Thu, 15 Dec 2016 11:14:18 -0500, Andy Bauer said: >Great reminder Bill -- and thanks for monitoring it. I know I don't look at >that enough. > >Mathieu, the valgrind build and test takes quite a bit of time (several >hours) and doing it for each merge request would indundate that machine. Valgrind can be 10x slower at runtime, whereas AddressSanitizer (ASan) is only about 2x slower. It would be much more feasible to have the MRs pass through ASan. (The tools largely overlap in the issues they find, but each can catch/miss things the other doesn't.) Reminder: I submit an ASan nightly dashboard, there is currently 1 failure: Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From bill.lorensen at gmail.com Thu Dec 15 12:20:20 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 15 Dec 2016 12:20:20 -0500 Subject: [vtk-developers] Valgrind reminder In-Reply-To: <20161215170651.1371088909@mail.rogue-research.com> References: <20161215170651.1371088909@mail.rogue-research.com> Message-ID: So, ASan missed the latest valgrind defects in vtkMapper? On Thu, Dec 15, 2016 at 12:06 PM, Sean McBride wrote: > On Thu, 15 Dec 2016 11:14:18 -0500, Andy Bauer said: > >>Great reminder Bill -- and thanks for monitoring it. I know I don't look at >>that enough. >> >>Mathieu, the valgrind build and test takes quite a bit of time (several >>hours) and doing it for each merge request would indundate that machine. > > Valgrind can be 10x slower at runtime, whereas AddressSanitizer (ASan) is only about 2x slower. It would be much more feasible to have the MRs pass through ASan. (The tools largely overlap in the issues they find, but each can catch/miss things the other doesn't.) > > Reminder: I submit an ASan nightly dashboard, there is currently 1 failure: > > > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > -- Unpaid intern in BillsBasement at noware dot com From sean at rogue-research.com Thu Dec 15 12:51:32 2016 From: sean at rogue-research.com (Sean McBride) Date: Thu, 15 Dec 2016 12:51:32 -0500 Subject: [vtk-developers] Valgrind reminder In-Reply-To: References: <20161215170651.1371088909@mail.rogue-research.com> Message-ID: <20161215175132.1927095247@mail.rogue-research.com> On Thu, 15 Dec 2016 12:20:20 -0500, Bill Lorensen said: >So, ASan missed the latest valgrind defects in vtkMapper? I guess. As I said, each finds/misses things the other doesn't. ASan notably doesn't find uninitialized memory reads, while valgrind can. OTOH, ASan can find invalid memory access in stack memory, while valgrind can't. I am fully in favour of running both tools! But due to its speed, valgrind is mostly limited to once-nightly, not at every commit. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From sean at rogue-research.com Thu Dec 15 15:07:03 2016 From: sean at rogue-research.com (Sean McBride) Date: Thu, 15 Dec 2016 15:07:03 -0500 Subject: [vtk-developers] Rogue OpenGL1 dashboards switching to OpenGL2 Message-ID: <20161215200703.1535968206@mail.rogue-research.com> Hi all, Since we ourselves recently switched our app from using VTK's OpenGL1 to OpenGL2, I've just changed all our OpenGL1 dashboards to OpenGL2. So tomorrow if someone could adjust the 'expected'ness on cdash, that'd be great. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From alvaro.sanchez at kitware.com Thu Dec 15 15:22:03 2016 From: alvaro.sanchez at kitware.com (Alvaro Sanchez) Date: Thu, 15 Dec 2016 15:22:03 -0500 Subject: [vtk-developers] Massive valgrind defects after recent merge In-Reply-To: References: Message-ID: I am the culprit, thanks for fixing it Andy. I will make sure I look at the Valgrind report more often. On Thu, Dec 15, 2016 at 10:52 AM, Andy Bauer wrote: > It looks like many of them are in vtkMapper::SetArrayName(). I think it's > just missing a SetArrayName(NULL) in the destructor. I'll change that as my > good coding deed of the day :) > > On Thu, Dec 15, 2016 at 10:27 AM, Bill Lorensen > wrote: > >> Folks, >> >> Recent changes have resulted in over 5500 valgrind defects. >> >> Needs attention. >> >> Bill >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Alvaro Sanchez Kitware, Inc. Senior R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4901 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Fri Dec 16 08:58:21 2016 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 16 Dec 2016 08:58:21 -0500 Subject: [vtk-developers] 7.1 Rendering/OpenGL2 Platform dependent maxmemavailable In-Reply-To: References: Message-ID: It would be nice to have it, someone just needs to create a topic and move it over to opengl2. On Thu, Dec 15, 2016 at 4:10 AM, Dr. Stephan Schm?lzle < stefan.schmaelzle at swissmeda.com> wrote: > I saw that vtkDirectXGPUInfoList ist not available using OpenGL2. > I added it for windows on my own because our SW need the amount of > available Graphic Mem (maxmemavailable) > not only a default of 128MB, which will even crash on some systems. > > Is it planned to put vtkDirectXGPUInfoList, and the Mac/Linux aequivalent > vtkCore..., vtkX > back into a future version? > > KR > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Sat Dec 17 11:58:06 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 11:58:06 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited Message-ID: I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx tests for IO/Export are not being compiled. It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not even being read at config time. What am I missing? Bill -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Sat Dec 17 13:00:24 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 13:00:24 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited In-Reply-To: References: Message-ID: I used git bisect to find the problem. The culprit is: commit 480822bfbdbb7218feef6397695ed62808a2fa49 Author: Ken Martin Date: Tue Feb 2 16:11:29 2016 -0500 reduce opengl2 module dependencies Reduce opengl2 dependencies in two ways first move a class that renderingcore depends on from filterExtraction to FiltersGeneral. FiltersExtraction pulls in a lot of other modules where FiltersGeneral does not. FiltersExtraction already depends on filtersGeneral so it should be backwards compatible. The second change is a new feature to allow a back implementation to be required or not. In this case gl2ps was originally required by OpenGl2 now it is optional. This required adding an option to the module code to specify when a backend implementation is required. On Sat, Dec 17, 2016 at 11:58 AM, Bill Lorensen wrote: > I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx > tests for IO/Export are not being compiled. > > It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not > even being read at config time. > > What am I missing? > > Bill > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Sat Dec 17 13:35:09 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 13:35:09 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited In-Reply-To: References: Message-ID: More info. I see this in the cmake output: -- Disable test module vtkIOExport-Test-Cxx since required modules are not enabled: vtkIOExportOpenGL2 On Sat, Dec 17, 2016 at 1:00 PM, Bill Lorensen wrote: > I used git bisect to find the problem. The culprit is: > > commit 480822bfbdbb7218feef6397695ed62808a2fa49 > Author: Ken Martin > Date: Tue Feb 2 16:11:29 2016 -0500 > > reduce opengl2 module dependencies > > Reduce opengl2 dependencies in two ways > first move a class that renderingcore depends on from > filterExtraction to FiltersGeneral. FiltersExtraction pulls > in a lot of other modules where FiltersGeneral does not. > FiltersExtraction already depends on filtersGeneral so it > should be backwards compatible. > > The second change is a new feature to allow a back implementation > to be required or not. In this case gl2ps was originally required > by OpenGl2 now it is optional. This required adding an option to > the module code to specify when a backend implementation is required. > > On Sat, Dec 17, 2016 at 11:58 AM, Bill Lorensen wrote: >> I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx >> tests for IO/Export are not being compiled. >> >> It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not >> even being read at config time. >> >> What am I missing? >> >> Bill >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Sat Dec 17 13:41:38 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 13:41:38 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited In-Reply-To: References: Message-ID: More info. I needed to //Request building vtkIOExportOpenGL2 Module_vtkIOExportOpenGL2:BOOL=ON which is OFF by default. Non-intuitive... I will submit a patch to move the RIB (renderman) code into its own module. If does not need the complex logic of opengl2/glps. Bill On Sat, Dec 17, 2016 at 1:35 PM, Bill Lorensen wrote: > More info. I see this in the cmake output: > -- Disable test module vtkIOExport-Test-Cxx since required modules are > not enabled: vtkIOExportOpenGL2 > > > On Sat, Dec 17, 2016 at 1:00 PM, Bill Lorensen wrote: >> I used git bisect to find the problem. The culprit is: >> >> commit 480822bfbdbb7218feef6397695ed62808a2fa49 >> Author: Ken Martin >> Date: Tue Feb 2 16:11:29 2016 -0500 >> >> reduce opengl2 module dependencies >> >> Reduce opengl2 dependencies in two ways >> first move a class that renderingcore depends on from >> filterExtraction to FiltersGeneral. FiltersExtraction pulls >> in a lot of other modules where FiltersGeneral does not. >> FiltersExtraction already depends on filtersGeneral so it >> should be backwards compatible. >> >> The second change is a new feature to allow a back implementation >> to be required or not. In this case gl2ps was originally required >> by OpenGl2 now it is optional. This required adding an option to >> the module code to specify when a backend implementation is required. >> >> On Sat, Dec 17, 2016 at 11:58 AM, Bill Lorensen wrote: >>> I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx >>> tests for IO/Export are not being compiled. >>> >>> It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not >>> even being read at config time. >>> >>> What am I missing? >>> >>> Bill >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Sat Dec 17 14:12:37 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 14:12:37 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited In-Reply-To: References: Message-ID: Continuing to talk amongst myself, I have a better patch. https://gitlab.kitware.com/vtk/vtk/merge_requests/2272 On Sat, Dec 17, 2016 at 1:41 PM, Bill Lorensen wrote: > More info. > > I needed to > //Request building vtkIOExportOpenGL2 > Module_vtkIOExportOpenGL2:BOOL=ON > > which is OFF by default. > > Non-intuitive... > > I will submit a patch to move the RIB (renderman) code into its own > module. If does not need the complex logic of opengl2/glps. > > Bill > > > > On Sat, Dec 17, 2016 at 1:35 PM, Bill Lorensen wrote: >> More info. I see this in the cmake output: >> -- Disable test module vtkIOExport-Test-Cxx since required modules are >> not enabled: vtkIOExportOpenGL2 >> >> >> On Sat, Dec 17, 2016 at 1:00 PM, Bill Lorensen wrote: >>> I used git bisect to find the problem. The culprit is: >>> >>> commit 480822bfbdbb7218feef6397695ed62808a2fa49 >>> Author: Ken Martin >>> Date: Tue Feb 2 16:11:29 2016 -0500 >>> >>> reduce opengl2 module dependencies >>> >>> Reduce opengl2 dependencies in two ways >>> first move a class that renderingcore depends on from >>> filterExtraction to FiltersGeneral. FiltersExtraction pulls >>> in a lot of other modules where FiltersGeneral does not. >>> FiltersExtraction already depends on filtersGeneral so it >>> should be backwards compatible. >>> >>> The second change is a new feature to allow a back implementation >>> to be required or not. In this case gl2ps was originally required >>> by OpenGl2 now it is optional. This required adding an option to >>> the module code to specify when a backend implementation is required. >>> >>> On Sat, Dec 17, 2016 at 11:58 AM, Bill Lorensen wrote: >>>> I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx >>>> tests for IO/Export are not being compiled. >>>> >>>> It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not >>>> even being read at config time. >>>> >>>> What am I missing? >>>> >>>> Bill >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>> >>> >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Sat Dec 17 15:09:28 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 17 Dec 2016 15:09:28 -0500 Subject: [vtk-developers] IO/Export/Testing/Cxx directory not being visited In-Reply-To: References: Message-ID: This patch is even better: https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 On Sat, Dec 17, 2016 at 2:12 PM, Bill Lorensen wrote: > Continuing to talk amongst myself, > > I have a better patch. > https://gitlab.kitware.com/vtk/vtk/merge_requests/2272 > > > On Sat, Dec 17, 2016 at 1:41 PM, Bill Lorensen wrote: >> More info. >> >> I needed to >> //Request building vtkIOExportOpenGL2 >> Module_vtkIOExportOpenGL2:BOOL=ON >> >> which is OFF by default. >> >> Non-intuitive... >> >> I will submit a patch to move the RIB (renderman) code into its own >> module. If does not need the complex logic of opengl2/glps. >> >> Bill >> >> >> >> On Sat, Dec 17, 2016 at 1:35 PM, Bill Lorensen wrote: >>> More info. I see this in the cmake output: >>> -- Disable test module vtkIOExport-Test-Cxx since required modules are >>> not enabled: vtkIOExportOpenGL2 >>> >>> >>> On Sat, Dec 17, 2016 at 1:00 PM, Bill Lorensen wrote: >>>> I used git bisect to find the problem. The culprit is: >>>> >>>> commit 480822bfbdbb7218feef6397695ed62808a2fa49 >>>> Author: Ken Martin >>>> Date: Tue Feb 2 16:11:29 2016 -0500 >>>> >>>> reduce opengl2 module dependencies >>>> >>>> Reduce opengl2 dependencies in two ways >>>> first move a class that renderingcore depends on from >>>> filterExtraction to FiltersGeneral. FiltersExtraction pulls >>>> in a lot of other modules where FiltersGeneral does not. >>>> FiltersExtraction already depends on filtersGeneral so it >>>> should be backwards compatible. >>>> >>>> The second change is a new feature to allow a back implementation >>>> to be required or not. In this case gl2ps was originally required >>>> by OpenGl2 now it is optional. This required adding an option to >>>> the module code to specify when a backend implementation is required. >>>> >>>> On Sat, Dec 17, 2016 at 11:58 AM, Bill Lorensen wrote: >>>>> I'm sure I'm missing something. On my MAC and Ubuntu systems, the cxx >>>>> tests for IO/Export are not being compiled. >>>>> >>>>> It seems that the CMakeLists.txt file in IO/Export/Testing/Cxx is not >>>>> even being read at config time. >>>>> >>>>> What am I missing? >>>>> >>>>> Bill >>>>> >>>>> -- >>>>> Unpaid intern in BillsBasement at noware dot com >>>> >>>> >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>> >>> >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From jhlegarreta at vicomtech.org Mon Dec 19 02:39:51 2016 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Mon, 19 Dec 2016 08:39:51 +0100 Subject: [vtk-developers] [VTK] Protected methods in vtkDICOMImageReader intended to be public? Message-ID: Folks, I was reviewing the code coverage for vtkDICOMImageReader class. I've noticed that there are a couple of methods (namely GetNumberOfDICOMFileNames and GetDICOMFileName) that are not exercised. However, they are declared as protected, and according to the class doc, intended to be used in subclasses. But no class inherits from vtkDICOMImageReader. Is this OK, or should we make both these methods public? I guess we can live without testing these methods, but I'm just wondering whether they were intended to be public. Thanks, JON HAITZ -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Mon Dec 19 04:01:09 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Mon, 19 Dec 2016 10:01:09 +0100 (CET) Subject: [vtk-developers] Error on glGenQueries Message-ID: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> Hi everyone, I'm new and I'm starting to work on VTK. //// CONTEXT We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was choosen by a previous developper). I've made a Pipeline made like this: 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter => vtkWarpScalar => vtkMergeFilter (geometry) => Actor =========================================> vtkMergeFilter (Scalars) I keep a reference on vtkImageMagnitude to change image data stored inside, hope that all the pipe refresh itself and it seems to work at this time. My image actor is included in a Renderer, with an cubeAxesActor, a ScalarBar and a LegendScaleActor. All pipeline objects are started one time at the start. //// PROBLEM My problem is when I want to change my camera location (to get a 2D view) and call Render() on the renderer to refresh scene I get the following error: vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144 vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 125 vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line 91 vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation The error happens at this line : if (this->TimerQuery == 0) { glGenQueries(1, static_cast(&this->TimerQuery)); } If you want my code, you can ask me. I think it's just a newbie problem, but I don't find anything on it. Best regards Romain -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Mon Dec 19 05:45:13 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Mon, 19 Dec 2016 11:45:13 +0100 (CET) Subject: [vtk-developers] Disable ScalarBar move and resize interaction Message-ID: <1388896809.566876.1482144313830.JavaMail.zimbra@optopartner.com> Hi again, I'm using ScalarBar to add a LUT feedback to users, with ScalarBar Widget and ScalarBarRepresentation to customize his position. OK, it work! But now I would like to disable Drag/Move and Resize of the widget: I try to use this lines: m_scalarRepresentation->MovingOff (); m_scalarRepresentation->DragableOn(); But none of them work in my situation. The only way was to call: m_scalarWidget->ProcessEventsOff(); And I'm affraid that all user interaction don't be catch by my callback now. Can you give me the best way to proceed ? Best regards Romain -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Dec 19 08:23:49 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 19 Dec 2016 08:23:49 -0500 Subject: [vtk-developers] Error on glGenQueries In-Reply-To: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> References: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> Message-ID: What version of VTK are you using? How do you change your camera? Using the same window or creating a new one? Ken On Mon, Dec 19, 2016 at 4:01 AM, Romain CENDRE < romain.cendre at optopartner.com> wrote: > Hi everyone, > I'm new and I'm starting to work on VTK. > > //// CONTEXT > > We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was > choosen by a previous developper). > > I've made a Pipeline made like this: > > 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter => > vtkWarpScalar => vtkMergeFilter (geometry) => Actor > > =========================================> vtkMergeFilter (Scalars) > > I keep a reference on vtkImageMagnitude to change image data stored > inside, hope that all the pipe refresh itself and it seems to work at this > time. > > My image actor is included in a Renderer, with an cubeAxesActor, a > ScalarBar and a LegendScaleActor. > > All pipeline objects are started one time at the start. > > > //// PROBLEM > > My problem is when I want to change my camera location (to get a 2D view) > and call Render() on the renderer to refresh scene I get the following > error: > > vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors detected > 0 : (1282) Invalid operation > 1 : (1282) Invalid operation > 2 : (1282) Invalid operation > 3 : (1282) Invalid operation > 4 : (1282) Invalid operation > 5 : (1282) Invalid operation > 6 : (1282) Invalid operation > 7 : (1282) Invalid operation > 8 : (1282) Invalid operation > 9 : (1282) Invalid operation > 10 : (1282) Invalid operation > 11 : (1282) Invalid operation > 12 : (1282) Invalid operation > 13 : (1282) Invalid operation > 14 : (1282) Invalid operation > 15 : (1282) Invalid operation > > > ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144 > vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected > 0 : (1282) Invalid operation > 1 : (1282) Invalid operation > 2 : (1282) Invalid operation > 3 : (1282) Invalid operation > 4 : (1282) Invalid operation > 5 : (1282) Invalid operation > 6 : (1282) Invalid operation > 7 : (1282) Invalid operation > 8 : (1282) Invalid operation > 9 : (1282) Invalid operation > 10 : (1282) Invalid operation > 11 : (1282) Invalid operation > 12 : (1282) Invalid operation > 13 : (1282) Invalid operation > 14 : (1282) Invalid operation > 15 : (1282) Invalid operation > > > ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line > 125 > vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors > detected > 0 : (1282) Invalid operation > 1 : (1282) Invalid operation > 2 : (1282) Invalid operation > 3 : (1282) Invalid operation > 4 : (1282) Invalid operation > 5 : (1282) Invalid operation > 6 : (1282) Invalid operation > 7 : (1282) Invalid operation > 8 : (1282) Invalid operation > 9 : (1282) Invalid operation > 10 : (1282) Invalid operation > 11 : (1282) Invalid operation > 12 : (1282) Invalid operation > 13 : (1282) Invalid operation > 14 : (1282) Invalid operation > 15 : (1282) Invalid operation > > > ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line > 91 > vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors detected > 0 : (1282) Invalid operation > 1 : (1282) Invalid operation > 2 : (1282) Invalid operation > 3 : (1282) Invalid operation > 4 : (1282) Invalid operation > 5 : (1282) Invalid operation > 6 : (1282) Invalid operation > 7 : (1282) Invalid operation > 8 : (1282) Invalid operation > 9 : (1282) Invalid operation > 10 : (1282) Invalid operation > 11 : (1282) Invalid operation > 12 : (1282) Invalid operation > 13 : (1282) Invalid operation > 14 : (1282) Invalid operation > 15 : (1282) Invalid operation > > > The error happens at this line : > > if (this->TimerQuery == 0) > { > glGenQueries(1, static_cast(&this->TimerQuery)); > } > > If you want my code, you can ask me. > > I think it's just a newbie problem, but I don't find anything on it. > > Best regards > Romain > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Mon Dec 19 08:29:26 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Mon, 19 Dec 2016 14:29:26 +0100 (CET) Subject: [vtk-developers] Error on glGenQueries In-Reply-To: <707473472.839514.1482154105674.JavaMail.zimbra@optopartner.com> References: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> <707473472.839514.1482154105674.JavaMail.zimbra@optopartner.com> Message-ID: <1168074225.841680.1482154166265.JavaMail.zimbra@optopartner.com> And I'm currently using version 7.1! De: "Romain CENDRE" ?: "Ken Martin" Envoy?: Lundi 19 D?cembre 2016 14:28:25 Objet: Re: [vtk-developers] Error on glGenQueries Hi Ken! This is my resetView() function: void QVTKDisplay::resetView() { double * bounds = m_actor->GetBounds(); double imageCenterX = 0.5f * (bounds[1] - bounds[0]); double imageCenterY = 0.5f * (bounds[3] - bounds[2]); double imageWidth = bounds[1] - bounds[0]; double imageHeight = bounds[3] - bounds[2]; m_renderer->ResetCamera(); m_renderer->GetActiveCamera()->ParallelProjectionOn(); m_renderer->GetActiveCamera()->SetFocalPoint(imageCenterX, imageCenterY, 0.f); m_renderer->GetActiveCamera()->SetPosition( imageCenterX, imageCenterY, m_renderer->GetActiveCamera()->GetDistance()); m_renderer->GetActiveCamera()->SetViewUp(0, 1, 0); //m_renderer->Render(); } I try to keep always the same instance of object, idem for window. Does it answer to your question? De: "Ken Martin" ?: "Romain CENDRE" Cc: "vtk-developers" Envoy?: Lundi 19 D?cembre 2016 14:23:49 Objet: Re: [vtk-developers] Error on glGenQueries What version of VTK are you using? How do you change your camera? Using the same window or creating a new one? Ken On Mon, Dec 19, 2016 at 4:01 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: Hi everyone, I'm new and I'm starting to work on VTK. //// CONTEXT We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was choosen by a previous developper). I've made a Pipeline made like this: 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter => vtkWarpScalar => vtkMergeFilter (geometry) => Actor =========================================> vtkMergeFilter (Scalars) I keep a reference on vtkImageMagnitude to change image data stored inside, hope that all the pipe refresh itself and it seems to work at this time. My image actor is included in a Renderer, with an cubeAxesActor, a ScalarBar and a LegendScaleActor. All pipeline objects are started one time at the start. //// PROBLEM My problem is when I want to change my camera location (to get a 2D view) and call Render() on the renderer to refresh scene I get the following error: vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144 vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 125 vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line 91 vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation The error happens at this line : if (this->TimerQuery == 0) { glGenQueries(1, static_cast(&this->TimerQuery)); } If you want my code, you can ask me. I think it's just a newbie problem, but I don't find anything on it. Best regards Romain _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Mon Dec 19 08:48:57 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Mon, 19 Dec 2016 14:48:57 +0100 (CET) Subject: [vtk-developers] Error on glGenQueries In-Reply-To: References: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> <707473472.839514.1482154105674.JavaMail.zimbra@optopartner.com> Message-ID: <938728311.887945.1482155337261.JavaMail.zimbra@optopartner.com> Ok thanks for your advices Ken, I will tryit. 1) At this time I've made this to create my pipe: //Set input data to luminance (PNG data) m_luminanceFilter->SetInputConnection(m_reader->GetOutputPort()); //Extract as a set of polygons m_geometryFilter->SetInputConnection(m_luminanceFilter->GetOutputPort()); //Increase scale of geometry variations m_warp->SetInputConnection(m_geometryFilter->GetOutputPort()); m_warp->SetScaleFactor(-.3); //Now we just have to merge our data (color) and level map (geometry) that's all m_merge->SetGeometryConnection(m_warp->GetOutputPort()); m_merge->SetScalarsConnection(m_reader->GetOutputPort()); //Transition between datas and actors m_mapper->SetInputConnection(m_merge->GetOutputPort()); //Create an actor to provide a representation to our 2D data m_actor->SetMapper(m_mapper); After that, I'm only doing m_reader->SetFileName(fileName.toStdString().c_str()); to change my data. I've supposed that all pipe refresh itself. 2) I will explore this way after the first thing. I will come back! Thanks! De: "Ken Martin" ?: "Romain CENDRE" Envoy?: Lundi 19 D?cembre 2016 14:41:00 Objet: Re: [vtk-developers] Error on glGenQueries That code looks fine. Two ideas of what the issue could be 1) you mentioned holding onto ImageMagnitude and changing its data inside. I'm not sure how your doing that but if you are messing with the underlying C++ data in an image data instance make sure you mark the data as modified. ala myImageData->Modified() maybe even myImageData->GetPointData()->GetScalars()->Modified(); 2) is the rendering working prior to calling resetCamera? If so maybe try commenting out the ParallelProjection although I doubt that is it. If you are rendering correctly before that call, and not creating a different window, then you should be OK. Nothing in that code looks problematic. One other thing you can try is adding a m_renderWindow(or whatever your renderWindow is named, maybe this) ->ReleaseGraphicsResources(m_renderWindow); call at the end of your resetCamera. If something funny is going on with multiple windows that may fix it. On Mon, Dec 19, 2016 at 8:28 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: Hi Ken! This is my resetView() function: void QVTKDisplay::resetView() { double * bounds = m_actor->GetBounds(); double imageCenterX = 0.5f * (bounds[1] - bounds[0]); double imageCenterY = 0.5f * (bounds[3] - bounds[2]); double imageWidth = bounds[1] - bounds[0]; double imageHeight = bounds[3] - bounds[2]; m_renderer->ResetCamera(); m_renderer->GetActiveCamera()->ParallelProjectionOn(); m_renderer->GetActiveCamera()->SetFocalPoint(imageCenterX, imageCenterY, 0.f); m_renderer->GetActiveCamera()->SetPosition( imageCenterX, imageCenterY, m_renderer->GetActiveCamera()->GetDistance()); m_renderer->GetActiveCamera()->SetViewUp(0, 1, 0); //m_renderer->Render(); } I try to keep always the same instance of object, idem for window. Does it answer to your question? De: "Ken Martin" < ken.martin at kitware.com > ?: "Romain CENDRE" < romain.cendre at optopartner.com > Cc: "vtk-developers" < vtk-developers at vtk.org > Envoy?: Lundi 19 D?cembre 2016 14:23:49 Objet: Re: [vtk-developers] Error on glGenQueries What version of VTK are you using? How do you change your camera? Using the same window or creating a new one? Ken On Mon, Dec 19, 2016 at 4:01 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: BQ_BEGIN Hi everyone, I'm new and I'm starting to work on VTK. //// CONTEXT We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was choosen by a previous developper). I've made a Pipeline made like this: 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter => vtkWarpScalar => vtkMergeFilter (geometry) => Actor =========================================> vtkMergeFilter (Scalars) I keep a reference on vtkImageMagnitude to change image data stored inside, hope that all the pipe refresh itself and it seems to work at this time. My image actor is included in a Renderer, with an cubeAxesActor, a ScalarBar and a LegendScaleActor. All pipeline objects are started one time at the start. //// PROBLEM My problem is when I want to change my camera location (to get a 2D view) and call Render() on the renderer to refresh scene I get the following error: vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144 vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 125 vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line 91 vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation The error happens at this line : if (this->TimerQuery == 0) { glGenQueries(1, static_cast(&this->TimerQuery)); } If you want my code, you can ask me. I think it's just a newbie problem, but I don't find anything on it. Best regards Romain _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. BQ_END -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Dec 19 09:16:58 2016 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 19 Dec 2016 09:16:58 -0500 Subject: [vtk-developers] Error on glGenQueries In-Reply-To: <938728311.887945.1482155337261.JavaMail.zimbra@optopartner.com> References: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> <707473472.839514.1482154105674.JavaMail.zimbra@optopartner.com> <938728311.887945.1482155337261.JavaMail.zimbra@optopartner.com> Message-ID: Yes, what you are doing in (1) is all good. That is the right way to do it. On Mon, Dec 19, 2016 at 8:48 AM, Romain CENDRE < romain.cendre at optopartner.com> wrote: > Ok thanks for your advices Ken, I will tryit. > > 1) At this time I've made this to create my pipe: > > > > //Set input data to luminance (PNG data) > m_luminanceFilter->SetInputConnection(m_reader->GetOutputPort()); > //Extract as a set of polygons > m_geometryFilter->SetInputConnection(m_luminanceFilter->GetOutputPort()); > //Increase scale of geometry variations > m_warp->SetInputConnection(m_geometryFilter->GetOutputPort()); > m_warp->SetScaleFactor(-.3); > //Now we just have to merge our data (color) and level map (geometry) > that's all > m_merge->SetGeometryConnection(m_warp->GetOutputPort()); > m_merge->SetScalarsConnection(m_reader->GetOutputPort()); > > //Transition between datas and actors > m_mapper->SetInputConnection(m_merge->GetOutputPort()); > > //Create an actor to provide a representation to our 2D data > m_actor->SetMapper(m_mapper); > > > After that, I'm only doing m_reader->SetFileName( > fileName.toStdString().c_str()); to change my data. > I've supposed that all pipe refresh itself. > > 2) I will explore this way after the first thing. > > I will come back! > > Thanks! > > ------------------------------ > *De: *"Ken Martin" > *?: *"Romain CENDRE" > *Envoy?: *Lundi 19 D?cembre 2016 14:41:00 > *Objet: *Re: [vtk-developers] Error on glGenQueries > > That code looks fine. Two ideas of what the issue could be > > 1) you mentioned holding onto ImageMagnitude and changing its data inside. > I'm not sure how your doing that but if you are messing with the underlying > C++ data in an image data instance make sure you mark the data as modified. > ala myImageData->Modified() maybe even myImageData->GetPointData()-> > GetScalars()->Modified(); > > 2) is the rendering working prior to calling resetCamera? If so maybe try > commenting out the ParallelProjection although I doubt that is it. If you > are rendering correctly before that call, and not creating a different > window, then you should be OK. Nothing in that code looks problematic. One > other thing you can try is adding a m_renderWindow(or whatever your > renderWindow is named, maybe this) ->ReleaseGraphicsResources(m_renderWindow); > call at the end of your resetCamera. If something funny is going on with > multiple windows that may fix it. > > > > On Mon, Dec 19, 2016 at 8:28 AM, Romain CENDRE < > romain.cendre at optopartner.com> wrote: > >> Hi Ken! >> >> This is my resetView() function: >> >> void QVTKDisplay::resetView() >> { >> double * bounds = m_actor->GetBounds(); >> >> double imageCenterX = 0.5f * (bounds[1] - bounds[0]); >> double imageCenterY = 0.5f * (bounds[3] - bounds[2]); >> double imageWidth = bounds[1] - bounds[0]; >> double imageHeight = bounds[3] - bounds[2]; >> >> m_renderer->ResetCamera(); >> m_renderer->GetActiveCamera()->ParallelProjectionOn(); >> m_renderer->GetActiveCamera()->SetFocalPoint(imageCenterX, imageCenterY, >> 0.f); >> m_renderer->GetActiveCamera()->SetPosition( imageCenterX, imageCenterY, >> m_renderer->GetActiveCamera()->GetDistance()); >> m_renderer->GetActiveCamera()->SetViewUp(0, 1, 0); >> //m_renderer->Render(); >> } >> >> I try to keep always the same instance of object, idem for window. >> Does it answer to your question? >> >> ------------------------------ >> *De: *"Ken Martin" >> *?: *"Romain CENDRE" >> *Cc: *"vtk-developers" >> *Envoy?: *Lundi 19 D?cembre 2016 14:23:49 >> *Objet: *Re: [vtk-developers] Error on glGenQueries >> >> What version of VTK are you using? How do you change your camera? Using >> the same window or creating a new one? >> Ken >> >> On Mon, Dec 19, 2016 at 4:01 AM, Romain CENDRE < >> romain.cendre at optopartner.com> wrote: >> >>> Hi everyone, >>> I'm new and I'm starting to work on VTK. >>> >>> //// CONTEXT >>> >>> We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was >>> choosen by a previous developper). >>> >>> I've made a Pipeline made like this: >>> >>> 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter >>> => vtkWarpScalar => vtkMergeFilter (geometry) => Actor >>> >>> =========================================> vtkMergeFilter (Scalars) >>> >>> I keep a reference on vtkImageMagnitude to change image data stored >>> inside, hope that all the pipe refresh itself and it seems to work at this >>> time. >>> >>> My image actor is included in a Renderer, with an cubeAxesActor, a >>> ScalarBar and a LegendScaleActor. >>> >>> All pipeline objects are started one time at the start. >>> >>> >>> //// PROBLEM >>> >>> My problem is when I want to change my camera location (to get a 2D >>> view) and call Render() on the renderer to refresh scene I get the >>> following error: >>> >>> vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors >>> detected >>> 0 : (1282) Invalid operation >>> 1 : (1282) Invalid operation >>> 2 : (1282) Invalid operation >>> 3 : (1282) Invalid operation >>> 4 : (1282) Invalid operation >>> 5 : (1282) Invalid operation >>> 6 : (1282) Invalid operation >>> 7 : (1282) Invalid operation >>> 8 : (1282) Invalid operation >>> 9 : (1282) Invalid operation >>> 10 : (1282) Invalid operation >>> 11 : (1282) Invalid operation >>> 12 : (1282) Invalid operation >>> 13 : (1282) Invalid operation >>> 14 : (1282) Invalid operation >>> 15 : (1282) Invalid operation >>> >>> >>> ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line >>> 144 >>> vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected >>> 0 : (1282) Invalid operation >>> 1 : (1282) Invalid operation >>> 2 : (1282) Invalid operation >>> 3 : (1282) Invalid operation >>> 4 : (1282) Invalid operation >>> 5 : (1282) Invalid operation >>> 6 : (1282) Invalid operation >>> 7 : (1282) Invalid operation >>> 8 : (1282) Invalid operation >>> 9 : (1282) Invalid operation >>> 10 : (1282) Invalid operation >>> 11 : (1282) Invalid operation >>> 12 : (1282) Invalid operation >>> 13 : (1282) Invalid operation >>> 14 : (1282) Invalid operation >>> 15 : (1282) Invalid operation >>> >>> >>> ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, >>> line 125 >>> vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors >>> detected >>> 0 : (1282) Invalid operation >>> 1 : (1282) Invalid operation >>> 2 : (1282) Invalid operation >>> 3 : (1282) Invalid operation >>> 4 : (1282) Invalid operation >>> 5 : (1282) Invalid operation >>> 6 : (1282) Invalid operation >>> 7 : (1282) Invalid operation >>> 8 : (1282) Invalid operation >>> 9 : (1282) Invalid operation >>> 10 : (1282) Invalid operation >>> 11 : (1282) Invalid operation >>> 12 : (1282) Invalid operation >>> 13 : (1282) Invalid operation >>> 14 : (1282) Invalid operation >>> 15 : (1282) Invalid operation >>> >>> >>> ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, >>> line 91 >>> vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors >>> detected >>> 0 : (1282) Invalid operation >>> 1 : (1282) Invalid operation >>> 2 : (1282) Invalid operation >>> 3 : (1282) Invalid operation >>> 4 : (1282) Invalid operation >>> 5 : (1282) Invalid operation >>> 6 : (1282) Invalid operation >>> 7 : (1282) Invalid operation >>> 8 : (1282) Invalid operation >>> 9 : (1282) Invalid operation >>> 10 : (1282) Invalid operation >>> 11 : (1282) Invalid operation >>> 12 : (1282) Invalid operation >>> 13 : (1282) Invalid operation >>> 14 : (1282) Invalid operation >>> 15 : (1282) Invalid operation >>> >>> >>> The error happens at this line : >>> >>> if (this->TimerQuery == 0) >>> { >>> glGenQueries(1, static_cast(&this->TimerQuery)); >>> } >>> >>> If you want my code, you can ask me. >>> >>> I think it's just a newbie problem, but I don't find anything on it. >>> >>> Best regards >>> Romain >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at http://www.kitware.com/ >>> opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 <(518)%20371-3971> >> 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. >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 <(518)%20371-3971> > 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. > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Mon Dec 19 11:26:08 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Mon, 19 Dec 2016 17:26:08 +0100 (CET) Subject: [vtk-developers] Error on glGenQueries In-Reply-To: References: <1897947096.309421.1482138069163.JavaMail.zimbra@optopartner.com> <707473472.839514.1482154105674.JavaMail.zimbra@optopartner.com> <938728311.887945.1482155337261.JavaMail.zimbra@optopartner.com> Message-ID: <1291316010.1264605.1482164768524.JavaMail.zimbra@optopartner.com> Hi again, So I tried several things based on your reply and he seems to have the same symptoms. I shared my piece of code below, I hope it help a little bit more on what I'm doing wrong: /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////// For the .H /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////////// #ifndef VTK_DISPLAY_H #define VTK_DISPLAY_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class QVTKDisplay : public QMainWindow { Q_OBJECT /////////////////////////////////////////////////////////// //////////////////////// MEMBERS ////////////////////////// private: //Graphic part QAction* m_actionOpen; QAction* m_actionReset; QToolBar* m_toolBar; QVTKWidget* m_qvtkWidget; //VTK stuff vtkSmartPointer m_actor; vtkSmartPointer m_cubeAxesActor; vtkSmartPointer m_mapper; vtkSmartPointer m_readerFile; vtkSmartPointer m_connections; vtkSmartPointer m_luminanceFilter; vtkSmartPointer m_geometryFilter; vtkSmartPointer m_merge; vtkSmartPointer m_legendScaleActor; vtkSmartPointer m_lut; vtkSmartPointer m_renderer; vtkSmartPointer m_windowRend; vtkSmartPointer m_scalarBar; vtkSmartPointer m_scalarRepresentation; vtkSmartPointer m_scalarWidget; vtkSmartPointer m_warp; /////////////////////////////////////////////////////////// //////////////////////// CONSTRUCTOR ////////////////////////// public: /** * */ QVTKDisplay(QWidget *parent = 0); /** * */ ~QVTKDisplay(); /////////////////////////////////////////////////////////// //////////////////////// METHODS ////////////////////////// private: /** * */ void changeSource(const QString&); /** * */ void initializeQtComponents(); /** * */ void initializeVTKComponents(); /** * */ void initializeVTKDataPipe(); /** * */ void initializeVTKScene(); /** * */ void readCSV(std::istream& , std::vector< std::vector >&, int&,int& ); ////////////////////////////////////////////// /// SLOTS public slots: /** * */ void actionOpen(); /** * */ void customContext(const QPoint &); /** * */ void resetView(); }; #endif // VTK_DISPLAY_H /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////////// For the CPP /////////////////////////////////////////////////// /////////////////////////////////////////////////// /////////////////////////////////////////////////// #include "stdafx.h" #include "QVTKDisplay.h" #include #include #include #include #include #include #include VTK_MODULE_INIT(vtkInteractionStyle) VTK_MODULE_INIT(vtkRenderingFreeType) VTK_MODULE_INIT(vtkRenderingOpenGL2) /////////////////////////////////////////////////////////// //////////////////////// CONSTRUCTOR ////////////////////////// QVTKDisplay::QVTKDisplay(QWidget *parent) : QMainWindow(parent) { //////////////////// ///// QT /////////////////// initializeQtComponents(); //////////////////// ///// VTK /////////////////// initializeVTKComponents(); } QVTKDisplay::~QVTKDisplay() { } /////////////////////////////////////////////////////////// //////////////////////// METHODS ////////////////////////// ////////////// PRIVATE void QVTKDisplay::changeSource(const QString& fileName) { if(!m_readerFile) { return; } //m_readerFile->SetFileName(fileName.toStdString().c_str()); std::fstream file(fileName.toStdString().c_str(), ios::in); if(!file.is_open()) { return; } std::vector< std::vector > data; int width, height; readCSV(file, data, width, height); double* image = new double [width * height]; for(int row = 0;row line = data.at(row); for(int col = 0; col < width; col++) { image[row * width + col] = line.at(col); } } m_readerFile->SetDataSpacing(1, 1, 1); m_readerFile->SetDataOrigin(0, 0, 0); m_readerFile->SetWholeExtent(0, width-1, 0, height-1, 0, 0); m_readerFile->SetDataExtentToWholeExtent(); m_readerFile->SetDataScalarTypeToDouble(); m_readerFile->SetNumberOfScalarComponents(1); m_readerFile->SetImportVoidPointer(image); m_readerFile->Modified(); m_luminanceFilter->SetInputConnection(m_readerFile->GetOutputPort()); resetView (); } void QVTKDisplay::initializeQtComponents() { //Create title toolbar m_toolBar = new QToolBar(this); m_actionOpen = new QAction("Open",m_toolBar); connect(m_actionOpen,SIGNAL(triggered()),this,SLOT(actionOpen())); m_toolBar->addAction(m_actionOpen); addToolBar(Qt::TopToolBarArea, m_toolBar); //Init visualisation widget m_qvtkWidget = new QVTKWidget(parentWidget()); //Layout creation setCentralWidget(m_qvtkWidget); //QT Action for context actions m_actionReset = new QAction("Reset",this); connect(m_actionReset,SIGNAL(triggered()),this,SLOT(resetView())); //Intercept custom context menu m_qvtkWidget->setContextMenuPolicy(Qt::CustomContextMenu); connect(m_qvtkWidget,SIGNAL(customContextMenuRequested(const QPoint &)), this,SLOT(customContext(const QPoint &))); } void QVTKDisplay::initializeVTKComponents() { /////////////////////////////// //Init all needed VTK instance m_actor = vtkSmartPointer::New(); m_cubeAxesActor = vtkSmartPointer::New(); m_mapper = vtkSmartPointer::New(); m_connections = vtkSmartPointer::New(); m_luminanceFilter = vtkSmartPointer::New(); m_geometryFilter = vtkSmartPointer::New(); m_merge = vtkSmartPointer::New(); m_readerFile = vtkSmartPointer::New(); m_renderer = vtkSmartPointer::New(); m_scalarBar = vtkSmartPointer::New(); m_warp = vtkSmartPointer::New(); m_scalarRepresentation = vtkSmartPointer::New(); m_scalarWidget = vtkSmartPointer::New(); m_lut = vtkSmartPointer::New(); //m_readerFile->SetFileName("C:\\Users\\rcendre\\Desktop\\VTK_display\\influence_actuator_1.txt"); //DEBUG /////////////////////////////// //Setting up VTK pipe for render ////// initializeVTKDataPipe(); //Initialize actor on scene initializeVTKScene(); // Restart view to 2D projection resetView ( ); changeSource("C:\\Users\\rcendre\\Documents\\Visual Studio 2010\\Projects\\VTK_display\\influence_actuator_1.txt"); } void QVTKDisplay::initializeVTKDataPipe() { //Set input data to luminance (PNG data) //m_readerFile->setDe; //m_luminanceFilter->SetInputConnection(m_readerFile->GetOutputPort()); //Extract as a set of polygons m_geometryFilter->SetInputConnection(m_luminanceFilter->GetOutputPort()); //Increase scale of geometry variations m_warp->SetInputConnection(m_geometryFilter->GetOutputPort()); m_warp->SetScaleFactor(-.3); //Now we just have to merge our data (color) and level map (geometry) that's all m_merge->SetGeometryConnection(m_warp->GetOutputPort()); m_merge->SetScalarsConnection(m_readerFile->GetOutputPort()); m_lut->SetNumberOfTableValues(3); m_lut->Build(); m_lut->SetTableValue(0, 0, 0, 1, 1); //Blue m_lut->SetTableValue(1, 0, 1, 0, 1); // Green m_lut->SetTableValue(2, 1, 0, 0, 1); // Red m_lut->SetTableRange(0.0, 100.0); //Transition between datas and actors m_mapper->SetInputConnection(m_merge->GetOutputPort()); m_mapper->SetScalarRange(0, 2); m_mapper->SetLookupTable(m_lut); //vtkPolyDataMapper* mapper = vtkPolyDataMapper::New(); // mapper->SetInputConnection(m_luminanceFilter->GetOutputPort()); // mapper->SetScalarRange(0, 2); // mapper->SetLookupTable(m_lut); //Create an actor to provide a representation to our 2D data m_actor->SetMapper(m_mapper); } void QVTKDisplay::initializeVTKScene() { //Creation of axes m_cubeAxesActor->SetBounds(m_actor->GetBounds()); m_cubeAxesActor->SetCamera(m_renderer->GetActiveCamera()); //m_cubeAxesActor->StickyAxesOn(); //m_cubeAxesActor->CenterStickyAxesOn(); //Scale bar m_legendScaleActor = vtkSmartPointer::New(); m_legendScaleActor->RightAxisVisibilityOff (); m_legendScaleActor->TopAxisVisibilityOff (); m_legendScaleActor->LegendVisibilityOff (); //LUT bar m_scalarRepresentation->SetPosition(0.9, 0.1); m_scalarRepresentation->SetPosition2(0.1, 0.8); m_scalarRepresentation->MovingOff (); m_scalarRepresentation->DragableOn(); m_scalarBar->SetLookupTable(m_lut); m_scalarBar->SetBarRatio( 0.25 ); m_scalarBar->SetTitleRatio( 0.1 ); m_scalarWidget->SetInteractor(m_qvtkWidget->GetRenderWindow()->GetInteractor()); m_scalarWidget->SetRepresentation(m_scalarRepresentation); m_scalarWidget->SetScalarBarActor(m_scalarBar); m_scalarWidget->SetDefaultRenderer(m_renderer); m_scalarWidget->SetCurrentRenderer(m_renderer); m_scalarWidget->ProcessEventsOff(); //m_scalarWidget->PickingManagedOff (); m_qvtkWidget->GetRenderWindow()->GetInteractor()->Initialize(); m_scalarWidget->On(); m_qvtkWidget->GetRenderWindow()->GetInteractor()->Start(); //Compose our VTK scene ! m_renderer->SetRenderWindow (m_qvtkWidget->GetRenderWindow()); m_renderer->AddViewProp(m_actor); m_renderer->AddViewProp(m_cubeAxesActor); m_renderer->AddViewProp(m_legendScaleActor); m_renderer->AddViewProp(m_scalarBar); //We set the renderer to our visual widget and set an interactor for user interaction m_qvtkWidget->GetRenderWindow()->AddRenderer(m_renderer); } void QVTKDisplay::readCSV(std::istream &input, std::vector< std::vector > &output,int& width,int& height ) { std::string csvLine; // read every line from the stream while( std::getline(input, csvLine) ) { std::istringstream csvStream(csvLine); std::string csvElement; std::string::size_type sz; std::vector csvColumn; // read every element from the line that is seperated by commas // and put it into the vector or strings while( std::getline(csvStream, csvElement, ' ') ) { if( csvElement.compare("nan") != 0 ) { csvColumn.push_back(std::stod (csvElement,&sz)); } else { csvColumn.push_back( std::numeric_limits::quiet_NaN() ); } } width = csvColumn.size(); output.push_back(csvColumn); } height = output.size(); } /////////////////////////////////////////////////////////// ////////// SLOTS void QVTKDisplay::actionOpen() { QString file = QFileDialog::getOpenFileName(this,tr("Open PNG"), QDir::currentPath(), tr("PNG Files (*.png)")); if (file.isEmpty()) { return; } changeSource(file); } void QVTKDisplay::customContext(const QPoint& p_pos) { QMenu contextMenu(tr("Context menu"), this); contextMenu.addAction(m_actionReset); contextMenu.exec(mapToGlobal(p_pos)); } void QVTKDisplay::resetView() { double * bounds = m_actor->GetBounds(); double imageCenterX = 0.5f * (bounds[1] - bounds[0]); double imageCenterY = 0.5f * (bounds[3] - bounds[2]); double imageWidth = bounds[1] - bounds[0]; double imageHeight = bounds[3] - bounds[2]; //m_renderer->Render(); m_renderer->ResetCamera(); //m_renderer->ReleaseGraphicsResources(m_qvtkWidget->GetRenderWindow()); m_renderer->GetActiveCamera()->ParallelProjectionOn(); m_renderer->GetActiveCamera()->SetFocalPoint(imageCenterX, imageCenterY, 0.f); m_renderer->GetActiveCamera()->SetPosition( imageCenterX, imageCenterY, m_renderer->GetActiveCamera()->GetDistance()); m_renderer->GetActiveCamera()->SetViewUp(0, 1, 0); m_renderer->Render(); } De: "Ken Martin" ?: "Romain CENDRE" Cc: "vtk-developers" Envoy?: Lundi 19 D?cembre 2016 15:16:58 Objet: Re: [vtk-developers] Error on glGenQueries Yes, what you are doing in (1) is all good. That is the right way to do it. On Mon, Dec 19, 2016 at 8:48 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: Ok thanks for your advices Ken, I will tryit. 1) At this time I've made this to create my pipe: //Set input data to luminance (PNG data) m_luminanceFilter->SetInputConnection(m_reader->GetOutputPort()); //Extract as a set of polygons m_geometryFilter->SetInputConnection(m_luminanceFilter->GetOutputPort()); //Increase scale of geometry variations m_warp->SetInputConnection(m_geometryFilter->GetOutputPort()); m_warp->SetScaleFactor(-.3); //Now we just have to merge our data (color) and level map (geometry) that's all m_merge->SetGeometryConnection(m_warp->GetOutputPort()); m_merge->SetScalarsConnection(m_reader->GetOutputPort()); //Transition between datas and actors m_mapper->SetInputConnection(m_merge->GetOutputPort()); //Create an actor to provide a representation to our 2D data m_actor->SetMapper(m_mapper); After that, I'm only doing m_reader->SetFileName(fileName.toStdString().c_str()); to change my data. I've supposed that all pipe refresh itself. 2) I will explore this way after the first thing. I will come back! Thanks! De: "Ken Martin" < ken.martin at kitware.com > ?: "Romain CENDRE" < romain.cendre at optopartner.com > Envoy?: Lundi 19 D?cembre 2016 14:41:00 Objet: Re: [vtk-developers] Error on glGenQueries That code looks fine. Two ideas of what the issue could be 1) you mentioned holding onto ImageMagnitude and changing its data inside. I'm not sure how your doing that but if you are messing with the underlying C++ data in an image data instance make sure you mark the data as modified. ala myImageData->Modified() maybe even myImageData->GetPointData()->GetScalars()->Modified(); 2) is the rendering working prior to calling resetCamera? If so maybe try commenting out the ParallelProjection although I doubt that is it. If you are rendering correctly before that call, and not creating a different window, then you should be OK. Nothing in that code looks problematic. One other thing you can try is adding a m_renderWindow(or whatever your renderWindow is named, maybe this) ->ReleaseGraphicsResources(m_renderWindow); call at the end of your resetCamera. If something funny is going on with multiple windows that may fix it. On Mon, Dec 19, 2016 at 8:28 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: BQ_BEGIN Hi Ken! This is my resetView() function: void QVTKDisplay::resetView() { double * bounds = m_actor->GetBounds(); double imageCenterX = 0.5f * (bounds[1] - bounds[0]); double imageCenterY = 0.5f * (bounds[3] - bounds[2]); double imageWidth = bounds[1] - bounds[0]; double imageHeight = bounds[3] - bounds[2]; m_renderer->ResetCamera(); m_renderer->GetActiveCamera()->ParallelProjectionOn(); m_renderer->GetActiveCamera()->SetFocalPoint(imageCenterX, imageCenterY, 0.f); m_renderer->GetActiveCamera()->SetPosition( imageCenterX, imageCenterY, m_renderer->GetActiveCamera()->GetDistance()); m_renderer->GetActiveCamera()->SetViewUp(0, 1, 0); //m_renderer->Render(); } I try to keep always the same instance of object, idem for window. Does it answer to your question? De: "Ken Martin" < ken.martin at kitware.com > ?: "Romain CENDRE" < romain.cendre at optopartner.com > Cc: "vtk-developers" < vtk-developers at vtk.org > Envoy?: Lundi 19 D?cembre 2016 14:23:49 Objet: Re: [vtk-developers] Error on glGenQueries What version of VTK are you using? How do you change your camera? Using the same window or creating a new one? Ken On Mon, Dec 19, 2016 at 4:01 AM, Romain CENDRE < romain.cendre at optopartner.com > wrote: BQ_BEGIN Hi everyone, I'm new and I'm starting to work on VTK. //// CONTEXT We use VTK with OpenGL2 (don't ask me why, it's not mandatory, it was choosen by a previous developper). I've made a Pipeline made like this: 2D data image => vtkImageMagnitude => vtkImageDataGeometryFilter => vtkWarpScalar => vtkMergeFilter (geometry) => Actor =========================================> vtkMergeFilter (Scalars) I keep a reference on vtkImageMagnitude to change image data stored inside, hope that all the pipe refresh itself and it seems to work at this time. My image actor is included in a Renderer, with an cubeAxesActor, a ScalarBar and a LegendScaleActor. All pipeline objects are started one time at the start. //// PROBLEM My problem is when I want to change my camera location (to get a 2D view) and call Render() on the renderer to refresh scene I get the following error: vtkOpenGLRenderer (0537D740): failed after Clear 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLCamera.cxx, line 144 vtkOpenGLCamera (053D4D20): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLRenderer.cxx, line 125 vtkOpenGLRenderer (0537D740): failed after UpdateLights 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ERROR: In ..\..\..\sources\Rendering\OpenGL2\vtkOpenGLProperty.cxx, line 91 vtkOpenGLProperty (05A061E8): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation The error happens at this line : if (this->TimerQuery == 0) { glGenQueries(1, static_cast(&this->TimerQuery)); } If you want my code, you can ask me. I think it's just a newbie problem, but I don't find anything on it. Best regards Romain _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. BQ_END -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. BQ_END -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From romain.cendre at optopartner.com Tue Dec 20 05:30:58 2016 From: romain.cendre at optopartner.com (Romain CENDRE) Date: Tue, 20 Dec 2016 11:30:58 +0100 (CET) Subject: [vtk-developers] Getting LUT with nuances Message-ID: <111581613.478658.1482229858767.JavaMail.zimbra@optopartner.com> Hi again, Yesterday I learn that you have defined LUT in VTK ( thanks for this tutorial : http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/LUTUtilities) In my simple test app, I give the choice of the lut in a Combobox. I would like to apply these lut next to my mapper, so I proceed like this: ///Previous operations made m_lut->SetNumberOfTableValues(width*height); m_mapper->SetScalarRange(minZ, maxZ); m_lut->Build(); //When i set a new LUT m_colorSeries->SetColorScheme(choiceLutIndex); m_colorSeries->BuildLookupTable(m_lut); m_lut->IndexedLookupOff(); m_mapper->SetLookupTable(m_lut); m_scalarBar->SetLookupTable(m_lut); When I do this operation I will get a new LUT, but compare to my previous LUT with 1280 colors I get a LUT of 6 colors. I don't know if exist a way to interpolate a value and not taking the nearest index? Best regards Romain -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Dec 20 09:29:21 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 20 Dec 2016 09:29:21 -0500 Subject: [vtk-developers] GL2PS image diffs Message-ID: Folks, This merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 turned gl2ps on for some new platforms. There are lots of failed image tests. This patch did fix an error. For example: https://open.cdash.org/viewTest.php?onlyfailed&buildid=4692227 Not sure how to proceed. Bill -- Unpaid intern in BillsBasement at noware dot com From david.lonie at kitware.com Tue Dec 20 10:39:16 2016 From: david.lonie at kitware.com (David Lonie) Date: Tue, 20 Dec 2016 10:39:16 -0500 Subject: [vtk-developers] GL2PS image diffs In-Reply-To: References: Message-ID: Looks like the dashboard machines are missing some fonts that matplotlib uses. The machines will need to be updated or the tests turned off. On Tue, Dec 20, 2016 at 9:29 AM, Bill Lorensen wrote: > Folks, > > This merge request: > https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 > > turned gl2ps on for some new platforms. There are lots of failed image > tests. This patch did fix an error. > > For example: > https://open.cdash.org/viewTest.php?onlyfailed&buildid=4692227 > > Not sure how to proceed. > > Bill > > -- > Unpaid intern in BillsBasement at noware dot com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Dec 21 08:11:22 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 21 Dec 2016 08:11:22 -0500 Subject: [vtk-developers] GL2PS image diffs In-Reply-To: References: Message-ID: For the ones where the test image looks reasonable, just a tad off I think we should add a new MR with additional valid images. ala https://open.cdash.org/testDetails.php?test=510446018&build=4693540 I can do it if you want. On Tue, Dec 20, 2016 at 10:39 AM, David Lonie wrote: > Looks like the dashboard machines are missing some fonts that matplotlib > uses. The machines will need to be updated or the tests turned off. > > On Tue, Dec 20, 2016 at 9:29 AM, Bill Lorensen > wrote: > >> Folks, >> >> This merge request: >> https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 >> >> turned gl2ps on for some new platforms. There are lots of failed image >> tests. This patch did fix an error. >> >> For example: >> https://open.cdash.org/viewTest.php?onlyfailed&buildid=4692227 >> >> Not sure how to proceed. >> >> Bill >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Wed Dec 21 08:31:08 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 21 Dec 2016 14:31:08 +0100 Subject: [vtk-developers] GL2PS image diffs In-Reply-To: References: Message-ID: I have a MR which touches these baselines anyway, so i will update these there anyway. https://gitlab.kitware.com/vtk/vtk/merge_requests/2283 Soon to be merged. Mathieu Westphal On Wed, Dec 21, 2016 at 2:11 PM, Ken Martin wrote: > For the ones where the test image looks reasonable, just a tad off I think > we should add a new MR with additional valid images. ala > > https://open.cdash.org/testDetails.php?test=510446018&build=4693540 > > I can do it if you want. > > > On Tue, Dec 20, 2016 at 10:39 AM, David Lonie > wrote: > >> Looks like the dashboard machines are missing some fonts that matplotlib >> uses. The machines will need to be updated or the tests turned off. >> >> On Tue, Dec 20, 2016 at 9:29 AM, Bill Lorensen >> wrote: >> >>> Folks, >>> >>> This merge request: >>> https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 >>> >>> turned gl2ps on for some new platforms. There are lots of failed image >>> tests. This patch did fix an error. >>> >>> For example: >>> https://open.cdash.org/viewTest.php?onlyfailed&buildid=4692227 >>> >>> Not sure how to proceed. >>> >>> Bill >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 <(518)%20371-3971> > > 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. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Dec 21 08:32:24 2016 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 21 Dec 2016 08:32:24 -0500 Subject: [vtk-developers] GL2PS image diffs In-Reply-To: References: Message-ID: Awesome! On Wed, Dec 21, 2016 at 8:31 AM, Mathieu Westphal < mathieu.westphal at kitware.com> wrote: > I have a MR which touches these baselines anyway, so i will update these > there anyway. > https://gitlab.kitware.com/vtk/vtk/merge_requests/2283 > > Soon to be merged. > > Mathieu Westphal > > On Wed, Dec 21, 2016 at 2:11 PM, Ken Martin > wrote: > >> For the ones where the test image looks reasonable, just a tad off I >> think we should add a new MR with additional valid images. ala >> >> https://open.cdash.org/testDetails.php?test=510446018&build=4693540 >> >> I can do it if you want. >> >> >> On Tue, Dec 20, 2016 at 10:39 AM, David Lonie >> wrote: >> >>> Looks like the dashboard machines are missing some fonts that matplotlib >>> uses. The machines will need to be updated or the tests turned off. >>> >>> On Tue, Dec 20, 2016 at 9:29 AM, Bill Lorensen >>> wrote: >>> >>>> Folks, >>>> >>>> This merge request: >>>> https://gitlab.kitware.com/vtk/vtk/merge_requests/2273 >>>> >>>> turned gl2ps on for some new platforms. There are lots of failed image >>>> tests. This patch did fix an error. >>>> >>>> For example: >>>> https://open.cdash.org/viewTest.php?onlyfailed&buildid=4692227 >>>> >>>> Not sure how to proceed. >>>> >>>> Bill >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Search the list archives at: http://markmail.org/search/?q= >>>> vtk-developers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>> >>>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 <(518)%20371-3971> >> >> 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. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From milefn at rpi.edu Thu Dec 22 15:45:12 2016 From: milefn at rpi.edu (Milef, Nicholas Boris) Date: Thu, 22 Dec 2016 20:45:12 +0000 Subject: [vtk-developers] Assimp integration In-Reply-To: References: <20161209214650.1914469518@mail.rogue-research.com>, Message-ID: @Sean That's what I what I was thinking as well. Some of the more comprehensive ones (such as Collada) are difficult to write importers for. Is this something that could be added? For iMSTK, we need some features that are not currently supported by the existing file formats. Thanks, Nick ________________________________ From: Alexis Girault [alexis.girault at kitware.com] Sent: Friday, December 09, 2016 4:59 PM To: Sean McBride Cc: Milef, Nicholas Boris; vtk-developers at vtk.org Subject: Re: [vtk-developers] Assimp integration For reference: http://www.assimp.org/main_features_formats.html Alexis Girault R&D Engineer in Medical Computing Kitware, Inc. http://www.kitware.com (919) 969-6990 x325 On Fri, Dec 9, 2016 at 4:46 PM, Sean McBride > wrote: On Thu, 8 Dec 2016 22:15:15 +0000, Milef, Nicholas Boris said: >I integrated Assimp into VTK as part of a project. For those unfamiliar, >it's a 3D model loader library that imports many file formats (and >exports a few). It also has optional post-processing features for >simplifying/cleaning up meshes. Would this be of any use in VTK? > >I needed to integrate it for my specific case because I needed to use >Collada since it supported vertex weights (and none of the current VTK >import formats support this). Nick, I've never heard of Assimp, but it looks pretty cool and useful for our own uses of VTK. We use VTK to read ply and stl files, and if VTK could read even more formats via this library that'd be great, since users tend to have all sorts of wacky files. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuaxo2 at yahoo.com Thu Dec 22 17:08:47 2016 From: stuaxo2 at yahoo.com (Stuart Axon) Date: Thu, 22 Dec 2016 22:08:47 +0000 (UTC) Subject: [vtk-developers] Assimp integration In-Reply-To: References: <20161209214650.1914469518@mail.rogue-research.com> Message-ID: <1944770524.993800.1482444527064@mail.yahoo.com> Hi Nick,??? Do you have a git repo for this? Maybe it's worth making a pull request. ?S++ On Thursday, December 22, 2016 8:45 PM, "Milef, Nicholas Boris" wrote: @Sean That's what I what I was thinking as well. Some of the more comprehensive ones (such as Collada) are difficult to write importers for. Is this something that could be added? For iMSTK, we need some features that are not currently supported by the existing file formats. Thanks,Nick From: Alexis Girault [alexis.girault at kitware.com] Sent: Friday, December 09, 2016 4:59 PM To: Sean McBride Cc: Milef, Nicholas Boris; vtk-developers at vtk.org Subject: Re: [vtk-developers] Assimp integration For reference:?http://www.assimp. org/main_features_formats.html Alexis Girault R&D Engineer in Medical Computing Kitware, Inc. http://www.kitware.com (919) 969-6990 x325 On Fri, Dec 9, 2016 at 4:46 PM, Sean McBride wrote: On Thu, 8 Dec 2016 22:15:15 +0000, Milef, Nicholas Boris said: >I integrated Assimp into VTK as part of a project. For those unfamiliar, >it's a 3D model loader library that imports many file formats (and >exports a few). It also has optional post-processing features for >simplifying/cleaning up meshes. Would this be of any use in VTK? > >I needed to integrate it for my specific case because I needed to use >Collada since it supported vertex weights (and none of the current VTK >import formats support this). Nick, I've never heard of Assimp, but it looks pretty cool and useful for our own uses of VTK.? We use VTK to read ply and stl files, and if VTK could read even more formats via this library that'd be great, since users tend to have all sorts of wacky files. Cheers, -- ______________________________ ______________________________ Sean McBride, B. Eng? ? ? ? ? ? ? ? ?sean at rogue-research.com Rogue Research? ? ? ? ? ? ? ? ? ? ? ? www.rogue-research.com Mac Software Developer? ? ? ? ? ? ? Montr?al, Qu?bec, Canada _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Fri Dec 30 12:36:34 2016 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 30 Dec 2016 12:36:34 -0500 Subject: [vtk-developers] valgrind dashboard entry missing Message-ID: The last valgrind report was December 23. karego-at.kitwareUbuntu-Valgrind -- Unpaid intern in BillsBasement at noware dot com