[vtkusers] Announce: vtk 7.0.0 release candidate 1 is ready

Ken Martin ken.martin at kitware.com
Mon Jan 4 11:06:30 EST 2016


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
the following, rebuilts, and then ran it ala

.\bin\vtkRenderingOpenGL2CxxTests.exe TestVBOPLYMapper -D
"C:/Users/ken.martin/Documents/vtk/vtkbin/ExternalData/Testing" -I

and it seemed to work fine. Does that work for you? If so , can you modify
the example to show the problem?

Thanks
Ken


#include "vtkCamera.h"
#include "vtkRenderer.h"
#include "vtkOpenGLRenderWindow.h"
#include "vtkActor.h"
#include "vtkCellArray.h"
#include "vtkPointData.h"
#include "vtkPolyDataMapper.h"
#include "vtkPLYReader.h"
#include "vtkNew.h"
#include "vtkProperty.h"
#include "vtkLightKit.h"
#include "vtkPolyDataNormals.h"
#include "vtkTimerLog.h"

#include "vtkRegressionTestImage.h"
#include "vtkTestUtilities.h"

#include "vtkRenderWindowInteractor.h"

//----------------------------------------------------------------------------
int TestVBOPLYMapper(int argc, char *argv[])
{
  vtkNew<vtkActor> actor;
  vtkNew<vtkRenderer> renderer;
  vtkNew<vtkPolyDataMapper> mapper;
  renderer->SetBackground(0.0, 0.0, 0.0);
  vtkNew<vtkRenderWindow> renderWindow;
  renderWindow->SetSize(300, 300);
  renderWindow->AddRenderer(renderer.Get());
  renderer->AddActor(actor.Get());
  vtkNew<vtkRenderWindowInteractor>  iren;
  iren->SetRenderWindow(renderWindow.Get());
  vtkNew<vtkLightKit> lightKit;
  lightKit->AddLightsToRenderer(renderer.Get());

  if (!renderWindow->SupportsOpenGL())
    {
    cerr << "The platform does not support OpenGL as required\n";
    cerr <<
vtkOpenGLRenderWindow::SafeDownCast(renderWindow.Get())->GetOpenGLSupportMessage();
    cerr << renderWindow->ReportCapabilities();
    return 1;
    }

  const char* fileName = vtkTestUtilities::ExpandDataFileName(argc, argv,

 "Data/dragon.ply");
  vtkNew<vtkPLYReader> reader;
  reader->SetFileName(fileName);
  reader->Update();

  // vtkNew<vtkPolyDataNormals> norms;
  // norms->SetInputConnection(reader->GetOutputPort());
  // norms->Update();

  mapper->SetInputConnection(reader->GetOutputPort());
  //mapper->SetInputConnection(norms->GetOutputPort());
  actor->SetMapper(mapper.Get());
  actor->GetProperty()->SetAmbientColor(0.2, 0.2, 1.0);
  actor->GetProperty()->SetDiffuseColor(1.0, 0.65, 0.7);
  actor->GetProperty()->SetSpecularColor(1.0, 1.0, 1.0);
  actor->GetProperty()->SetSpecular(0.5);
  actor->GetProperty()->SetDiffuse(0.7);
  actor->GetProperty()->SetAmbient(0.5);
  actor->GetProperty()->SetSpecularPower(20.0);
  actor->GetProperty()->SetOpacity(1.0);
  //actor->GetProperty()->SetRepresentationToWireframe();

  vtkNew<vtkActor> actor2;
  vtkNew<vtkRenderer> renderer2;
  vtkNew<vtkPolyDataMapper> mapper2;
  mapper2->SetInputConnection(reader->GetOutputPort());
  actor2->SetMapper(mapper2.Get());
  actor2->GetProperty()->SetOpacity(1.0);
  renderer2->SetLayer(1);
  renderer2->AddActor(actor2.Get());
  renderWindow->SetNumberOfLayers(2);
  renderWindow->AddRenderer(renderer2.Get());


  renderWindow->SetMultiSamples(0);

  vtkNew<vtkTimerLog> timer;
  timer->StartTimer();
  renderWindow->Render();
  timer->StopTimer();
  double firstRender = timer->GetElapsedTime();
  cerr << "first render time: " << firstRender << endl;

  timer->StartTimer();
  int numRenders = 8;
  for (int i = 0; i < numRenders; ++i)
    {
    renderer->GetActiveCamera()->Azimuth(10);
    renderer->GetActiveCamera()->Elevation(10);
    renderWindow->Render();
    }
  timer->StopTimer();
  double elapsed = timer->GetElapsedTime();
  cerr << "interactive render time: " << elapsed / numRenders << endl;
  unsigned int numTris =
reader->GetOutput()->GetPolys()->GetNumberOfCells();
  cerr << "number of triangles: " <<  numTris << endl;
  cerr << "triangles per second: " <<  numTris*(numRenders/elapsed) << endl;


  renderer->GetActiveCamera()->SetPosition(0,0,1);
  renderer->GetActiveCamera()->SetFocalPoint(0,0,0);
  renderer->GetActiveCamera()->SetViewUp(0,1,0);
  renderer->ResetCamera();
  renderWindow->Render();
  renderWindow->Render();

  int retVal = vtkRegressionTestImage( renderWindow.Get() );
  if ( retVal == vtkRegressionTester::DO_INTERACTOR)
    {
    iren->Start();
    }

  return !retVal;
}


