Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Please see the image below.
I get black lines when I render using F12 but not in viewport.
Is there a way to get the rendered image to be exactly the same as in the view port?
If the number of subdivisions for view and render is not the same you'll get different results when using the subsurf modifier.
Make those values the same.
Additionally, you might need to enable smooth shading.
I can't see your picture right now but one of these should work:
Required, but never shown