Weird OPENGL Behaviour (C++)
I'm currently messing around with some openGL using C++ and have set up a few functions to create a cube (and scale by the value held by a parameter to the DrawCube() function) and also have a function nLoadTexture2D(...) to load a texture into the frame buffer using SOIL.
But I run into a problem when the scene is rendered. When viewed from the left (looking -x) the cubes and textures "interact" well with each other, meaning you get proper depth clipping (?) of objects obscuring other objects.
However when viewed along the +x axis, you get the result in the screenshot below:
I'm sure it's a pretty trivial solution for someone versed in openGL, but I'm stumped and my eyes hurt from sifting through Google pages (since I'm not quite sure what to call this).
Thanks a head of time.
Intel Core i3 2120 running @ 3.30 Ghz && 8GB Corsair Vengeance RAM @ 1333Mhz && XFX Radeon HD 6850 @ 1920x1080 && 600w PSU && 2TB In-Case Storage (Boot drive: OCZ Vertex 4 128GB SSD) && ASUS P8H77-V LE Mobo && ThermalTake Tsunami Dream Case && Black Widow Mechanical Keyboad && Thermaltake Black Gaming Mouse