[vtkusers] Rendering failure after after 1000 images

Andreas Schwarz aschwarz at viisage.com
Mon Jul 25 04:33:26 EDT 2005


Hallo,
got a nasty problems rendering images with vtk under WinXP, VC7. We are using models
with e.g. 70000 vertices with given 2d texture coordinates and a new model is set
for each rendering process. The render pipeline comprises a triangulation using the
class vtkDelaunay2D and the rendering is in the OffScreen mode (using 
vtkRenderWindow::OffScreenRenderingOn()).
The input for render pipeline is something like:
.
.
.
uint numberOfPoints = 70000;
vtkPoints* 		renderPointsPtr = vtkPoints::New();
vtkPolyData*		renderDataPtr = vtkPolyData::New();
vtkFloatArray*		tCoordsPtr = vtkFloatArray::New();

renderDataPtr->SetPoints(renderPointsPtr);
renderPointsPtr->SetNumberOfPoints(numberOfPoints);

renderDataPtr->GetPointData()->SetTCoords(tCoordsPtr);
tCoordsPtr->SetNumberOfComponents(2);
tCoordsPtr->SetNumberOfTuples(numberOfPoints);
.
.
.
void SetRenderModel
(
	vtkPoints*		externPointsPtr		,
	vtkFloatArray*	externTCoordsPtr
)
{
	float pointArr[3];
	float tCoordArr[2];
	for(p=0; p<numberOfPoints; ++p)
	{
		externTCoordsPtr->GetTuple(p, tCoordArr);
		tCoordsPtr->SetTuple(p, tCoordArr);
		externPointsPtr->GetPoint(p, pointArr);
		renderPointsPtr->SetPoint(p, pointArr);
	}
	tCoordsPtr->Modified();
	renderPointsPtr->Modified();
}
.
.
.
After rendering about 1300 images correctly, the rendering process exits with an error, 
but no vtk error window is displayed. The smaller the number of points in the model, the 
greater the number of correctly rendered images. We are using vtk 4.2 right now, but we 
tried vtk 4.4 and had the same difficulties.
Has anyone experienced a similar problem or an idea what could be the reason for this 
behavior?

Thanxs, Andy



More information about the vtkusers mailing list