ospray blotchy shadows on implicits
Shadows look particularly bad on implicit spheres and cylinders. As in attached image. The primary reason is that osp::Renderer's default "epsilon" is not well matched to our typical scenes which makes some shadow rays intersect the starting object.
This patch is a workaround: diff --git a/Rendering/OSPRay/vtkOSPRayRendererNode.cxx b/Rendering/OSPRay/vtkOSPRayRendererNode.cxx index 2e5e519..9835727 100644 --- a/Rendering/OSPRay/vtkOSPRayRendererNode.cxx +++ b/Rendering/OSPRay/vtkOSPRayRendererNode.cxx @@ -487,6 +487,8 @@ void vtkOSPRayRendererNode::Render(bool prepass)
double *bg = ren->GetBackground();
ospSet3f(oRenderer,"bgColor", bg[0], bg[1], bg[2]);
- ospSet1f(oRenderer,"epsilon", 0.01); } else {
Better would be to expose epsilon as something the user can change all the way out to ParaView. Another option would be to compute a good epsilon from the scene bounding box.