Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 23 Sep 2012
Offline Last Active Nov 14 2012 08:53 AM

Posts I've Made

In Topic: OpenGL Not Rendering Models

01 November 2012 - 07:07 AM

Thank you all for your help, creating a Vertex Array Object fixed the problem. It's actually sad that I had to spend so much time figuring out what the problem was.

In Topic: OpenGL Not Rendering Models

31 October 2012 - 10:07 AM

After browsing some forums I found out that nVidia enforces the use of use vao + vbo with 3.x. with the new drivers. The problem is that I don't know what VAO is or where I should use it , I am already using VBO if you guys can help by pointing me in the right direction on how I should use VAO I would appreciate it very much.

In Topic: OpenGL Not Rendering Models

31 October 2012 - 08:56 AM

This function is called in the rendering loop, and I have two error checks before and after the function.

[source lang="java"]CHECKOGLERRORS;glVertexAttribPointer( ... );CHECKOGLERRORS;[/source]
I am not sure what the last parameter should do and how I could change it because I think that's the problem.

In Topic: OpenGL Not Rendering Models

31 October 2012 - 06:40 AM

After checking for OpenGL errors, I managed to pinpoint the problem to this line of code :
[source lang="cpp"]glVertexAttribPointer ( 0, 3, GL_FLOAT, GL_FALSE, 0, (void*)0 );[/source]
which is the vertex attribute buffer. It just says "inavlid operation".