PDF export, openGL - fine lines appearing in filled polygons with alpha
in
Core Library Questions
•
2 years ago
Hi
I've been building a sketch with the OpenGL library. I've added a button on the sketch to output a PDF image of what's on the screen (using the PDF library and the beginRaw/endRaw facility). It works okay but I've found that if I'm drawing polygons with beginShape() ...vertex()...endShape(CLOSE) etc. and I fill those polygons with some colour that has some arbitrary value of alpha (i.e. not 0 or 255) then very fine straight dark lines appear in the filled polygons on the PDF output but not on the screen.
Can anyone advise how I might eliminate those lines?
You can see an example in the map of North America below that I've built from polygons (fyi, I've used map data from naturalearthdata.com)
Many thanks
1