[vtkusers] problem with graphic card

Fabio De Pascalis fabio.depascalis at brindisi.enea.it
Tue Jan 20 08:36:36 EST 2004


Hello vtk users

 I'have the follow pipeline:

 vtkPolyData *pd=vtkPolyData::New();
 vtkPoints *points=vtkPoints::New(); //punti
 vtkCellArray *polys=vtkCellArray::New(); //poligoni

 vtkUnsignedCharArray *colorUA=vtkUnsignedCharArray::New();

 colorUA->SetNumberOfTuples(nv);
 colorUA->SetNumberOfComponents(3);


....
...

 pd->SetPoints(points);
 pd->SetPolys(polys);
 pd->GetPointData()->SetScalars(colorUA);
 pd_collection->AddItem(pd);

 vtkDecimatePro *deci=vtkDecimatePro::New(); //smooth->GetOutput()
 deci->SetInput(pd);
 deci->SetTargetReduction(0);
 deci->PreserveTopologyOff(); 

  vtkPolyDataNormals *pdn=vtkPolyDataNormals::New();
  deci->SetTargetReduction(0.2);
  pdn->SetInput(deci->GetOutput());

 vtkPolyDataMapper *mapPD = vtkPolyDataMapper::New();
  mapPD->SetInput(pdn->GetOutput());
  mapPD->ScalarVisibilityOn();

 vtkActor *actorPD = vtkActor::New();
  actorPD->SetMapper(mapPD);
  actorPD->GetProperty()->SetAmbient(0.3); 
  actorPD->GetProperty()->SetDiffuse(0.0); 
  actorPD->GetProperty()->SetSpecular(0.0); 

 renderer->AddActor(actorPD);
 renderer->SetBackground(0,0,0);
 renderer->ResetCamera();
 
    renWin->Render();

it's function well only for object with a triangle's number < 1.000.000

For bigger file (with most triangles) the pipeline render only a part of object 3d unless i decimate the object.
This problem isn't present if I disable the accellerator 3d graphic card (but of course the performance in the object moving decrease).

I have an nvdia ge force 4 ti 4600 graphic card.

Can anyone help me ?
Thanks,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040120/4b18351d/attachment.htm>


More information about the vtkusers mailing list