View Full Version : Absolute beginner: Rendering 8 verts
08-26-2011, 11:58 AM
I am trying to render 8 verts which form a cube using a vertex buffer object. Problem is all I see is a white pixel at the bottom right corner of the window.
Here (http://pastie.org/private/ms340fsw5l2qfjkumw27q) is my source. Could you point what am I doing wrong ?
08-26-2011, 12:10 PM
You don't set any matrices or shaders. So the vertices happen to be at the 4 corners of the view-frustum, and most get culled.
08-26-2011, 01:19 PM
So it's as if I am currently viewing the verts from the top/bottom or some side view ?
I got my hands on the fifth edition of the opengl superbible, I guess I should be reading Chapter 4(Basic Transformations). Thanks for your reply.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.