<div dir="ltr">I was unable to duplicate this. I modified a test to use layers and it seemed to work. Specifically I updated Rendering/OpenGL2/Testing/CXX/TestVBOPLY.cxx to be<div>the following, rebuilts, and then ran it ala</div><div><br></div><div><div>.\bin\vtkRenderingOpenGL2CxxTests.exe TestVBOPLYMapper -D "C:/Users/ken.martin/Documents/vtk/vtkbin/ExternalData/Testing" -I</div></div><div><br></div><div>and it seemed to work fine. Does that work for you? If so , can you modify the example to show the problem?</div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div><div><br></div><div><div>#include "vtkCamera.h"</div><div>#include "vtkRenderer.h"</div><div>#include "vtkOpenGLRenderWindow.h"</div><div>#include "vtkActor.h"</div><div>#include "vtkCellArray.h"</div><div>#include "vtkPointData.h"</div><div>#include "vtkPolyDataMapper.h"</div><div>#include "vtkPLYReader.h"</div><div>#include "vtkNew.h"</div><div>#include "vtkProperty.h"</div><div>#include "vtkLightKit.h"</div><div>#include "vtkPolyDataNormals.h"</div><div>#include "vtkTimerLog.h"</div><div><br></div><div>#include "vtkRegressionTestImage.h"</div><div>#include "vtkTestUtilities.h"</div><div><br></div><div>#include "vtkRenderWindowInteractor.h"</div><div><br></div><div>//----------------------------------------------------------------------------</div><div>int TestVBOPLYMapper(int argc, char *argv[])</div><div>{</div><div> vtkNew<vtkActor> actor;</div><div> vtkNew<vtkRenderer> renderer;</div><div> vtkNew<vtkPolyDataMapper> mapper;</div><div> renderer->SetBackground(0.0, 0.0, 0.0);</div><div> vtkNew<vtkRenderWindow> renderWindow;</div><div> renderWindow->SetSize(300, 300);</div><div> renderWindow->AddRenderer(renderer.Get());</div><div> renderer->AddActor(actor.Get());</div><div> vtkNew<vtkRenderWindowInteractor> iren;</div><div> iren->SetRenderWindow(renderWindow.Get());</div><div> vtkNew<vtkLightKit> lightKit;</div><div> lightKit->AddLightsToRenderer(renderer.Get());</div><div><br></div><div> if (!renderWindow->SupportsOpenGL())</div><div> {</div><div> cerr << "The platform does not support OpenGL as required\n";</div><div> cerr << vtkOpenGLRenderWindow::SafeDownCast(renderWindow.Get())->GetOpenGLSupportMessage();</div><div> cerr << renderWindow->ReportCapabilities();</div><div> return 1;</div><div> }</div><div><br></div><div> const char* fileName = vtkTestUtilities::ExpandDataFileName(argc, argv,</div><div> "Data/dragon.ply");</div><div> vtkNew<vtkPLYReader> reader;</div><div> reader->SetFileName(fileName);</div><div> reader->Update();</div><div><br></div><div> // vtkNew<vtkPolyDataNormals> norms;</div><div> // norms->SetInputConnection(reader->GetOutputPort());</div><div> // norms->Update();</div><div><br></div><div> mapper->SetInputConnection(reader->GetOutputPort());</div><div> //mapper->SetInputConnection(norms->GetOutputPort());</div><div> actor->SetMapper(mapper.Get());</div><div> actor->GetProperty()->SetAmbientColor(0.2, 0.2, 1.0);</div><div> actor->GetProperty()->SetDiffuseColor(1.0, 0.65, 0.7);</div><div> actor->GetProperty()->SetSpecularColor(1.0, 1.0, 1.0);</div><div> actor->GetProperty()->SetSpecular(0.5);</div><div> actor->GetProperty()->SetDiffuse(0.7);</div><div> actor->GetProperty()->SetAmbient(0.5);</div><div> actor->GetProperty()->SetSpecularPower(20.0);</div><div> actor->GetProperty()->SetOpacity(1.0);</div><div> //actor->GetProperty()->SetRepresentationToWireframe();</div><div><br></div><div> vtkNew<vtkActor> actor2;</div><div> vtkNew<vtkRenderer> renderer2;</div><div> vtkNew<vtkPolyDataMapper> mapper2;</div><div> mapper2->SetInputConnection(reader->GetOutputPort());</div><div> actor2->SetMapper(mapper2.Get());</div><div> actor2->GetProperty()->SetOpacity(1.0);</div><div> renderer2->SetLayer(1);</div><div> renderer2->AddActor(actor2.Get());</div><div> renderWindow->SetNumberOfLayers(2);</div><div> renderWindow->AddRenderer(renderer2.Get());</div><div><br></div><div><br></div><div> renderWindow->SetMultiSamples(0);</div><div><br></div><div> vtkNew<vtkTimerLog> timer;</div><div> timer->StartTimer();</div><div> renderWindow->Render();</div><div> timer->StopTimer();</div><div> double firstRender = timer->GetElapsedTime();</div><div> cerr << "first render time: " << firstRender << endl;</div><div><br></div><div> timer->StartTimer();</div><div> int numRenders = 8;</div><div> for (int i = 0; i < numRenders; ++i)</div><div> {</div><div> renderer->GetActiveCamera()->Azimuth(10);</div><div> renderer->GetActiveCamera()->Elevation(10);</div><div> renderWindow->Render();</div><div> }</div><div> timer->StopTimer();</div><div> double elapsed = timer->GetElapsedTime();</div><div> cerr << "interactive render time: " << elapsed / numRenders << endl;</div><div> unsigned int numTris = reader->GetOutput()->GetPolys()->GetNumberOfCells();</div><div> cerr << "number of triangles: " << numTris << endl;</div><div> cerr << "triangles per second: " << numTris*(numRenders/elapsed) << endl;</div><div><br></div><div><br></div><div> renderer->GetActiveCamera()->SetPosition(0,0,1);</div><div> renderer->GetActiveCamera()->SetFocalPoint(0,0,0);</div><div> renderer->GetActiveCamera()->SetViewUp(0,1,0);</div><div> renderer->ResetCamera();</div><div> renderWindow->Render();</div><div> renderWindow->Render();</div><div><br></div><div> int retVal = vtkRegressionTestImage( renderWindow.Get() );</div><div> if ( retVal == vtkRegressionTester::DO_INTERACTOR)</div><div> {</div><div> iren->Start();</div><div> }</div><div><br></div><div> return !retVal;</div><div>}</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 12:31 PM, Michael Redmond <span dir="ltr"><<a href="mailto:michael.j.redmond@gmail.com" target="_blank">michael.j.redmond@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I reported a bug issue id 0015892. It's a bug for opengl2. Extra cells are shown in 2nd/3rd renderer layers. I've seen the bug in 6.3 and 7.0rc1. I've checked with the official 64 bit python release and my own 6.3 builds.</p>
<div class="gmail_quote">On Dec 17, 2015 2:39 PM, "David E DeMarle" <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13px">The </span><span style="font-size:13px">VTK</span><span style="font-size:13px"> developement team is happy to announce that </span><span style="font-size:13px">VTK</span><span style="font-size:13px"> </span><span style="font-size:13px">7.0</span><span style="font-size:13px"> has entered</span><br style="font-size:13px"><span style="font-size:13px">the </span><span style="font-size:13px">release</span><span style="font-size:13px"> </span><span style="font-size:13px">candidate</span><span style="font-size:13px"> stage!</span><br style="font-size:13px"><br style="font-size:13px"><span style="font-size:13px">You can find the source, data, and vtkpython binary packages here:</span><br style="font-size:13px"><br style="font-size:13px"><a href="http://www.vtk.org/download/#candidate" rel="noreferrer" style="font-size:13px" target="_blank">http://www.vtk.org/download/#candidate</a><br style="font-size:13px"><br style="font-size:13px"><span style="font-size:13px">Please try this version of </span><span style="font-size:13px">VTK</span><span style="font-size:13px"> and report any issues to the list or the</span><br style="font-size:13px"><span style="font-size:13px">bug tracker so that we can try to address them before </span><span style="font-size:13px">VTK</span><span style="font-size:13px"> 7.0.0</span><span style="font-size:13px"> final.</span><br style="font-size:13px"><br style="font-size:13px"><span style="font-size:13px">The official </span><span style="font-size:13px">release</span><span style="font-size:13px"> notes will be available when </span><span style="font-size:13px">VTK</span><span style="font-size:13px"> final is </span><span style="font-size:13px">released</span><br style="font-size:13px"><span style="font-size:13px">in the next few weeks. In the meantime here is a </span><span style="font-size:13px">preview</span><span style="font-size:13px">:</span><br style="font-size:13px"><br style="font-size:13px"><div>The big news is that the OpenGL"new" backend is now the default and that VTK is for the first time compatible with Python 3.</div><div><br></div><div>Other new functionality includes:</div><div>- the introduction of the Flying Edges SMP optimized (very fast) isocontour filter</div><div>- a new and improved <span style="font-size:13px">vtkPUnstructuredGridGhostCells filter that efficiently creates ghost cells in DMP parallel contexts. </span></div><div><div><div>- allow the Python Global Interpreter Lock (GIL) for multithreaded Python routines</div><div></div></div></div><div><div><div>- offscreen rendering through EGL now supported<br></div><div>- remove vtkFreeTypeUtilities</div></div></div><div><br></div><div><span style="font-size:13px">Improvements to existing functionality includes:</span></div><div><span style="font-size:13px">- optimizations to the Contingency Statistics class which provides a significant </span><span style="font-size:13px">performance boost when using only integer or floating point data</span><br></div><div>- improved MPAS file handling including <span style="font-size:13px">including arbitrary </span><span style="font-size:13px">vertical dimensions and more general attribute reading</span></div><div><div><span style="font-size:13px">- m</span><span style="font-size:13px">odernize depth sorting code. In tests the improved depth sort is 2 to 3x faster than before.</span></div><div></div></div><div><div>- <span style="font-size:13px">fixes to the ExodusWriter, especially when handling side sets and node</span> <span style="font-size:13px">set data.</span><br></div></div><div><div>- updates to the PLY Writer</div></div><div><br></div><div>Some of the changes that affect building and using VTK in applications include:</div><div>- the OpenGL2 backend requires newer rendering capabilities than its predecessor</div><div><div>- <span style="font-size:13px">QtWebKit is no longer part of the Qt build group and thus easier to do without</span><br></div><div></div></div><div><span style="font-size:13px">- vtkStreamer and related classes are deprecated; use vtkStreamTracer </span><span style="font-size:13px">instead.</span><br></div><div><span style="font-size:13px">- a new option (when building with newer CMake) to build with C++11 support</span><br></div><div><div><div>- a<span style="font-size:13px">dd support for Visual Studio 2015</span></div><div>- <span style="font-size:13px">Java 1.6 is now the minimum version that is tested; 1.5 may not work</span><br></div></div><div>- remove support for OSX10.5 Leopard and the Carbon (OSX9 compatibility layer) API<br></div><div>- remove support for gcc 4.1</div><div><br></div><div><div><span style="font-size:13px">And many bug fixes across the codebase.</span></div><div><span style="font-size:13px"><br></span></div><span style="font-size:13px">We hope you enjoy this </span><span style="font-size:13px">release</span><span style="font-size:13px"> of </span><span style="font-size:13px">VTK</span><span style="font-size:13px">! As always, contact Kitware and</span><br style="font-size:13px"><span style="font-size:13px">the mailing lists for assistance.</span><br style="font-size:13px"><br style="font-size:13px"><span style="font-size:13px">Thanks,</span><br><div><br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>