[vtkusers] Fw: point rendering
Jan Fransens
jan.fransens at uhasselt.be
Wed Apr 5 09:33:58 EDT 2006
Hi,
I am trying to render a point cloud of 3d coordinates with associated normals. However, during rendering, points with a normal facing away are rendered completely black. Points with front facing normals are rendered fine.
pActor1->GetProperty()->SetPointSize(2.0);
pActor1->GetProperty()->SetColor(1.0,1.0,1.0);
pActor1->GetProperty()->SetRepresentationToPoints(); // |_rendering behaviour doesn't change
pActor1->SetBackfaceProperty(pActor1->GetProperty());// |
pRenWin->GetRenderer()->TwoSidedLightingOn(); // same result
pRenWin->GetRenderer()->AddActor(pActor1);
pRenWin->GetRenderer()->ResetCamera();
pRenWin->show();
Does anyone know what causes this problem (I'm using Vtk 4.2)
Many thanks,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060405/6a5c27a7/attachment.htm>
More information about the vtkusers
mailing list