On Fri, Dec 18, 2015 at 12:31 PM, Michael Redmond <
michael.j.redmond at gmail.com> wrote:

> 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.
> On Dec 17, 2015 2:39 PM, "David E DeMarle" <dave.demarle at kitware.com>
> wrote:
>
>> The VTK developement team is happy to announce that VTK 7.0 has entered
>> the release candidate stage!
>>
>> You can find the source, data, and vtkpython binary packages here:
>>
>> http://www.vtk.org/download/#candidate
>>
>> Please try this version of VTK and report any issues to the list or the
>> bug tracker so that we can try to address them before VTK 7.0.0 final.
>>
>> The official release notes will be available when VTK final is released
>> in the next few weeks. In the meantime here is a preview:
>>
>> 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.
>>
>> Other new functionality includes:
>> - the introduction of the Flying Edges SMP optimized (very fast)
>> isocontour filter
>> - a new and improved vtkPUnstructuredGridGhostCells filter that
>> efficiently creates ghost cells in DMP parallel contexts.
>> - allow the Python Global Interpreter Lock (GIL) for multithreaded Python
>> routines
>> - offscreen rendering through EGL now supported
>> - remove vtkFreeTypeUtilities
>>
>> Improvements to existing functionality includes:
>> - optimizations to the Contingency Statistics class which provides a
>> significant performance boost when using only integer or floating point
>> data
>> - improved MPAS file handling including including arbitrary vertical
>> dimensions and more general attribute reading
>> - modernize depth sorting code. In tests the improved depth sort is 2 to
>> 3x faster than before.
>> - fixes to the ExodusWriter, especially when handling side sets and node set
>> data.
>> - updates to the PLY Writer
>>
>> Some of the changes that affect building and using VTK in applications
>> include:
>> - the OpenGL2 backend requires newer rendering capabilities than its
>> predecessor
>> - QtWebKit is no longer part of the Qt build group and thus easier to do
>> without
>> - vtkStreamer and related classes are deprecated; use vtkStreamTracer
>> instead.
>> - a new option (when building with newer CMake) to build with C++11
>> support
>> - add support for Visual Studio 2015
>> - Java 1.6 is now the minimum version that is tested; 1.5 may not work
>> - remove support for OSX10.5 Leopard and the Carbon (OSX9 compatibility
>> layer) API
>> - remove support for gcc 4.1
>>
>> And many bug fixes across the codebase.
>>
>> We hope you enjoy this release of VTK! As always, contact Kitware and
>> the mailing lists for assistance.
>>
>> Thanks,
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
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: <http://public.kitware.com/pipermail/vtkusers/attachments/20160104/f6676558/attachment.html>


More information about the vtkusers mailing list