<div dir="ltr">No I did not, but I just tried it again, adding the "1" argument, and I still get no repro. Running either with Intel or nvidia shows the volume just fine.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 2:35 PM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2017-05-25 18:14 GMT+02:00 David Cole <<a href="mailto:DLRdave@aol.com">DLRdave@aol.com</a>>:<br>
> Fails for me, too, on a 3.5 year old Dell XPS laptop, Windows 8.1,<br>
> with an Intel HD Graphics 4000 running driver version 10.18.10.3316. I<br>
> get your TestCase app window with nothing but an empty (white) client<br>
> region.<br>
><br>
> An app we have built against VTK 6.2-ish with the old OpenGL using<br>
> VolumeSmartMapper works fine on this very same machine.<br>
><br>
> Another data point...<br>
<br>
</span>Finally a reproduction, I was beginning to despair :) Thanks a lot David.<br>
<br>
And just to make sure, Aron, did you run the test case as "TestCase<br>
1", with a parameter? That's the crucial thing, as otherwise it'll<br>
just use a regular vtkRenderWindow/<wbr>vtkRenderWindowInteractor (not<br>
QVTKOpenGLWidget), and not exhibit the problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
Elvis<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> D<br>
><br>
><br>
><br>
><br>
> On Thu, May 25, 2017 at 11:02 AM, Elvis Stansvik<br>
> <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>> 2017-05-25 16:22 GMT+02:00 Aron Helser <<a href="mailto:aron.helser@kitware.com">aron.helser@kitware.com</a>>:<br>
>>> Hi Elvis,<br>
>>> I've got a Win10 laptop (dell precision 5510), with an Optimus setup - both<br>
>>> intel and nvidia graphics.<br>
>>> With your test case, I'm able to see the volume running either with Intel or<br>
>>> nVidia, so it doesn't repro for me.<br>
>>> I've got Intel HD530 graphics, with driver version 21.20.16.4627<br>
>>> Sorry,<br>
>>> Aron<br>
>><br>
>> Alright, bugger. Thanks for testing though!<br>
>><br>
>> I won't be at the office until Monday again, but when I'm back I'll<br>
>> try experimenting with different driver versions.<br>
>><br>
>> Elvis<br>
>><br>
>>><br>
>>> On Wed, May 24, 2017 at 5:02 PM, Elvis Stansvik<br>
>>> <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>>>><br>
>>>> 2017-05-24 22:49 GMT+02:00 Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>><wbr>:<br>
>>>> > 2017-05-24 22:20 GMT+02:00 Sankhesh Jhaveri<br>
>>>> > <<a href="mailto:sankhesh.jhaveri@kitware.com">sankhesh.jhaveri@kitware.com</a>><wbr>:<br>
>>>> >> Hi Elvis,<br>
>>>> >><br>
>>>> >> Unfortunately, I wasn’t able to reproduce this issue. :(<br>
>>>> >><br>
>>>> >> I don’t have a Windows machine with an Intel graphics card but tried<br>
>>>> >> ParaView on a couple of se Windows machines as well as a Mac (with an<br>
>>>> >> Intel<br>
>>>> >> HD5600). Worked fine.<br>
>>>> ><br>
>>>> > Alright. Call for help then: Anyone else have a Windows 7 machine with<br>
>>>> > Intel graphics? Would be great if someone could reproduce.<br>
>>>><br>
>>>> Forgot to say: Thanks a lot for trying to reproduce Sankhesh.<br>
>>>><br>
>>>> I've now put up the compiled self-contained test case here:<br>
>>>><br>
>>>>     <a href="http://dose.se/~estan/voltestcase-inst.zip" rel="noreferrer" target="_blank">http://dose.se/~estan/<wbr>voltestcase-inst.zip</a> (18 MB)<br>
>>>><br>
>>>> If anyone with Windows (preferably Windows 7 if possible) + Intel<br>
>>>> graphics could try running this test case with "TestCase 1" and see if<br>
>>>> the volume shows up, that would be great.<br>
>>>><br>
>>>> (Running the test case with argc > 2 will make it use<br>
>>>> QVTKOpenGLWidget, and is where I'm having trouble).<br>
>>>><br>
>>>> Elvis<br>
>>>><br>
>>>> ><br>
>>>> > I could put up my build of the test case as a self-contained .zip, to<br>
>>>> > make it easy to test.<br>
>>>> ><br>
>>>> >><br>
>>>> >> At this point, I am inclined to think that the graphics drivers on your<br>
>>>> >> Windows machine may need updating.<br>
>>>> ><br>
>>>> > Hm, but it works fine if I don't use QVTKOpenGLWidget, and just use a<br>
>>>> > plain vtkRenderWindow + vtkRenderWindowInteractor. Wouldn't that<br>
>>>> > suggest that the drivers are capable enough, and that the problem is<br>
>>>> > somehow in QVTKOpenGLWidget (or QOpenGLWidget)?<br>
>>>> ><br>
>>>> > Elvis<br>
>>>> ><br>
>>>> >><br>
>>>> >><br>
>>>> >> On Wed, May 24, 2017 at 12:16 PM Sankhesh Jhaveri<br>
>>>> >> <<a href="mailto:sankhesh.jhaveri@kitware.com">sankhesh.jhaveri@kitware.com</a>> wrote:<br>
>>>> >>><br>
>>>> >>> Okay thanks.<br>
>>>> >>><br>
>>>> >>> I’ll take a look.<br>
>>>> >>><br>
>>>> >>><br>
>>>> >>> On Wed, May 24, 2017 at 8:18 AM Elvis Stansvik<br>
>>>> >>> <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>>>> >>>><br>
>>>> >>>> 2017-05-23 15:41 GMT+02:00 Sankhesh Jhaveri<br>
>>>> >>>> <<a href="mailto:sankhesh.jhaveri@kitware.com">sankhesh.jhaveri@kitware.com</a>><wbr>:<br>
>>>> >>>> > Hi Elvis,<br>
>>>> >>>> ><br>
>>>> >>>> > Could you try downloading the ParaView nightly binary and test<br>
>>>> >>>> > volume<br>
>>>> >>>> > rendering there? You can use the wavelet source for a test dataset.<br>
>>>> >>>> > ParaView<br>
>>>> >>>> > uses the QVTKOpenGLWidget and it would be a good test before diving<br>
>>>> >>>> > into the<br>
>>>> >>>> > code.<br>
>>>> >>>><br>
>>>> >>>> I tried the wavelet example with Paraview 5.4.0-RC1-125-g435b603<br>
>>>> >>>> 64-bit, and the problem is the same as in my minimal test case. The<br>
>>>> >>>> volume won't show up.<br>
>>>> >>>><br>
>>>> >>>> It does show up if I switch to the software based ray cast mapper<br>
>>>> >>>> (but<br>
>>>> >>>> not with GPU or smart, which I guess both result in the GPU one being<br>
>>>> >>>> used).<br>
>>>> >>>><br>
>>>> >>>> Please tell me if there's anything else I can do to help debugging.<br>
>>>> >>>> There are no errors printed when I run my test case.<br>
>>>> >>>><br>
>>>> >>>> Elvis<br>
>>>> >>>><br>
>>>> >>>> ><br>
>>>> >>>> > Thanks,<br>
>>>> >>>> > Sankhesh<br>
>>>> >>>> ><br>
>>>> >>>> ><br>
>>>> >>>> > On Tue, May 23, 2017 at 6:50 AM Elvis Stansvik<br>
>>>> >>>> > <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>>>> >>>> >><br>
>>>> >>>> >> Hi all,<br>
>>>> >>>> >><br>
>>>> >>>> >> In porting to QVTKOpenGLWidget, I can't get volumes rendered using<br>
>>>> >>>> >> vtkGPUVolumeRayCastMapper to show up on Windows 7, Intel graphics<br>
>>>> >>>> >> (HD<br>
>>>> >>>> >> 4600). They show up fine on Linux. They also show up fine on<br>
>>>> >>>> >> Windows 7<br>
>>>> >>>> >> if using a plain VTK render window. I've tried turning off<br>
>>>> >>>> >> multisampling with setSamples(0) on the default QSurfaceFormat.<br>
>>>> >>>> >><br>
>>>> >>>> >> The below test case illustrates the issue. See the attached<br>
>>>> >>>> >> screenshots from running "TestCase" (left) and "TestCase 1"<br>
>>>> >>>> >> (right).<br>
>>>> >>>> >> The former uses a plain render window while the latter uses the<br>
>>>> >>>> >> new<br>
>>>> >>>> >> QVTKOpenGLWidget. Notice how in the Windows 7 screenshot, the<br>
>>>> >>>> >> plain<br>
>>>> >>>> >> VTK rendering works fine, but the QVTKOpenGLWidget one is not<br>
>>>> >>>> >> showing<br>
>>>> >>>> >> the volume.<br>
>>>> >>>> >><br>
>>>> >>>> >> Versions used:<br>
>>>> >>>> >><br>
>>>> >>>> >> Kubuntu Linux 16.04<br>
>>>> >>>> >> VTK 8.0.0.rc1, OpenGL2<br>
>>>> >>>> >> Qt 5.5.1<br>
>>>> >>>> >><br>
>>>> >>>> >> Windows 7<br>
>>>> >>>> >> VTK 8.0.0.rc1, OpenGL2<br>
>>>> >>>> >> Qt 5.6.2<br>
>>>> >>>> >><br>
>>>> >>>> >> Any ideas what the problem might be?<br>
>>>> >>>> >><br>
>>>> >>>> >> I can provide a standalone .zip distribution of my build of the<br>
>>>> >>>> >> test<br>
>>>> >>>> >> case if you want.<br>
>>>> >>>> >><br>
>>>> >>>> >> Note that this issue is orthogonal to the alpha issue I reported<br>
>>>> >>>> >> and<br>
>>>> >>>> >> got solved in my other thread.<br>
>>>> >>>> >><br>
>>>> >>>> >> Many thanks in advance,<br>
>>>> >>>> >> Elvis<br>
>>>> >>>> >><br>
>>>> >>>> >><br>
>>>> >>>> >> main.cpp:<br>
>>>> >>>> >><br>
>>>> >>>> >> #include <algorithm><br>
>>>> >>>> >><br>
>>>> >>>> >> #include <vtkColorTransferFunction.h><br>
>>>> >>>> >> #include <vtkGenericOpenGLRenderWindow.<wbr>h><br>
>>>> >>>> >> #include <vtkGPUVolumeRayCastMapper.h><br>
>>>> >>>> >> #include <vtkImageData.h><br>
>>>> >>>> >> #include <vtkNew.h><br>
>>>> >>>> >> #include <vtkPiecewiseFunction.h><br>
>>>> >>>> >> #include <vtkProperty.h><br>
>>>> >>>> >> #include <vtkRenderer.h><br>
>>>> >>>> >> #include <vtkRenderWindow.h><br>
>>>> >>>> >> #include <vtkRenderWindowInteractor.h><br>
>>>> >>>> >> #include <vtkVolume.h><br>
>>>> >>>> >> #include <vtkVolumeProperty.h><br>
>>>> >>>> >><br>
>>>> >>>> >> #include <QVTKOpenGLWidget.h><br>
>>>> >>>> >><br>
>>>> >>>> >> #include <QApplication><br>
>>>> >>>> >><br>
>>>> >>>> >> int main(int argc, char *argv[])<br>
>>>> >>>> >> {<br>
>>>> >>>> >>     auto defaultFormat = QVTKOpenGLWidget::<wbr>defaultFormat();<br>
>>>> >>>> >>     defaultFormat.setSamples(0);<br>
>>>> >>>> >>     QSurfaceFormat::<wbr>setDefaultFormat(<wbr>defaultFormat);<br>
>>>> >>>> >><br>
>>>> >>>> >>     QApplication app(argc, argv);<br>
>>>> >>>> >><br>
>>>> >>>> >>     // Set up volume rendering<br>
>>>> >>>> >>     vtkNew<<wbr>vtkColorTransferFunction> colorFunction;<br>
>>>> >>>> >>     colorFunction->AddRGBPoint(0.<wbr>0, 0.0, 0.0, 0.0);<br>
>>>> >>>> >>     colorFunction->AddRGBPoint(1.<wbr>0, 0.0, 0.0, 0.0);<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<vtkPiecewiseFunction> opacityFunction;<br>
>>>> >>>> >>     opacityFunction->AddPoint(0.0, 0.0);<br>
>>>> >>>> >>     opacityFunction->AddPoint(1.0, 1.0);<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<vtkImageData> imageData;<br>
>>>> >>>> >>     imageData->SetExtent(0, 200, 0, 200, 0, 200);<br>
>>>> >>>> >>     imageData->AllocateScalars(<wbr>VTK_FLOAT, 1);<br>
>>>> >>>> >>     std::fill_n(static_cast<float<br>
>>>> >>>> >> *>(imageData-><wbr>GetScalarPointer()),<br>
>>>> >>>> >> 8000000, 0.01);<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<<wbr>vtkGPUVolumeRayCastMapper> volumeMapper;<br>
>>>> >>>> >>     volumeMapper->SetInputData(<wbr>imageData.Get());<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<vtkVolumeProperty> volumeProperty;<br>
>>>> >>>> >>     volumeProperty-><wbr>SetScalarOpacity(<wbr>opacityFunction.Get());<br>
>>>> >>>> >>     volumeProperty->SetColor(<wbr>colorFunction.Get());<br>
>>>> >>>> >>     volumeProperty->ShadeOff();<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<vtkVolume> volume;<br>
>>>> >>>> >>     volume->SetMapper(<wbr>volumeMapper.Get());<br>
>>>> >>>> >>     volume->SetProperty(<wbr>volumeProperty.Get());<br>
>>>> >>>> >><br>
>>>> >>>> >>     vtkNew<vtkRenderer> renderer;<br>
>>>> >>>> >>     renderer->AddVolume(volume.<wbr>Get());<br>
>>>> >>>> >>     renderer->SetBackground(1.0, 1.0, 1.0);<br>
>>>> >>>> >><br>
>>>> >>>> >>     if (argc > 1) {<br>
>>>> >>>> >>         // Render with QVTKOpenGLWidget<br>
>>>> >>>> >>         vtkNew<<wbr>vtkGenericOpenGLRenderWindow> window;<br>
>>>> >>>> >>         window->AddRenderer(renderer.<wbr>Get());<br>
>>>> >>>> >><br>
>>>> >>>> >>         auto widget = new QVTKOpenGLWidget();<br>
>>>> >>>> >>         widget->SetRenderWindow(<wbr>window.Get());<br>
>>>> >>>> >>         widget->show();<br>
>>>> >>>> >><br>
>>>> >>>> >>         return app.exec();<br>
>>>> >>>> >>     } else {<br>
>>>> >>>> >>         // Render with "plain" render window / interactor<br>
>>>> >>>> >>         vtkNew<vtkRenderWindow> window;<br>
>>>> >>>> >>         window->AddRenderer(renderer.<wbr>Get());<br>
>>>> >>>> >><br>
>>>> >>>> >>         vtkNew<<wbr>vtkRenderWindowInteractor> interactor;<br>
>>>> >>>> >>         interactor->SetRenderWindow(<wbr>window.Get());<br>
>>>> >>>> >>         interactor->Start();<br>
>>>> >>>> >><br>
>>>> >>>> >>         return 0;<br>
>>>> >>>> >>     }<br>
>>>> >>>> >> }<br>
>>>> >>>> >><br>
>>>> >>>> >><br>
>>>> >>>> >> CMakeLists.txt:<br>
>>>> >>>> >><br>
>>>> >>>> >> cmake_minimum_required(VERSION 3.1)<br>
>>>> >>>> >><br>
>>>> >>>> >> project(TestCase)<br>
>>>> >>>> >><br>
>>>> >>>> >> find_package(VTK 8.0 COMPONENTS<br>
>>>> >>>> >>     vtkCommonCore<br>
>>>> >>>> >>     vtkCommonDataModel<br>
>>>> >>>> >>     vtkCommonExecutionModel<br>
>>>> >>>> >>     vtkCommonMath<br>
>>>> >>>> >>     vtkFiltersSources<br>
>>>> >>>> >>     vtkGUISupportQt<br>
>>>> >>>> >>     vtkInteractionStyle<br>
>>>> >>>> >>     vtkRenderingCore<br>
>>>> >>>> >>     vtkRenderingOpenGL2<br>
>>>> >>>> >>     vtkRenderingVolume<br>
>>>> >>>> >>     vtkRenderingVolumeOpenGL2<br>
>>>> >>>> >>     REQUIRED<br>
>>>> >>>> >> )<br>
>>>> >>>> >><br>
>>>> >>>> >> find_package(Qt5Widgets REQUIRED)<br>
>>>> >>>> >><br>
>>>> >>>> >> add_executable(TestCase main.cpp)<br>
>>>> >>>> >><br>
>>>> >>>> >> target_link_libraries(TestCase PUBLIC<br>
>>>> >>>> >>     vtkCommonCore<br>
>>>> >>>> >>     vtkCommonDataModel<br>
>>>> >>>> >>     vtkCommonExecutionModel<br>
>>>> >>>> >>     vtkCommonMath<br>
>>>> >>>> >>     vtkFiltersSources<br>
>>>> >>>> >>     vtkGUISupportQt<br>
>>>> >>>> >>     vtkInteractionStyle<br>
>>>> >>>> >>     vtkRenderingCore<br>
>>>> >>>> >>     vtkRenderingOpenGL2<br>
>>>> >>>> >>     vtkRenderingVolume<br>
>>>> >>>> >>     vtkRenderingVolumeOpenGL2<br>
>>>> >>>> >>     Qt5::Widgets<br>
>>>> >>>> >> )<br>
>>>> >>>> >><br>
>>>> >>>> >> target_include_directories(<wbr>TestCase PUBLIC<br>
>>>> >>>> >>     ${VTK_INCLUDE_DIRS}<br>
>>>> >>>> >> )<br>
>>>> >>>> >><br>
>>>> >>>> >> target_compile_definitions(<wbr>TestCase PUBLIC<br>
>>>> >>>> >>     ${VTK_DEFINITIONS}<br>
>>>> >>>> >> )<br>
>>>> >>>> >><br>
>>>> >>>> >> set_target_properties(TestCase PROPERTIES<br>
>>>> >>>> >>     CXX_STANDARD 14<br>
>>>> >>>> >>     CXX_STANDARD_REQUIRED ON<br>
>>>> >>>> >> )<br>
>>>> >>>> >> ______________________________<wbr>_________________<br>
>>>> >>>> >> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>>>> >>>> >><br>
>>>> >>>> >> Visit other Kitware open-source projects at<br>
>>>> >>>> >> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>>>> >>>> >><br>
>>>> >>>> >> Search the list archives at:<br>
>>>> >>>> >> <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
>>>> >>>> >><br>
>>>> >>>> >> Follow this link to subscribe/unsubscribe:<br>
>>>> >>>> >> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
>>>> >>>> >><br>
>>>> >>>> > --<br>
>>>> >>>> ><br>
>>>> >>>> > Sankhesh Jhaveri<br>
>>>> >>>> ><br>
>>>> >>>> > Sr. Research & Development Engineer | Kitware | <a href="tel:%28518%29%20881-4417" value="+15188814417">(518) 881-4417</a><br>
>>>> >>><br>
>>>> >>> --<br>
>>>> >>><br>
>>>> >>> Sankhesh Jhaveri<br>
>>>> >>><br>
>>>> >>> Sr. Research & Development Engineer | Kitware | <a href="tel:%28518%29%20881-4417" value="+15188814417">(518) 881-4417</a><br>
>>>> >><br>
>>>> >> --<br>
>>>> >><br>
>>>> >> Sankhesh Jhaveri<br>
>>>> >><br>
>>>> >> Sr. Research & Development Engineer | Kitware | <a href="tel:%28518%29%20881-4417" value="+15188814417">(518) 881-4417</a><br>
>>>> ______________________________<wbr>_________________<br>
>>>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>>>><br>
>>>> Visit other Kitware open-source projects at<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>>>><br>
>>>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
>>>><br>
>>>> Follow this link to subscribe/unsubscribe:<br>
>>>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
>>>><br>
>>><br>
>> ______________________________<wbr>_________________<br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
>><br>
</div></div></blockquote></div><br></div>