[vtkusers] How to turn off backface rendering ?

Hal Schwab schwabs at mindspring.com
Wed Sep 25 15:09:07 EDT 2002


I cannot find any reference in the docs to turn off backface rendering.
I am rendering a simple plane as follows:

  renderer = vtkRenderer::New();
  renWin = vtkRenderWindow::New();
  renWin->AddRenderer(renderer);
  renWin->SetParentId(m_hWnd);
  iren = vtkRenderWindowInteractor::New();
  iren->SetRenderWindow(renWin);

  plane = vtkPlaneSource::New();
  planeMapper = vtkDataSetMapper::New();
  planeMapper->SetInput(plane->GetOutput());
  planeActor = vtkActor::New();
  planeActor->SetMapper(planeMapper);
  renderer->AddActor(planeActor);
  renderer->SetBackground(0,0,0);

My goal is to be able to move the camera around the plane
with only the front side drawn. My environment is Win32/OpenGL.
Thanks for your help.
Hal





More information about the vtkusers mailing list