[vtkusers] VTK offscreen rendering
kitknow
philip.beelmann at gmail.com
Tue Sep 27 07:46:06 EDT 2011
i tried. i figured out that the segmentation fault occurs after the last line
of the following code:
vtkVolume *volume = vtkVolume::New();
pVolume->SetMapper(volumeMapper);
pVolume->SetProperty(volumeProperty);
pVolume->Update();
vtkCamera *camera = vtkCamera::New();
vtkRenderer *renderer = vtkRenderer::New();
renderer->AddVolume(volume);
renderer->AddActor(surfaceActor);
vtkRenderWindow *renderWindow = vtkRenderWindow::New();
renderWindow->AddRenderer(pRenderer);
renderWindow->OffScreenRenderingOn();
renderWindow->SetSize(800,600);
renderWindow->Render();
i just don´t know wether the code is bad or the VTK settings - tried it in
Virtualbox - there it works, but in Virtualbox its not mandatory to use
Offscreen.
--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-offscreen-rendering-tp4548419p4845049.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list