Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Possible problem with rendering VBO's?

4: Adsense

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   

209
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.


#2 BitMaster   Members   

8647
Like
0Likes
Like

Posted 21 January 2014 - 06:01 AM

Have you verified that glGetError persistently returns GL_NO_ERROR?

#3 morbik   Members   

367
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   GDNet+   

1791
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.