Hi guys,
So I’m doing a lot of complicated things in my code, but what I have is a very simple problem that should be very basic, but I can’t figure out how to fix it for the life of me.
Basically what I have is a VBO that draws a bunch of cubes. This works fine. Then I rotate the scene to look at these cubes from different view points. This is where trouble starts. In certain views everything looks fine, but in other views back cubes get drawn over the front ones. Any clue how to fix this? Is it glDepthFunc? I tried it, but no help, if anything I get stranger results.
Thanks.