I was wondering if I could get some help with rendering stippled lines. I’m currently using a vtkActor attached to a PolyDataMapper of which I customise the Shader property in order to get the desired effect, however on closer inspection I notice that some part (ie: as can be seen in the attached images) the top part of the lines although stippled, seem to be connected in a jagged manner. I was expecting all lines to be uniformly rendered.
Is there a better way of doing this? Thanks in advance.
typically in code I just customise a vtkSmartPointer’s shader property (at the fragment level)
inActor->GetShaderProperty()->AddFragmentShaderReplacement("//VTK::TCoord::Impl", true, shader, false);