Jump to content

  • Log In with Google      Sign In   
  • Create Account


Possible problem with rendering VBO's?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 JoryRFerrell2013   Members   -  Reputation: 176

Like
0Likes
Like

Posted 20 January 2014 - 10:37 PM

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, 20 January 2014 - 10:39 PM.


Sponsor:

#2 BitMaster   Crossbones+   -  Reputation: 3667

Like
0Likes
Like

Posted 21 January 2014 - 06:01 AM

Have you verified that glGetError persistently returns GL_NO_ERROR?

#3 morbik   Members   -  Reputation: 363

Like
1Likes
Like

Posted 21 January 2014 - 08:10 AM

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.



#4 EarthBanana   Members   -  Reputation: 808

Like
0Likes
Like

Posted 21 January 2014 - 01:09 PM

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, 21 January 2014 - 01:10 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS