TheXP's picture

[Solved]Strange transparency-like error on VBO cube

I was playing with VBO objects and reproduced the same cube from "VBO Static" sample, but the cube seem to be transparent on some sides. This is what it looks like:

Blending and lighting are diabled, and the error persists with DepthTest enabled and disabled.
How do I solve it?

-------------------------------------------------------

Already solved it. It was the line:

public Game()
            : base(800, 600, new GraphicsMode(32, 0, 0, 16), "OpenTK Quick Start Sample")

The depth and stencil were missing, so I changed it:

public Game()
            : base(800, 600, new GraphicsMode(32, 16, 8, 16), "OpenTK Quick Start Sample")

...and worked!