tag:blogger.com,1999:blog-1849709082178711231.post1175225121794243249..comments2022-04-05T18:08:42.364-07:00Comments on On rendering: Buffer object streaming in OpenGLJonathan Dupuyhttp://www.blogger.com/profile/04682212525584823172noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-1849709082178711231.post-27652482550913713932013-08-02T07:15:53.456-07:002013-08-02T07:15:53.456-07:00Nice article! Very helpful.
The streamDataSize (n...Nice article! Very helpful.<br /><br />The streamDataSize (next_power_of_two) may not be divisible with vertex size, which causes problems with glDrawArrays rendering from drawOffset. In my case I got the remainder .3333 and only every third buffer got rendered (not sure it was related to the size of the remainder). Luckily I triggered the streaming/mapping manually from the keyboard so it was pretty obvious when it rendered a blank screen. When I skipped calculating the next power of two it worked beautifully.<br /><br />Also, there is more about asynchronous streaming here: http://www.seas.upenn.edu/~pcozzi/OpenGLInsights/OpenGLInsights-AsynchronousBufferTransfers.pdfAnonymoushttps://www.blogger.com/profile/17420688713428019962noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-30772643986086482722012-08-15T11:01:57.425-07:002012-08-15T11:01:57.425-07:00Which version would you need ?Which version would you need ?Jonathan Dupuyhttps://www.blogger.com/profile/04682212525584823172noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-4884048559178422842012-08-13T00:06:23.939-07:002012-08-13T00:06:23.939-07:00can you provide an example that works in older ope...can you provide an example that works in older opengl? rajathttps://www.blogger.com/profile/06851527269456185879noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-30600757831492091512012-01-15T03:27:53.225-08:002012-01-15T03:27:53.225-08:00So apparently you managed to compile the code, goo...So apparently you managed to compile the code, good!<br />The demo will only run on OpenGL4 hardware, it's not surprising it crashes on your platform. Weird that GLUT doesn't complain, though. Thanks for your feedback anyway :)Jonathan Dupuyhttps://www.blogger.com/profile/04682212525584823172noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-77224272222118836902012-01-15T01:10:13.268-08:002012-01-15T01:10:13.268-08:00I just tried it. I'm having problems at line 5...I just tried it. I'm having problems at line 531: glutCreateWindow("OpenGLBufferStreaming");<br /><br />Which is really strange...<br />It just quits as if normal right after that line, no error messages or anything. Debugging doesn't give any useful info.<br /><br />Anyways, my computer only supports openGL 3.3 so I don't think I would be the best person to test anyways.Sean Lilleyhttps://www.blogger.com/profile/14996658523603243513noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-55887341637065015372012-01-14T01:36:33.811-08:002012-01-14T01:36:33.811-08:00Glad it helped you! Have you tried building the so...Glad it helped you! Have you tried building the sources? I'm curious to know if everything works 'out of the box'...Jonathan Dupuyhttps://www.blogger.com/profile/04682212525584823172noreply@blogger.comtag:blogger.com,1999:blog-1849709082178711231.post-34769847913875192012-01-08T23:50:30.712-08:002012-01-08T23:50:30.712-08:00Thanks a lot! It helped to actually see code based...Thanks a lot! It helped to actually see code based on what the wiki and related forum post talked about.Sean Lilleyhttps://www.blogger.com/profile/14996658523603243513noreply@blogger.com