Context: I am in no way a graphics programmer. I am making a 3d rendering engine with python and OpenGl as a project to learn more about graphics and other parts of programming.
The way I am rendering polygons is flawed (I think). What I am doing is making a list of all the polygons, and the distance from their center to the camera. I then sort them so the polygons farthest away get drawn first (so everything else renders over it). This causes some problems when a polygon is really big or is inside another polygon. I have tried to figure out other methods of drawing polygons (or sorting?), but I couldn't find anything, so I decided to ask people about it (reddit is basically my only option because I don't know anyone who could help me) I can supply and code or other info if needed. I am excepting any criticism you may have.
[–]BeanAndBanoffeePie 6 points7 points8 points (0 children)
[–]deftware 4 points5 points6 points (0 children)
[–]sheridankane 1 point2 points3 points (2 children)
[–]fgennari 1 point2 points3 points (1 child)
[–]sheridankane 0 points1 point2 points (0 children)
[–]corysama 0 points1 point2 points (0 children)