0

I am drawing a sphere but when I move the viewpoint it sometimes seen as I attached in the image. What may be the reason of it?

I thought it may be sth related with normals but could not find a solution.

Image That Shows Sphere:

img

Spektre
  • 49,595
  • 11
  • 110
  • 380
  • You've to to draw the primitives in sorted order form the back to the front. Read [Transparency](http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-10-transparency/) – Rabbid76 Jul 20 '19 at 21:56
  • what is the topology of your sphere? the parallel discs are hinting there is something fishy in your sphere mesh. Anyway with transparency you need depth sort your faces or fake it with other means see [OpenGL - How to create Order Independent transparency?](https://stackoverflow.com/a/37783085/2521214) – Spektre Jul 21 '19 at 07:42
  • Is there an easy way to remove transparency at all? – Eric Cartman Jul 21 '19 at 10:51
  • `glDisable(GL_BLEND)` but my bet is that your mesh is wrong (wrongly triangulated connected as discs instead of surface) You can try this: [sphere triangulation](https://stackoverflow.com/a/29139125/2521214) anyway without MCVE (minimal complete verifiable example) we can only guess ... – Spektre Jul 22 '19 at 06:52
  • Pretty late, Im sorry but you just need to enable BACKFACE_CULLING. glEnable(GL_CULL_FACE) should take care of it. – sariug Oct 08 '21 at 10:13

0 Answers0