• Advertisement
Sign in to follow this  

Possible problem with rendering VBO's?

This topic is 1463 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

http://pastebin.com/cFh1fHpH
http://pastebin.com/w9EVF6i6

 

The first link is the main code...

The second is the def for the MainChar class.

 

 

I init the MainChar class and try to render, but it won't show up. I thought that

maybe it simply just wasn't in the viewport so I tried moving it around and rotating

it so hopefully it would move into view...still a no-go. Is it not rendering period?

How am I screwing up? Arg. Arg....angry.png

Edited by JoryRFerrell2013

Share this post


Link to post
Share on other sites
Advertisement

Without knowing the exact answer to your problem, might I simply suggest picking up & learning how to use gDEBugger.  It has been an immense help for me while debugging some pretty complicated GL issues.  With this tool, you can verify that your data in the VBO has been uploaded to the card correctly to make sure your resources actually exist.  It can also break on GL errors, which is mighty helpful.

Share this post


Link to post
Share on other sites

it seems like you compile and link a shader and then dont use it - was this on purpose (the use program is commented out)?

 

if your just trying to use the fixed function pipeline to get it working I think you need to load a projection matrix for 600 by 800 viewport.. i could be wrong

 

a problem could possibly be that you are using doubles in your VBOs.. I would change it to floats

http://www.opengl.org/wiki/Common_Mistakes#GL_DOUBLE

Edited by EarthBanana

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement